~ubuntu-branches/ubuntu/maverick/telepathy-glib/maverick

« back to all changes in this revision

Viewing changes to tests/dbus/client.c

  • Committer: Bazaar Package Importer
  • Author(s): Simon McVittie
  • Date: 2010-05-10 17:59:54 UTC
  • mfrom: (1.6.1 upstream) (27.1.3 sid)
  • Revision ID: james.westby@ubuntu.com-20100510175954-bxvqq3xx0sy4itmp
Tags: 0.11.5-1
New upstream version with new API/ABI

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
#include <telepathy-glib/client.h>
12
12
#include <telepathy-glib/debug.h>
13
13
 
 
14
#include "tests/lib/util.h"
 
15
 
14
16
typedef struct {
15
17
    GMainLoop *mainloop;
16
18
    TpDBusDaemon *dbus;
27
29
  tp_debug_set_flags ("all");
28
30
 
29
31
  test->mainloop = g_main_loop_new (NULL, FALSE);
30
 
  test->dbus = tp_dbus_daemon_dup (NULL);
31
 
  g_assert (test->dbus != NULL);
 
32
  test->dbus = test_dbus_daemon_dup_or_die ();
32
33
 
33
34
  test->client = NULL;
34
35
}
53
54
test_new (Test *test,
54
55
          gconstpointer data G_GNUC_UNUSED)
55
56
{
56
 
  test->client = g_object_new (TP_TYPE_CLIENT,
 
57
  test->client = test_object_new_static_class (TP_TYPE_CLIENT,
57
58
      "dbus-daemon", test->dbus,
58
59
      "object-path", "/org/freedesktop/Telepathy/Client/whatever",
59
60
      "bus-name", "org.freedesktop.Telepathy.Client.whatever",