summaryrefslogtreecommitdiff
path: root/tests/test-tpl-channel.c
blob: 6ebb429fe3a8cd8a867cffb2b57f5b7fb499a4ca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
#include "tpl-channel-test.h"

#include <telepathy-logger/conf.h>

#define CONNECTION_PATH "org.freedesktop.Telepathy.Connection.gabble.jabber.cosimo_2ealfarano_40collabora_2eco_2euk_2fKazoo"
#define ACCOUNT_PATH "/org/freedesktop/Telepathy/Account/FOO/BAR/BAZ"
#define CHANNEL_PATH "/BAZ"

int main (int argc, char **argv)
{
/*
  TpDBusDaemon *tp_bus_daemon;
  TpAccount *acc;
  TpConnection *conn;
  TplChannelTest *chan;
  GError *error = NULL;

  g_type_init ();

  g_debug ("FOO");
  tp_bus_daemon = tp_dbus_daemon_dup (&error);
  if (tp_bus_daemon == NULL)
    {
      g_critical ("%s", error->message);
      g_clear_error (&error);
      g_error_free (error);
      return 1;
    }

  g_debug ("FOO");
  acc = tp_account_new (tp_bus_daemon, ACCOUNT_PATH, &error);
  if (acc == NULL)
    {
      g_critical ("%s", error->message);
      g_clear_error (&error);
      g_error_free (error);
      return 1;
    }

  g_debug ("FOO");
  conn = tp_connection_new (tp_bus_daemon, CONNECTION_PATH, NULL, &error);
  if (conn == NULL)
    {
      g_critical ("%s", error->message);
      g_clear_error (&error);
      g_error_free (error);
      return 1;
    }

  g_debug ("FOO");
  chan = tpl_channel_test_new (conn, CHANNEL_PATH, NULL, acc, &error);
  if (chan == NULL)
    {
      g_critical ("%s", error->message);
      g_clear_error (&error);
      g_error_free (error);
      return 1;
    }
*/

  return 0;
}