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-tpl-log-store-sqlite.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-tpl-log-store-sqlite.c')
-rw-r--r-- | tests/dbus/test-tpl-log-store-sqlite.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/tests/dbus/test-tpl-log-store-sqlite.c b/tests/dbus/test-tpl-log-store-sqlite.c index 3d887d9..f9a25e1 100644 --- a/tests/dbus/test-tpl-log-store-sqlite.c +++ b/tests/dbus/test-tpl-log-store-sqlite.c @@ -2,6 +2,7 @@ #include <telepathy-logger/log-store-sqlite-internal.h> #include <telepathy-logger/debug-internal.h> +#include <telepathy-logger/client-factory-internal.h> int main (int argc, char **argv) @@ -10,6 +11,7 @@ main (int argc, char **argv) TpDBusDaemon *bus; TpAccount *account; GError *error = NULL; + TpSimpleClientFactory* factory; g_type_init (); @@ -18,9 +20,11 @@ main (int argc, char **argv) bus = tp_dbus_daemon_dup (&error); g_assert_no_error (error); - account = tp_account_new (bus, + factory = _tpl_client_factory_dup (bus); + + account = tp_simple_client_factory_ensure_account (factory, TP_ACCOUNT_OBJECT_PATH_BASE "gabble/jabber/danielle_2emadeley_40collabora_2eco_2euk0", - &error); + NULL, &error); g_assert_no_error (error); store = _tpl_log_store_sqlite_dup (); @@ -32,4 +36,5 @@ main (int argc, char **argv) g_object_unref (store); g_object_unref (account); g_object_unref (bus); + g_object_unref (factory); } |