diff options
author | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2012-09-19 12:52:43 +0100 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2012-09-26 14:50:15 +0200 |
commit | b4012b9e337f10a60123ac76c44c68a83700face (patch) | |
tree | 73dd5b4bcb5901de7d58ada697a30ef876de04ba /tests/dbus | |
parent | 51487e6aa62e43661f32ec8055a8185d661cff49 (diff) | |
download | telepathy-glib-b4012b9e337f10a60123ac76c44c68a83700face.tar.gz |
tp_account_channel_request_dup_request, request-vardict property: add
Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=55099
Diffstat (limited to 'tests/dbus')
-rw-r--r-- | tests/dbus/account-channel-request.c | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/dbus/account-channel-request.c b/tests/dbus/account-channel-request.c index 895f1b8da..0de180b5c 100644 --- a/tests/dbus/account-channel-request.c +++ b/tests/dbus/account-channel-request.c @@ -447,6 +447,8 @@ test_handle_ensure_success (Test *test, { TpAccountChannelRequest *req; TpContact *alice; + GHashTable *asv; + GVariant *vardict; alice = tp_tests_connection_run_until_contact_by_id (test->connection, "alice", 0, NULL); @@ -454,6 +456,25 @@ test_handle_ensure_success (Test *test, req = tp_account_channel_request_new_text (test->account, 0); tp_account_channel_request_set_target_contact (req, alice); + asv = (GHashTable *) tp_account_channel_request_get_request (req); + vardict = tp_account_channel_request_dup_request (req); + g_assert_cmpstr (tp_asv_get_string (asv, + TP_PROP_CHANNEL_TARGET_ID), ==, "alice"); + g_assert_cmpstr (tp_vardict_get_string (vardict, + TP_PROP_CHANNEL_TARGET_ID), ==, "alice"); + g_variant_unref (vardict); + + g_object_get (req, + "request", &asv, + "request-vardict", &vardict, + NULL); + g_assert_cmpstr (tp_asv_get_string (asv, + TP_PROP_CHANNEL_TARGET_ID), ==, "alice"); + g_assert_cmpstr (tp_vardict_get_string (vardict, + TP_PROP_CHANNEL_TARGET_ID), ==, "alice"); + g_hash_table_unref (asv); + g_variant_unref (vardict); + tp_account_channel_request_ensure_and_handle_channel_async (req, NULL, ensure_and_handle_cb, test); |