diff options
Diffstat (limited to 'tests/qxmppstreamfeatures/tst_qxmppstreamfeatures.cpp')
| -rw-r--r-- | tests/qxmppstreamfeatures/tst_qxmppstreamfeatures.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/qxmppstreamfeatures/tst_qxmppstreamfeatures.cpp b/tests/qxmppstreamfeatures/tst_qxmppstreamfeatures.cpp index 72a0e31d..fe011789 100644 --- a/tests/qxmppstreamfeatures/tst_qxmppstreamfeatures.cpp +++ b/tests/qxmppstreamfeatures/tst_qxmppstreamfeatures.cpp @@ -49,6 +49,7 @@ void tst_QXmppStreamFeatures::testEmpty() QCOMPARE(features.clientStateIndicationMode(), QXmppStreamFeatures::Disabled); QCOMPARE(features.registerMode(), QXmppStreamFeatures::Disabled); QCOMPARE(features.preApprovedSubscriptionsSupported(), false); + QCOMPARE(features.rosterVersioningSupported(), false); QCOMPARE(features.authMechanisms(), QStringList()); QCOMPARE(features.compressionMethods(), QStringList()); serializePacket(features, xml); @@ -79,6 +80,7 @@ void tst_QXmppStreamFeatures::testFull() "<csi xmlns=\"urn:xmpp:csi:0\"/>" "<register xmlns=\"http://jabber.org/features/iq-register\"/>" "<sub xmlns=\"urn:xmpp:features:pre-approval\"/>" + "<ver xmlns=\"urn:xmpp:features:rosterver\"/>" "<compression xmlns=\"http://jabber.org/features/compress\"><method>zlib</method></compression>" "<mechanisms xmlns=\"urn:ietf:params:xml:ns:xmpp-sasl\"><mechanism>PLAIN</mechanism></mechanisms>" "</stream:features>"); @@ -104,6 +106,7 @@ void tst_QXmppStreamFeatures::testFull() features.setClientStateIndicationMode(QXmppStreamFeatures::Enabled); features.setRegisterMode(QXmppStreamFeatures::Enabled); features.setPreApprovedSubscriptionsSupported(true); + features.setRosterVersioningSupported(true); features.setAuthMechanisms(QStringList { QStringLiteral("PLAIN") }); features.setCompressionMethods(QStringList { QStringLiteral("zlib") }); serializePacket(features, xml); |
