[telepathy-qt4/master] chan-group test: Added test to Channel::groupSelfContactRemoveInfo.

Andre Moreira Magalhaes (andrunko) andre.magalhaes at collabora.co.uk
Fri Jul 24 08:45:28 PDT 2009


---
 tests/dbus/chan-group.cpp |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/tests/dbus/chan-group.cpp b/tests/dbus/chan-group.cpp
index ebda8a1..2416ea9 100644
--- a/tests/dbus/chan-group.cpp
+++ b/tests/dbus/chan-group.cpp
@@ -560,6 +560,14 @@ void TestChanGroup::doTestCreateChannel()
     expectedIds.sort();
     checkExpectedIds(mChan->groupContacts(), expectedIds);
 
+    mChan->groupRemoveContacts(QList<ContactPtr>() << mChan->groupSelfContact(), "I want to remove myself");
+    QCOMPARE(mLoop->exec(), 0);
+    QCOMPARE(mChan->groupSelfContactRemoveInfo().hasActor(), true);
+    QCOMPARE(mChan->groupSelfContactRemoveInfo().actor(), mChan->groupSelfContact());
+    QCOMPARE(mChan->groupSelfContactRemoveInfo().hasMessage(), true);
+    QCOMPARE(mChan->groupSelfContactRemoveInfo().message(), QString("I want to remove myself"));
+    QCOMPARE(mChan->groupSelfContactRemoveInfo().hasError(), false);
+
     mChan.reset();
 }
 
-- 
1.5.6.5




More information about the telepathy-commits mailing list