[Telepathy-commits] [telepathy-qt4/master] Test TextChannel::FeatureMessageCapabilities
Simon McVittie
simon.mcvittie at collabora.co.uk
Wed Feb 18 11:01:03 PST 2009
---
tests/dbus/text-chan.cpp | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/tests/dbus/text-chan.cpp b/tests/dbus/text-chan.cpp
index b27190d..bbe15ea 100644
--- a/tests/dbus/text-chan.cpp
+++ b/tests/dbus/text-chan.cpp
@@ -185,6 +185,12 @@ void TestTextChan::testMessages()
QVERIFY(mChan->isReady(0, TextChannel::FeatureMessageCapabilities));
QVERIFY(!mChan->isReady(0, TextChannel::FeatureMessageQueue));
+ QCOMPARE(mChan->supportedContentTypes(), QStringList() << "*/*");
+ QCOMPARE(static_cast<uint>(mChan->messagePartSupport()),
+ static_cast<uint>(Telepathy::MessagePartSupportFlagOneAttachment |
+ Telepathy::MessagePartSupportFlagMultipleAttachments));
+ QCOMPARE(static_cast<uint>(mChan->deliveryReportingSupport()), 0U);
+
// Make the message queue become ready too
QVERIFY(connect(mChan->becomeReady(0, TextChannel::FeatureMessageQueue),
SIGNAL(finished(Telepathy::Client::PendingOperation *)),
@@ -242,6 +248,10 @@ void TestTextChan::testLegacyText()
QVERIFY(mChan->isReady(0, TextChannel::FeatureMessageCapabilities));
QVERIFY(!mChan->isReady(0, TextChannel::FeatureMessageQueue));
+ QCOMPARE(mChan->supportedContentTypes(), QStringList() << "text/plain");
+ QCOMPARE(static_cast<uint>(mChan->messagePartSupport()), 0U);
+ QCOMPARE(static_cast<uint>(mChan->deliveryReportingSupport()), 0U);
+
// Make the message queue become ready too
QVERIFY(connect(mChan->becomeReady(0, TextChannel::FeatureMessageQueue),
SIGNAL(finished(Telepathy::Client::PendingOperation *)),
--
1.5.6.5
More information about the telepathy-commits
mailing list