diff options
| author | Jeremy Lainé <jeremy.laine@m4x.org> | 2010-08-16 09:03:46 +0000 |
|---|---|---|
| committer | Jeremy Lainé <jeremy.laine@m4x.org> | 2010-08-16 09:03:46 +0000 |
| commit | 45dc743c39b5eb81d3cac02efc59e9f83fbac8ff (patch) | |
| tree | b85bc3142d1c33e82855ffc3ca311a5174658dfd /tests/tests.cpp | |
| parent | 3f5d0f1c999b293c9784bee6f56aa57ff1d5cf45 (diff) | |
| download | qxmpp-45dc743c39b5eb81d3cac02efc59e9f83fbac8ff.tar.gz | |
parse / test availability of non-SASL auth
Diffstat (limited to 'tests/tests.cpp')
| -rw-r--r-- | tests/tests.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/tests.cpp b/tests/tests.cpp index b3a7dd80..0035f401 100644 --- a/tests/tests.cpp +++ b/tests/tests.cpp @@ -285,6 +285,7 @@ void TestPackets::testStreamFeatures() parsePacket(features, xml); QCOMPARE(features.isBindAvailable(), false); QCOMPARE(features.isSessionAvailable(), false); + QCOMPARE(features.isNonSaslAuthAvailable(), false); QCOMPARE(features.authMechanisms(), QList<QXmppConfiguration::SASLAuthMechanism>()); QCOMPARE(features.securityMode(), QXmppConfiguration::TLSDisabled); serializePacket(features, xml); @@ -293,12 +294,14 @@ void TestPackets::testStreamFeatures() "<bind xmlns=\"urn:ietf:params:xml:ns:xmpp-bind\"/>" "<session xmlns=\"urn:ietf:params:xml:ns:xmpp-session\"/>" "<mechanisms xmlns=\"urn:ietf:params:xml:ns:xmpp-sasl\"><mechanism>PLAIN</mechanism></mechanisms>" + "<auth xmlns=\"http://jabber.org/features/iq-auth\"/>" "<starttls xmlns=\"urn:ietf:params:xml:ns:xmpp-tls\"/>" "</stream:features>"); QXmppStreamFeatures features2; parsePacket(features2, xml2); QCOMPARE(features2.isBindAvailable(), true); QCOMPARE(features2.isSessionAvailable(), true); + QCOMPARE(features2.isNonSaslAuthAvailable(), true); QCOMPARE(features2.authMechanisms(), QList<QXmppConfiguration::SASLAuthMechanism>() << QXmppConfiguration::SASLPlain); QCOMPARE(features2.securityMode(), QXmppConfiguration::TLSEnabled); serializePacket(features2, xml2); |
