diff options
author | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2012-09-19 14:07:52 +0100 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2012-09-26 13:51:42 +0200 |
commit | 69305347a64f5cb3ac69db067f525855f6eeaa9c (patch) | |
tree | 455d4d5a73cad0b70aadbd9e323189185bc7ba59 /tests | |
parent | 3a7bc0a5b62c8eae5a3226ffbdfeffa7f1541e03 (diff) | |
download | telepathy-glib-69305347a64f5cb3ac69db067f525855f6eeaa9c.tar.gz |
tp_channel_request_dup_hints: add
https://bugs.freedesktop.org/show_bug.cgi?id=55103
Diffstat (limited to 'tests')
-rw-r--r-- | tests/dbus/channel-request.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/dbus/channel-request.c b/tests/dbus/channel-request.c index 5d8318267..779a110fa 100644 --- a/tests/dbus/channel-request.c +++ b/tests/dbus/channel-request.c @@ -350,6 +350,7 @@ test_properties (Test *test, TpAccount *account; gint64 user_action_time; const gchar *handler; + GVariant *vardict; hints = tp_asv_new ("test", G_TYPE_STRING, "hi", NULL); @@ -402,6 +403,16 @@ test_properties (Test *test, g_assert_cmpstr (tp_asv_get_string (hints, "test"), ==, "hi"); g_hash_table_unref (hints); + + vardict = tp_channel_request_dup_hints (test->cr); + g_assert_cmpstr (tp_vardict_get_string (vardict, "test"), ==, "hi"); + g_variant_unref (vardict); + + g_object_get (test->cr, + "hints-vardict", &vardict, + NULL); + g_assert_cmpstr (tp_vardict_get_string (vardict, "test"), ==, "hi"); + g_variant_unref (vardict); } int |