[Telepathy-commits] [telepathy-qt4/master] Test the Contact::connection() accessor

Olli Salli olli.salli at collabora.co.uk
Thu Jan 29 12:47:18 PST 2009


---
 tests/dbus/contacts.cpp |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/tests/dbus/contacts.cpp b/tests/dbus/contacts.cpp
index 32fbd38..56c4e44 100644
--- a/tests/dbus/contacts.cpp
+++ b/tests/dbus/contacts.cpp
@@ -212,6 +212,10 @@ void TestContacts::testForHandles()
     QVERIFY(mContacts[1] != NULL);
     QVERIFY(mContacts[2] != NULL);
 
+    QCOMPARE(mContacts[0]->connection(), mConn);
+    QCOMPARE(mContacts[1]->connection(), mConn);
+    QCOMPARE(mContacts[2]->connection(), mConn);
+
     QCOMPARE(mContacts[0]->handle()[0], handles[0]);
     QCOMPARE(mContacts[1]->handle()[0], handles[1]);
     QCOMPARE(mContacts[2]->handle()[0], handles[3]);
-- 
1.5.6.5




More information about the telepathy-commits mailing list