[next] telepathy-glib: text-respawn: test if connection RCC are properly fetched
Guillaume Desmottes
gdesmott at kemper.freedesktop.org
Wed Jan 29 03:02:20 PST 2014
Module: telepathy-glib
Branch: next
Commit: 63fd11841909e96555c3e68a9b34c9ab130304af
URL: http://cgit.freedesktop.org/telepathy/telepathy-glib/commit/?id=63fd11841909e96555c3e68a9b34c9ab130304af
Author: Guillaume Desmottes <guillaume.desmottes at collabora.co.uk>
Date: Fri Jan 24 12:16:44 2014 +0100
text-respawn: test if connection RCC are properly fetched
---
tests/dbus/text-respawn.c | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/tests/dbus/text-respawn.c b/tests/dbus/text-respawn.c
index 6f97f14..f0a1d3c 100644
--- a/tests/dbus/text-respawn.c
+++ b/tests/dbus/text-respawn.c
@@ -143,6 +143,9 @@ main (int argc,
gchar *chan_path;
TpHandle handle;
GPtrArray *message;
+ TpCapabilities *caps;
+ GPtrArray *classes;
+ GQuark conn_features[] = { TP_CONNECTION_FEATURE_CAPABILITIES, 0 };
tp_tests_abort_after (10);
/* tp_debug_set_flags ("all"); */
@@ -176,6 +179,16 @@ main (int argc,
tp_tests_proxy_run_until_prepared (chan, NULL);
+ /* check connection requestable channels */
+ tp_tests_proxy_run_until_prepared (conn, conn_features);
+
+ caps = tp_connection_get_capabilities (conn);
+ g_assert (caps != NULL);
+ classes = tp_capabilities_get_channel_classes (caps);
+ g_assert (classes != NULL);
+ g_assert_cmpint (classes->len, ==, 1);
+ g_assert (tp_capabilities_supports_text_chats (caps));
+
MYASSERT (tp_cli_channel_type_text_connect_to_message_received (chan, on_received,
g_object_ref (contact_repo), g_object_unref, NULL, NULL) != NULL, "");
MYASSERT (tp_cli_channel_type_text_connect_to_message_sent (chan, on_sent,
More information about the telepathy-commits
mailing list