summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2010-08-29 14:35:58 (GMT)
committerRemko Tronçon <git@el-tramo.be>2010-08-29 14:35:58 (GMT)
commit8310fa230b40122fff897727fe6850a67a4b73be (patch)
tree16afece093a6409ed2b3588f5c270f9781a40a75 /Swiften/Parser/UnitTest
parent0091fcc571758791442f82ece2a72444b6fe79cf (diff)
downloadswift-8310fa230b40122fff897727fe6850a67a4b73be.zip
swift-8310fa230b40122fff897727fe6850a67a4b73be.tar.bz2
Added Stream Management support to Stream Features.
Diffstat (limited to 'Swiften/Parser/UnitTest')
-rw-r--r--Swiften/Parser/UnitTest/StreamFeaturesParserTest.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/Swiften/Parser/UnitTest/StreamFeaturesParserTest.cpp b/Swiften/Parser/UnitTest/StreamFeaturesParserTest.cpp
index 1c6fa50..7f5a398 100644
--- a/Swiften/Parser/UnitTest/StreamFeaturesParserTest.cpp
+++ b/Swiften/Parser/UnitTest/StreamFeaturesParserTest.cpp
@@ -38,6 +38,7 @@ class StreamFeaturesParserTest : public CppUnit::TestFixture
"<mechanism>PLAIN</mechanism>"
"</mechanisms>"
"<bind xmlns=\"urn:ietf:params:xml:ns:xmpp-bind\"/>"
+ "<sm xmlns='urn:xmpp:sm:2'/>"
"<session xmlns=\"urn:ietf:params:xml:ns:xmpp-session\"/>"
"</stream:features>"));
@@ -50,6 +51,7 @@ class StreamFeaturesParserTest : public CppUnit::TestFixture
CPPUNIT_ASSERT(element->hasAuthenticationMechanisms());
CPPUNIT_ASSERT(element->hasAuthenticationMechanism("DIGEST-MD5"));
CPPUNIT_ASSERT(element->hasAuthenticationMechanism("PLAIN"));
+ CPPUNIT_ASSERT(element->hasStreamManagement());
}
void testParse_Empty() {