[Telepathy-commits] [telepathy-qt4/master] Channel: Added test for requestClose/isClosed.

Andre Moreira Magalhaes (andrunko) andre.magalhaes at collabora.co.uk
Thu Jan 29 13:20:55 PST 2009


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

diff --git a/tests/dbus/chan-basics.cpp b/tests/dbus/chan-basics.cpp
index db97d31..1300014 100644
--- a/tests/dbus/chan-basics.cpp
+++ b/tests/dbus/chan-basics.cpp
@@ -292,6 +292,12 @@ void TestChanBasics::testEnsureChannel()
         QCOMPARE(mLoop->exec(), 0);
         QCOMPARE(mChan->isReady(), true);
 
+        QVERIFY(connect(mChan->requestClose(),
+                        SIGNAL(finished(Telepathy::Client::PendingOperation*)),
+                        SLOT(expectSuccessfulCall(Telepathy::Client::PendingOperation*))));
+        QCOMPARE(mLoop->exec(), 0);
+        QCOMPARE(mChan->isClosed(), true);
+
         delete mChan;
         mChan = 0;
     }
-- 
1.5.6.5




More information about the telepathy-commits mailing list