From bc7cdedbf761fc78ab176f77c8e31376527cc9fe Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Tue, 25 Feb 2014 14:35:42 +0100 Subject: add tp_account_channel_request_set_sms_channel() --- tests/dbus/account-channel-request.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/dbus/account-channel-request.c b/tests/dbus/account-channel-request.c index bd8b94575..b2bdd10fb 100644 --- a/tests/dbus/account-channel-request.c +++ b/tests/dbus/account-channel-request.c @@ -210,6 +210,8 @@ test_handle_create_success (Test *test, tp_account_channel_request_set_target_id (req, TP_HANDLE_TYPE_CONTACT, "alice"); + tp_account_channel_request_set_sms_channel (req, TRUE); + /* We didn't start requesting the channel yet, so there is no * ChannelRequest */ chan_req = tp_account_channel_request_get_channel_request (req); @@ -236,7 +238,9 @@ test_handle_create_success (Test *test, TP_PROP_CHANNEL_TARGET_ID), ==, "alice"); g_assert_cmpuint (tp_asv_get_uint32 (test->cd_service->last_request, TP_PROP_CHANNEL_TARGET_HANDLE_TYPE, NULL), ==, TP_HANDLE_TYPE_CONTACT); - 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 (tp_asv_get_boolean (test->cd_service->last_request, + TP_PROP_CHANNEL_INTERFACE_SMS_SMS_CHANNEL, NULL)); } /* ChannelDispatcher.CreateChannel() call fails */ -- cgit v1.2.1