summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2014-02-25 12:39:59 +0100
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2014-02-25 12:39:59 +0100
commit410e44a648eb3bd2eb5db31a39326b01ac953eac (patch)
treeb1cc0f0a4a0ca6f63f1139c00fc08077749d69ed /tests
parent8cc41d121d1579893c2c7f7cc7bc90670170380f (diff)
downloadtelepathy-glib-410e44a648eb3bd2eb5db31a39326b01ac953eac.tar.gz
add tp_account_channel_request_set_file_transfer_hash()
Diffstat (limited to 'tests')
-rw-r--r--tests/dbus/account-channel-request.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/tests/dbus/account-channel-request.c b/tests/dbus/account-channel-request.c
index 7016338ad..fc7d90cae 100644
--- a/tests/dbus/account-channel-request.c
+++ b/tests/dbus/account-channel-request.c
@@ -374,6 +374,8 @@ test_ft_props (Test *test,
1111222233);
tp_account_channel_request_set_file_transfer_uri (req,
"file:///home/Downloads/warez.rar");
+ tp_account_channel_request_set_file_transfer_hash (req,
+ TP_FILE_HASH_TYPE_SHA256, "This is not a hash");
/* Ask to the CR to fire the signal */
tp_account_channel_request_set_request_property (req, "FireFailed",
@@ -411,9 +413,15 @@ test_ft_props (Test *test,
g_assert_cmpuint (tp_asv_get_uint64 (test->cd_service->last_request,
TP_PROP_CHANNEL_TYPE_FILE_TRANSFER_DATE, NULL), ==,
1111222233);
+ g_assert_cmpuint (tp_asv_get_uint32 (test->cd_service->last_request,
+ TP_PROP_CHANNEL_TYPE_FILE_TRANSFER_CONTENT_HASH_TYPE, NULL), ==,
+ TP_FILE_HASH_TYPE_SHA256);
+ g_assert_cmpstr (tp_asv_get_string (test->cd_service->last_request,
+ TP_PROP_CHANNEL_TYPE_FILE_TRANSFER_CONTENT_HASH), ==,
+ "This is not a hash");
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), ==, 9);
+ g_assert_cmpuint (tp_asv_size (test->cd_service->last_request), ==, 11);
g_assert_cmpuint (test->cd_service->last_user_action_time, ==, 0);
}