summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2014-02-25 14:35:42 +0100
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2014-02-25 14:35:42 +0100
commitbc7cdedbf761fc78ab176f77c8e31376527cc9fe (patch)
tree7d7ed86480d06272fc3eed346d512a372719273a /tests
parent6d1aed685b8860d2e0cc4d12b251d19616617819 (diff)
downloadtelepathy-glib-bc7cdedbf761fc78ab176f77c8e31376527cc9fe.tar.gz
add tp_account_channel_request_set_sms_channel()
Diffstat (limited to 'tests')
-rw-r--r--tests/dbus/account-channel-request.c6
1 files changed, 5 insertions, 1 deletions
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 */