aboutsummaryrefslogtreecommitdiff
path: root/tests/qxmppstreamfeatures/tst_qxmppstreamfeatures.cpp
diff options
context:
space:
mode:
authorLinus Jahn <lnj@kaidan.im>2020-04-05 16:56:18 +0200
committerLNJ <lnj@kaidan.im>2020-04-05 21:25:54 +0200
commitb833a5ae93b00b973c06018b6615526e0a8e1719 (patch)
treeb58b429a852fb91b17fcfe208aa7c29bb600c282 /tests/qxmppstreamfeatures/tst_qxmppstreamfeatures.cpp
parent1e2aba332b0a92a028045ffdd5c33fec2a944116 (diff)
downloadqxmpp-b833a5ae93b00b973c06018b6615526e0a8e1719.tar.gz
Add roster versioning stream feature
Diffstat (limited to 'tests/qxmppstreamfeatures/tst_qxmppstreamfeatures.cpp')
-rw-r--r--tests/qxmppstreamfeatures/tst_qxmppstreamfeatures.cpp3
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);