aboutsummaryrefslogtreecommitdiff
path: root/tests/tests.cpp
diff options
context:
space:
mode:
authorJeremy Lainé <jeremy.laine@m4x.org>2012-07-18 14:52:24 +0200
committerJeremy Lainé <jeremy.laine@m4x.org>2012-07-18 14:52:24 +0200
commit89a558dfbbbde668666e7d8af8f52c23fa61530b (patch)
treed04f4a29641a5a35d308623fedf0a0306b49746f /tests/tests.cpp
parent088c9cdd984a08d044064a24a4f898d290297b02 (diff)
downloadqxmpp-89a558dfbbbde668666e7d8af8f52c23fa61530b.tar.gz
make QXmppStreamFeatures string-based to allow pluggable SASL
Diffstat (limited to 'tests/tests.cpp')
-rw-r--r--tests/tests.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/tests.cpp b/tests/tests.cpp
index bc66a25a..0c0c31d1 100644
--- a/tests/tests.cpp
+++ b/tests/tests.cpp
@@ -773,8 +773,8 @@ void TestPackets::testStreamFeatures()
QCOMPARE(features.sessionMode(), QXmppStreamFeatures::Disabled);
QCOMPARE(features.nonSaslAuthMode(), QXmppStreamFeatures::Disabled);
QCOMPARE(features.tlsMode(), QXmppStreamFeatures::Disabled);
- QCOMPARE(features.authMechanisms(), QList<QXmppConfiguration::SASLAuthMechanism>());
- QCOMPARE(features.compressionMethods(), QList<QXmppConfiguration::CompressionMethod>());
+ QCOMPARE(features.authMechanisms(), QStringList());
+ QCOMPARE(features.compressionMethods(), QStringList());
serializePacket(features, xml);
const QByteArray xml2("<stream:features>"
@@ -791,8 +791,8 @@ void TestPackets::testStreamFeatures()
QCOMPARE(features2.sessionMode(), QXmppStreamFeatures::Enabled);
QCOMPARE(features2.nonSaslAuthMode(), QXmppStreamFeatures::Enabled);
QCOMPARE(features2.tlsMode(), QXmppStreamFeatures::Enabled);
- QCOMPARE(features2.authMechanisms(), QList<QXmppConfiguration::SASLAuthMechanism>() << QXmppConfiguration::SASLPlain);
- QCOMPARE(features2.compressionMethods(), QList<QXmppConfiguration::CompressionMethod>() << QXmppConfiguration::ZlibCompression);
+ QCOMPARE(features2.authMechanisms(), QStringList() << "PLAIN");
+ QCOMPARE(features2.compressionMethods(), QStringList() << "zlib");
serializePacket(features2, xml2);
}