summaryrefslogtreecommitdiff
path: root/qt4/tests
diff options
context:
space:
mode:
Diffstat (limited to 'qt4/tests')
-rw-r--r--qt4/tests/dbus/client-factories.cpp41
1 files changed, 41 insertions, 0 deletions
diff --git a/qt4/tests/dbus/client-factories.cpp b/qt4/tests/dbus/client-factories.cpp
index 87b84b6b0..de8b96ee2 100644
--- a/qt4/tests/dbus/client-factories.cpp
+++ b/qt4/tests/dbus/client-factories.cpp
@@ -374,6 +374,7 @@ private Q_SLOTS:
void testAddDispatchOperation();
void testRequests();
void testHandleChannels();
+ void testChannelFactoryAccessors();
void cleanup();
void cleanupTestCase();
@@ -950,6 +951,46 @@ void TestClientFactories::testHandleChannels()
QVERIFY(handledChannels.isEmpty());
}
+void TestClientFactories::testChannelFactoryAccessors()
+{
+ QDBusConnection bus = QDBusConnection::sessionBus();
+
+ ChannelFactoryPtr chanFact = ChannelFactory::create(bus);
+
+ QCOMPARE(chanFact->featuresForTextChats(), Features());
+ QCOMPARE(chanFact->featuresFor(ChannelClassSpec::textChat()), Features());
+ QCOMPARE(chanFact->featuresFor(ChannelClassSpec::unnamedTextChat()), Features());
+
+ QCOMPARE(chanFact->featuresForTextChatrooms(), Features());
+ QCOMPARE(chanFact->featuresFor(ChannelClassSpec::textChatroom()), Features());
+
+ QCOMPARE(chanFact->featuresForStreamedMediaCalls(), Features());
+ QCOMPARE(chanFact->featuresFor(ChannelClassSpec::streamedMediaCall()), Features());
+ QCOMPARE(chanFact->featuresFor(ChannelClassSpec::streamedMediaAudioCall()), Features());
+ QCOMPARE(chanFact->featuresFor(ChannelClassSpec::streamedMediaVideoCall()), Features());
+ QCOMPARE(chanFact->featuresFor(ChannelClassSpec::streamedMediaVideoCallWithAudio()), Features());
+ QCOMPARE(chanFact->featuresFor(ChannelClassSpec::unnamedStreamedMediaCall()), Features());
+ QCOMPARE(chanFact->featuresFor(ChannelClassSpec::unnamedStreamedMediaAudioCall()), Features());
+ QCOMPARE(chanFact->featuresFor(ChannelClassSpec::unnamedStreamedMediaVideoCall()), Features());
+ QCOMPARE(chanFact->featuresFor(ChannelClassSpec::unnamedStreamedMediaVideoCallWithAudio()), Features());
+
+ QCOMPARE(chanFact->featuresForRoomLists(), Features());
+ QCOMPARE(chanFact->featuresFor(ChannelClassSpec::roomList()), Features());
+
+ QCOMPARE(chanFact->featuresForOutgoingFileTransfers(), Features());
+ QCOMPARE(chanFact->featuresForIncomingFileTransfers(), Features());
+ QCOMPARE(chanFact->featuresFor(ChannelClassSpec::outgoingFileTransfer()), Features());
+ QCOMPARE(chanFact->featuresFor(ChannelClassSpec::incomingFileTransfer()), Features());
+
+ QCOMPARE(chanFact->featuresForOutgoingStreamTubes(), Features());
+ QCOMPARE(chanFact->featuresForIncomingStreamTubes(), Features());
+ QCOMPARE(chanFact->featuresFor(ChannelClassSpec::outgoingStreamTube()), Features());
+ QCOMPARE(chanFact->featuresFor(ChannelClassSpec::incomingStreamTube()), Features());
+
+ QCOMPARE(chanFact->featuresFor(ChannelClassSpec::contactSearch()), Features());
+ QCOMPARE(chanFact->featuresForContactSearches(), Features());
+}
+
void TestClientFactories::cleanup()
{
cleanupImpl();