summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorXavier Claessens <xavier.claessens@collabora.co.uk>2012-07-04 13:45:07 +0200
committerXavier Claessens <xavier.claessens@collabora.co.uk>2012-07-04 17:25:15 +0200
commit48824e96b9ccb1b08bf421b248277e382c102f28 (patch)
tree03ae4b5386effb6fecddbcfe57162e3f281a14e3 /tests
parent83321bc4095d064652a0dd2b537e171b5f6fedd5 (diff)
Stop using TplChannelFactory, reply on TplClientFactory instead
Give a TplClientFactory to the TplObserver, so we get already prepared TplTextChannel and TplCallChannel subclasses.
Diffstat (limited to 'tests')
-rw-r--r--tests/dbus/test-tpl-observer.c17
1 files changed, 1 insertions, 16 deletions
diff --git a/tests/dbus/test-tpl-observer.c b/tests/dbus/test-tpl-observer.c
index b15811e..aef7ad3 100644
--- a/tests/dbus/test-tpl-observer.c
+++ b/tests/dbus/test-tpl-observer.c
@@ -1,19 +1,5 @@
-#include <telepathy-logger/channel-factory-internal.h>
#include <telepathy-logger/observer-internal.h>
-static gint factory_counter = 0;
-
-static TplChannel *
-mock_factory (const gchar *chan_type,
- TpConnection *conn, const gchar *object_path, GHashTable *tp_chan_props,
- TpAccount *tp_acc, GError **error)
-{
- factory_counter += 1;
- return NULL;
-}
-
-
-
int
main (int argc, char **argv)
{
@@ -36,9 +22,8 @@ main (int argc, char **argv)
/* it points to the same mem area, it should be still valid */
g_assert (TPL_IS_OBSERVER (obs2));
- /* register a ChanFactory and test ObserveChannel() */
- _tpl_observer_set_channel_factory (obs, mock_factory);
+ /* FIXME: This test does not actually test anything useful */
/* proper disposal for the singleton when no references are present */
g_object_unref (obs);