summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorXavier Claessens <xavier.claessens@collabora.com>2014-03-29 13:55:59 -0400
committerSimon McVittie <simon.mcvittie@collabora.co.uk>2014-04-01 14:29:19 +0100
commit1202709d97c6f5ed11c6259f13c01870fcfb663e (patch)
treed854d31d5ebe6d727608c8625eecc96b11bae93f /tests
parent091a2b2a84b6779ed609644abbeb84165b21bac3 (diff)
TpDebusClient: Always create from a factory
Diffstat (limited to 'tests')
-rw-r--r--tests/dbus/debug-client.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/dbus/debug-client.c b/tests/dbus/debug-client.c
index 30205ede6..6a36c7552 100644
--- a/tests/dbus/debug-client.c
+++ b/tests/dbus/debug-client.c
@@ -36,6 +36,8 @@ static void
setup (Test *test,
gconstpointer data)
{
+ TpClientFactory *factory;
+
test->mainloop = g_main_loop_new (NULL, FALSE);
test->dbus = tp_tests_dbus_daemon_dup_or_die ();
@@ -44,9 +46,11 @@ setup (Test *test,
test->sender = tp_debug_sender_dup ();
g_assert (test->sender != NULL);
- test->client = tp_debug_client_new (test->dbus,
+ factory = tp_client_factory_new (test->dbus);
+ test->client = tp_client_factory_ensure_debug_client (factory,
tp_dbus_daemon_get_unique_name (test->dbus), &test->error);
g_assert_no_error (test->error);
+ g_object_unref (factory);
}
static void