[Telepathy-commits] [telepathy-qt4/master] Connection: Added test for ensureChannel.
Andre Moreira Magalhaes (andrunko)
andre.magalhaes at collabora.co.uk
Sun Jan 25 14:08:30 PST 2009
P.s.: pinocchio does not support RequestsInterface for now.
---
tests/pinocchio/chan-basics.cpp | 15 +++++++++++++++
1 files changed, 15 insertions(+), 0 deletions(-)
diff --git a/tests/pinocchio/chan-basics.cpp b/tests/pinocchio/chan-basics.cpp
index aa0c6a1..91be815 100644
--- a/tests/pinocchio/chan-basics.cpp
+++ b/tests/pinocchio/chan-basics.cpp
@@ -135,6 +135,21 @@ void TestChanBasics::initTestCase()
this,
SLOT(expectRequestChannelFinished(Telepathy::Client::PendingOperation*)));
QCOMPARE(mLoop->exec(), 0);
+
+ if (mConn->requestsInterface()) {
+ QVariantMap map;
+ map.insert(QLatin1String(TELEPATHY_INTERFACE_ACCOUNT ".ChannelType"),
+ TELEPATHY_INTERFACE_CHANNEL_TYPE_CONTACT_LIST);
+ map.insert(QLatin1String(TELEPATHY_INTERFACE_ACCOUNT ".TargetHandleType"),
+ Telepathy::HandleTypeList);
+ map.insert(QLatin1String(TELEPATHY_INTERFACE_ACCOUNT ".TargetHandle"),
+ mSubscribeHandle);
+ connect(mConn->ensureChannel(map),
+ SIGNAL(finished(Telepathy::Client::PendingOperation*)),
+ this,
+ SLOT(expectRequestChannelFinished(Telepathy::Client::PendingOperation*)));
+ QCOMPARE(mLoop->exec(), 0);
+ }
}
--
1.5.6.5
More information about the Telepathy-commits
mailing list