diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2014-02-25 15:45:33 +0100 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2014-02-26 10:31:07 +0100 |
commit | aa643f1836a732d0b849d465b7777ac3265ef9a4 (patch) | |
tree | 5abcd140118d79241b2601431fe1aa2333185355 /tests | |
parent | 5ecb253be2a30f7bbde601aeed65f75acb7476ae (diff) | |
download | telepathy-glib-aa643f1836a732d0b849d465b7777ac3265ef9a4.tar.gz |
add tp_account_channel_request_set_conference_initial_channels()
Diffstat (limited to 'tests')
-rw-r--r-- | tests/dbus/account-channel-request.c | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/tests/dbus/account-channel-request.c b/tests/dbus/account-channel-request.c index 401a46c78..410e582f4 100644 --- a/tests/dbus/account-channel-request.c +++ b/tests/dbus/account-channel-request.c @@ -1318,9 +1318,13 @@ test_no_handle_type (Test *test, { TpAccountChannelRequest *req; gboolean valid; + const gchar * const channels[] = { "/chan1", "/chan2", NULL }; + GPtrArray *chans; req = tp_account_channel_request_new_text (test->account, 0); + tp_account_channel_request_set_conference_initial_channels (req, channels); + /* Ask to the CR to fire the signal */ tp_account_channel_request_set_request_property (req, "FireFailed", g_variant_new_boolean (TRUE)); @@ -1342,8 +1346,16 @@ test_no_handle_type (Test *test, g_assert (valid); g_assert_cmpuint (tp_asv_get_boolean (test->cd_service->last_request, "FireFailed", NULL), ==, TRUE); - g_assert_cmpuint (tp_asv_size (test->cd_service->last_request), ==, 3); + g_assert_cmpuint (tp_asv_size (test->cd_service->last_request), ==, 4); g_assert_cmpuint (test->cd_service->last_user_action_time, ==, 0); + + chans = tp_asv_get_boxed (test->cd_service->last_request, + TP_PROP_CHANNEL_INTERFACE_CONFERENCE_INITIAL_CHANNELS, + TP_ARRAY_TYPE_OBJECT_PATH_LIST); + g_assert (chans != NULL); + g_assert_cmpuint (chans->len, ==, 2); + g_assert_cmpstr (g_ptr_array_index (chans, 0), ==, "/chan1"); + g_assert_cmpstr (g_ptr_array_index (chans, 1), ==, "/chan2"); } int |