diff options
author | Xavier Claessens <xavier.claessens@collabora.co.uk> | 2012-05-16 14:37:29 +0200 |
---|---|---|
committer | Xavier Claessens <xavier.claessens@collabora.co.uk> | 2012-07-03 13:46:41 +0200 |
commit | be781d63238f4eb55a334508c6073101d01a4ab0 (patch) | |
tree | 75102f092db69991e32cd524bd433e1dd1ce3333 | |
parent | 633b26af12ce440481b75ec4ce7ab9786033bc9a (diff) |
tests/lib: Stop using tp_connection_new()
https://bugs.freedesktop.org/show_bug.cgi?id=49372
-rw-r--r-- | tests/lib/util.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/lib/util.c b/tests/lib/util.c index 009d96483..21d385502 100644 --- a/tests/lib/util.c +++ b/tests/lib/util.c @@ -183,6 +183,7 @@ tp_tests_create_conn (GType conn_type, TpConnection **client_conn) { TpDBusDaemon *dbus; + TpSimpleClientFactory *factory; gchar *name; gchar *conn_path; GError *error = NULL; @@ -191,6 +192,7 @@ tp_tests_create_conn (GType conn_type, g_assert (client_conn != NULL); dbus = tp_tests_dbus_daemon_dup_or_die (); + factory = (TpSimpleClientFactory *) tp_automatic_client_factory_new (dbus); *service_conn = tp_tests_object_new_static_class ( conn_type, @@ -203,8 +205,8 @@ tp_tests_create_conn (GType conn_type, &name, &conn_path, &error)); g_assert_no_error (error); - *client_conn = tp_connection_new (dbus, name, conn_path, - &error); + *client_conn = tp_simple_client_factory_ensure_connection (factory, + conn_path, NULL, &error); g_assert (*client_conn != NULL); g_assert_no_error (error); @@ -220,6 +222,7 @@ tp_tests_create_conn (GType conn_type, g_free (conn_path); g_object_unref (dbus); + g_object_unref (factory); } void |