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

« back to all changes in this revision

Viewing changes to tests/dbus/connection-bug-18845.c

  • Committer: Bazaar Package Importer
  • Author(s): Simon McVittie
  • Date: 2010-06-14 17:42:08 UTC
  • mfrom: (1.6.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20100614174208-7b6teypo8jnx5uux
Tags: 0.11.7-1
* New upstream version
  - requires gobject-introspection 0.6.13
  - new ABI, API

Show diffs side-by-side

added added

removed removed

Lines of Context:
35
35
      char **argv)
36
36
{
37
37
  TpDBusDaemon *dbus;
38
 
  SimpleConnection *service_conn;
 
38
  TpTestsSimpleConnection *service_conn;
39
39
  TpBaseConnection *service_conn_as_base;
40
40
  gchar *name;
41
41
  gchar *conn_path;
48
48
 
49
49
  tp_debug_set_flags ("all");
50
50
  mainloop = g_main_loop_new (NULL, FALSE);
51
 
  dbus = test_dbus_daemon_dup_or_die ();
 
51
  dbus = tp_tests_dbus_daemon_dup_or_die ();
52
52
 
53
 
  service_conn = SIMPLE_CONNECTION (test_object_new_static_class (
54
 
        SIMPLE_TYPE_CONNECTION,
 
53
  service_conn = TP_TESTS_SIMPLE_CONNECTION (tp_tests_object_new_static_class (
 
54
        TP_TESTS_TYPE_SIMPLE_CONNECTION,
55
55
        "account", "me@example.com",
56
56
        "protocol", "simple",
57
57
        NULL));
61
61
 
62
62
  MYASSERT (tp_base_connection_register (service_conn_as_base, "simple",
63
63
        &name, &conn_path, &error), "");
64
 
  test_assert_no_error (error);
 
64
  g_assert_no_error (error);
65
65
 
66
66
  conn = tp_connection_new (dbus, name, conn_path, &error);
67
67
  MYASSERT (conn != NULL, "");
68
 
  test_assert_no_error (error);
 
68
  g_assert_no_error (error);
69
69
  MYASSERT (tp_connection_run_until_ready (conn, TRUE, &error, NULL),
70
70
      "");
71
 
  test_assert_no_error (error);
 
71
  g_assert_no_error (error);
72
72
 
73
73
  {
74
74
    const gchar *ids[] = {
79
79
 
80
80
    MYASSERT (tp_cli_connection_run_request_handles (conn, -1,
81
81
        TP_HANDLE_TYPE_CONTACT, ids, &handles, &error, NULL), "");
82
 
    test_assert_no_error (error);
 
82
    g_assert_no_error (error);
83
83
 
84
84
    g_array_free (handles, TRUE);
85
85
  }
89
89
   */
90
90
  proxy = tp_proxy_borrow_interface_by_id ((TpProxy *) conn,
91
91
      TP_IFACE_QUARK_CONNECTION, &error);
92
 
  test_assert_no_error (error);
 
92
  g_assert_no_error (error);
93
93
  g_signal_emit_by_name (proxy, "destroy");
94
94
 
95
95
  g_idle_add_full (G_PRIORITY_LOW, no_more_idling_around, mainloop, NULL);
103
103
   */
104
104
  conn = tp_connection_new (dbus, name, conn_path, &error);
105
105
  MYASSERT (conn != NULL, "");
106
 
  test_assert_no_error (error);
 
106
  g_assert_no_error (error);
107
107
  MYASSERT (tp_connection_run_until_ready (conn, TRUE, &error, NULL), "");
108
 
  test_assert_no_error (error);
 
108
  g_assert_no_error (error);
109
109
 
110
110
  MYASSERT (tp_cli_connection_run_disconnect (conn, -1, &error, NULL), "");
111
 
  test_assert_no_error (error);
 
111
  g_assert_no_error (error);
112
112
 
113
113
  g_object_unref (conn);
114
114