summaryrefslogtreecommitdiff
path: root/tests/dbus
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2013-01-07 17:07:50 +0100
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2013-01-09 14:04:57 +0100
commit15b8eea5133e683ac14c79734dfbea6747af6e5f (patch)
treebca9836cb35906a623e063047f0d3dbbc69d7dbd /tests/dbus
parent16578d4864f04d26c05c94dbd4c6035ba728d55c (diff)
downloadtelepathy-glib-15b8eea5133e683ac14c79734dfbea6747af6e5f.tar.gz
add TpAccount:uri-schemes: property
The property was missing for some reason.
Diffstat (limited to 'tests/dbus')
-rw-r--r--tests/dbus/account.c31
1 files changed, 26 insertions, 5 deletions
diff --git a/tests/dbus/account.c b/tests/dbus/account.c
index 3fb54b4b7..dc27ac102 100644
--- a/tests/dbus/account.c
+++ b/tests/dbus/account.c
@@ -614,11 +614,29 @@ test_storage (Test *test,
}
static void
+check_uri_schemes (const gchar * const * schemes)
+{
+ g_assert (schemes != NULL);
+ g_assert (tp_strv_contains (schemes, "about"));
+ g_assert (tp_strv_contains (schemes, "telnet"));
+ g_assert (schemes[2] == NULL);
+}
+
+static void
+notify_cb (GObject *object,
+ GParamSpec *spec,
+ Test *test)
+{
+ g_main_loop_quit (test->mainloop);
+}
+
+static void
test_addressing (Test *test,
gconstpointer mode)
{
GQuark account_features[] = { TP_ACCOUNT_FEATURE_ADDRESSING, 0 };
const gchar * const *schemes;
+ GStrv tmp;
test->account = tp_account_new (test->dbus, ACCOUNT_PATH, NULL);
g_assert (test->account != NULL);
@@ -645,10 +663,14 @@ test_addressing (Test *test,
g_main_loop_run (test->mainloop);
schemes = tp_account_get_uri_schemes (test->account);
- g_assert (schemes != NULL);
- g_assert (tp_strv_contains (schemes, "about"));
- g_assert (tp_strv_contains (schemes, "telnet"));
- g_assert (schemes[2] == NULL);
+ check_uri_schemes (schemes);
+
+ g_object_get (test->account,
+ "uri-schemes", &tmp,
+ NULL);
+
+ check_uri_schemes ((const gchar * const *) tmp);
+ g_strfreev (tmp);
g_assert (tp_account_associated_with_uri_scheme (test->account,
"about"));
@@ -656,7 +678,6 @@ test_addressing (Test *test,
"telnet"));
g_assert (!tp_account_associated_with_uri_scheme (test->account,
"xmpp"));
-
}
static void