1
/* A very basic feature test for TpClient
3
* Copyright (C) 2009 Collabora Ltd. <http://www.collabora.co.uk/>
4
* Copyright (C) 2009 Nokia Corporation
6
* Copying and distribution of this file, with or without modification,
7
* are permitted in any medium without royalty provided the copyright
8
* notice and this notice are preserved.
11
#include <telepathy-glib/client.h>
12
#include <telepathy-glib/debug.h>
19
GError *error /* initialized where needed */;
27
tp_debug_set_flags ("all");
29
test->mainloop = g_main_loop_new (NULL, FALSE);
30
test->dbus = tp_dbus_daemon_dup (NULL);
31
g_assert (test->dbus != NULL);
40
if (test->client != NULL)
42
g_object_unref (test->client);
46
g_object_unref (test->dbus);
48
g_main_loop_unref (test->mainloop);
49
test->mainloop = NULL;
54
gconstpointer data G_GNUC_UNUSED)
56
test->client = g_object_new (TP_TYPE_CLIENT,
57
"dbus-daemon", test->dbus,
58
"object-path", "/org/freedesktop/Telepathy/Client/whatever",
59
"bus-name", "org.freedesktop.Telepathy.Client.whatever",
61
g_assert (test->client != NULL);
68
g_test_init (&argc, &argv, NULL);
69
g_test_bug_base ("http://bugs.freedesktop.org/show_bug.cgi?id=");
71
g_test_add ("/client/new", Test, NULL, setup, test_new, teardown);