From 5559ed29681d031f36e7a7d011e3ec4bec3635f5 Mon Sep 17 00:00:00 2001 From: Linus Jahn Date: Sat, 24 Oct 2015 00:19:25 +0200 Subject: Implement XEP-0352: Client State Indication This commit is based on a pull request by fbeutel (GitHub) (see #87) and was rebased and slightly modified by me. --- tests/qxmppstreamfeatures/tst_qxmppstreamfeatures.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tests/qxmppstreamfeatures/tst_qxmppstreamfeatures.cpp') diff --git a/tests/qxmppstreamfeatures/tst_qxmppstreamfeatures.cpp b/tests/qxmppstreamfeatures/tst_qxmppstreamfeatures.cpp index f5f0ea0f..16b17408 100644 --- a/tests/qxmppstreamfeatures/tst_qxmppstreamfeatures.cpp +++ b/tests/qxmppstreamfeatures/tst_qxmppstreamfeatures.cpp @@ -43,6 +43,7 @@ void tst_QXmppStreamFeatures::testEmpty() QCOMPARE(features.sessionMode(), QXmppStreamFeatures::Disabled); QCOMPARE(features.nonSaslAuthMode(), QXmppStreamFeatures::Disabled); QCOMPARE(features.tlsMode(), QXmppStreamFeatures::Disabled); + QCOMPARE(features.clientStateIndicationMode(), QXmppStreamFeatures::Disabled); QCOMPARE(features.authMechanisms(), QStringList()); QCOMPARE(features.compressionMethods(), QStringList()); serializePacket(features, xml); @@ -55,6 +56,7 @@ void tst_QXmppStreamFeatures::testFull() "" "" "" + "" "zlib" "PLAIN" ""); @@ -65,6 +67,7 @@ void tst_QXmppStreamFeatures::testFull() QCOMPARE(features.sessionMode(), QXmppStreamFeatures::Enabled); QCOMPARE(features.nonSaslAuthMode(), QXmppStreamFeatures::Enabled); QCOMPARE(features.tlsMode(), QXmppStreamFeatures::Enabled); + QCOMPARE(features.clientStateIndicationMode(), QXmppStreamFeatures::Enabled); QCOMPARE(features.authMechanisms(), QStringList() << "PLAIN"); QCOMPARE(features.compressionMethods(), QStringList() << "zlib"); serializePacket(features, xml); -- cgit v1.2.3