[Telepathy-commits] [telepathy-glib/master] tests/dbus/channel-introspect.c: glue on a channel with properties
Simon McVittie
simon.mcvittie at collabora.co.uk
Fri Nov 28 07:05:11 PST 2008
---
tests/dbus/channel-introspect.c | 12 ++++++++++++
1 files changed, 12 insertions(+), 0 deletions(-)
diff --git a/tests/dbus/channel-introspect.c b/tests/dbus/channel-introspect.c
index 0a58a9a..4bd6d78 100644
--- a/tests/dbus/channel-introspect.c
+++ b/tests/dbus/channel-introspect.c
@@ -80,6 +80,7 @@ main (int argc,
TpBaseConnection *service_conn_as_base;
TpHandleRepoIface *contact_repo;
TestTextChannelNull *service_chan;
+ TestPropsTextChannel *service_props_chan;
TpDBusDaemon *dbus;
TpConnection *conn;
TpChannel *chan;
@@ -87,6 +88,7 @@ main (int argc,
gchar *name;
gchar *conn_path;
gchar *chan_path;
+ gchar *props_chan_path;
gchar *bad_chan_path;
TpHandle handle;
gboolean was_ready;
@@ -133,6 +135,15 @@ main (int argc,
"handle", handle,
NULL));
+ props_chan_path = g_strdup_printf ("%s/PropertiesChannel", conn_path);
+
+ service_props_chan = TEST_PROPS_TEXT_CHANNEL (g_object_new (
+ TEST_TYPE_PROPS_TEXT_CHANNEL,
+ "connection", service_conn,
+ "object-path", props_chan_path,
+ "handle", handle,
+ NULL));
+
mainloop = g_main_loop_new (NULL, FALSE);
/* Channel becomes invalid while we wait */
@@ -375,6 +386,7 @@ main (int argc,
tp_handle_unref (contact_repo, handle);
g_object_unref (conn);
g_object_unref (service_chan);
+ g_object_unref (service_props_chan);
service_conn_as_base = NULL;
g_object_unref (service_conn);
--
1.5.6.5
More information about the Telepathy-commits
mailing list