diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2013-09-24 11:36:31 +0200 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2013-09-25 16:36:30 +0200 |
commit | 03d9bee69ca5dc45c59e5083bbc521459b8b0c03 (patch) | |
tree | 3c48369a445b012562110e7b4a75b9870dda7c18 /tests/dbus/test-log-manager.c | |
parent | 30f231cc4b89aac17dd0c1426ac0f11df7056454 (diff) | |
download | telepathy-logger-03d9bee69ca5dc45c59e5083bbc521459b8b0c03.tar.gz |
stop using tp_account_new()
https://bugs.freedesktop.org/show_bug.cgi?id=69797
Diffstat (limited to 'tests/dbus/test-log-manager.c')
-rw-r--r-- | tests/dbus/test-log-manager.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/tests/dbus/test-log-manager.c b/tests/dbus/test-log-manager.c index 945a06c..22b79f6 100644 --- a/tests/dbus/test-log-manager.c +++ b/tests/dbus/test-log-manager.c @@ -10,6 +10,7 @@ #include "telepathy-logger/log-manager-internal.h" #include "telepathy-logger/log-store-internal.h" #include <telepathy-logger/text-event.h> +#include <telepathy-logger/client-factory-internal.h> #include <telepathy-glib/debug-sender.h> @@ -28,6 +29,7 @@ typedef struct TpDBusDaemon *dbus; TpAccount *account; TpTestsSimpleAccount *account_service; + TpSimpleClientFactory *factory; GList *ret; @@ -119,6 +121,8 @@ teardown_service (TestCaseFixture* fixture, g_object_unref (fixture->dbus); fixture->dbus = NULL; + + g_clear_object (&fixture->factory); } static void @@ -199,8 +203,12 @@ setup_service (TestCaseFixture* fixture, tp_dbus_daemon_register_object (fixture->dbus, account_path, fixture->account_service); - fixture->account = tp_account_new (fixture->dbus, account_path, NULL); + fixture->factory = _tpl_client_factory_dup (fixture->dbus); + + fixture->account = tp_simple_client_factory_ensure_account (fixture->factory, + account_path, NULL, NULL); g_assert (fixture->account != NULL); + tp_proxy_prepare_async (fixture->account, account_features, account_prepare_cb, fixture); g_main_loop_run (fixture->main_loop); |