summaryrefslogtreecommitdiff
path: root/tests/dbus/test-tpl-log-store-pidgin.c
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2013-09-24 11:36:31 +0200
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2013-09-25 16:36:30 +0200
commit03d9bee69ca5dc45c59e5083bbc521459b8b0c03 (patch)
tree3c48369a445b012562110e7b4a75b9870dda7c18 /tests/dbus/test-tpl-log-store-pidgin.c
parent30f231cc4b89aac17dd0c1426ac0f11df7056454 (diff)
stop using tp_account_new()
https://bugs.freedesktop.org/show_bug.cgi?id=69797
Diffstat (limited to 'tests/dbus/test-tpl-log-store-pidgin.c')
-rw-r--r--tests/dbus/test-tpl-log-store-pidgin.c10
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