diff options
Diffstat (limited to 'tests/dbus/test-tpl-log-store-pidgin.c')
-rw-r--r-- | tests/dbus/test-tpl-log-store-pidgin.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/tests/dbus/test-tpl-log-store-pidgin.c b/tests/dbus/test-tpl-log-store-pidgin.c index a15a87d..38b3809 100644 --- a/tests/dbus/test-tpl-log-store-pidgin.c +++ b/tests/dbus/test-tpl-log-store-pidgin.c @@ -11,6 +11,7 @@ #include <telepathy-logger/log-store-pidgin-internal.h> #include <telepathy-logger/text-event-internal.h> +#include <telepathy-logger/client-factory-internal.h> #include <telepathy-glib/debug-sender.h> @@ -34,6 +35,7 @@ typedef struct TpDBusDaemon *dbus; TpAccount *account; TpTestsSimpleAccount *account_service; + TpSimpleClientFactory *factory; TplLogStorePidgin *store; TplEntity *room; @@ -147,8 +149,12 @@ setup_service (PidginTestCaseFixture* 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); @@ -217,6 +223,8 @@ teardown_service (PidginTestCaseFixture* fixture, g_object_unref (fixture->dbus); fixture->dbus = NULL; + + g_clear_object (&fixture->factory); } static void |