[Telepathy-commits] [telepathy-qt4/master] text-chan test: use ContactsConnection

Simon McVittie simon.mcvittie at collabora.co.uk
Fri Feb 20 06:08:48 PST 2009


Tp-Qt4 doesn't have the necessary fallback code to make even basic
Contact objects in the absence of the Contacts interface.
---
 tests/dbus/text-chan.cpp |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/tests/dbus/text-chan.cpp b/tests/dbus/text-chan.cpp
index 0ef4515..49a23d7 100644
--- a/tests/dbus/text-chan.cpp
+++ b/tests/dbus/text-chan.cpp
@@ -12,7 +12,7 @@
 
 #include <telepathy-glib/debug.h>
 
-#include <tests/lib/simple-conn.h>
+#include <tests/lib/contacts-conn.h>
 #include <tests/lib/echo/chan.h>
 #include <tests/lib/echo2/chan.h>
 #include <tests/lib/test.h>
@@ -66,7 +66,7 @@ private Q_SLOTS:
 private:
     void sendText(const char *text);
 
-    SimpleConnection *mConnService;
+    ContactsConnection *mConnService;
     TpBaseConnection *mBaseConnService;
     TpHandleRepoIface *mContactRepo;
     ExampleEchoChannel *mTextChanService;
@@ -136,8 +136,8 @@ void TestTextChan::initTestCase()
     gchar *connPath;
     GError *error = 0;
 
-    mConnService = SIMPLE_CONNECTION(g_object_new(
-            SIMPLE_TYPE_CONNECTION,
+    mConnService = CONTACTS_CONNECTION(g_object_new(
+            CONTACTS_TYPE_CONNECTION,
             "account", "me at example.com",
             "protocol", "example",
             0));
-- 
1.5.6.5




More information about the telepathy-commits mailing list