[next] telepathy-glib: Test tp_account_channel_request_new_text, tp_account_channel_request_set_target_id

Simon McVittie smcv at kemper.freedesktop.org
Mon Apr 30 11:57:30 PDT 2012


Module: telepathy-glib
Branch: next
Commit: 3708aa6276e9b8cd398f55875a83851f92a184e5
URL:    http://cgit.freedesktop.org/telepathy/telepathy-glib/commit/?id=3708aa6276e9b8cd398f55875a83851f92a184e5

Author: Simon McVittie <simon.mcvittie at collabora.co.uk>
Date:   Mon Apr 16 16:49:29 2012 +0100

Test tp_account_channel_request_new_text, tp_account_channel_request_set_target_id

Signed-off-by: Simon McVittie <simon.mcvittie at collabora.co.uk>
Reviewed-by: Jonny Lamb <jonny.lamb at collabora.co.uk>
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=48780

---

 tests/dbus/account-channel-request.c |    7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/tests/dbus/account-channel-request.c b/tests/dbus/account-channel-request.c
index dbb6642..67ac888 100644
--- a/tests/dbus/account-channel-request.c
+++ b/tests/dbus/account-channel-request.c
@@ -193,12 +193,12 @@ static void
 test_handle_create_success (Test *test,
     gconstpointer data G_GNUC_UNUSED)
 {
-  GHashTable *request;
   TpAccountChannelRequest *req;
   TpChannelRequest *chan_req;
 
-  request = create_request ();
-  req = tp_account_channel_request_new (test->account, request, 0);
+  req = tp_account_channel_request_new_text (test->account, 0);
+  tp_account_channel_request_set_target_id (req, TP_HANDLE_TYPE_CONTACT,
+      "alice");
 
   /* We didn't start requesting the channel yet, so there is no
    * ChannelRequest */
@@ -208,7 +208,6 @@ test_handle_create_success (Test *test,
   tp_account_channel_request_create_and_handle_channel_async (req,
       NULL, create_and_handle_cb, test);
 
-  g_hash_table_unref (request);
   g_object_unref (req);
 
   g_main_loop_run (test->mainloop);



More information about the telepathy-commits mailing list