aboutsummaryrefslogtreecommitdiff
path: root/tests/tests.cpp
diff options
context:
space:
mode:
authorJeremy Lainé <jeremy.laine@m4x.org>2010-08-12 07:55:43 +0000
committerJeremy Lainé <jeremy.laine@m4x.org>2010-08-12 07:55:43 +0000
commit4e6d4908fdf5168fbd0ad4025f00a8d133622b4d (patch)
tree4f434a77e0a13f84e9b417a2fa74c68d82730f16 /tests/tests.cpp
parent3ad23dd378b7b769ff65c6bf297d2547184e78e2 (diff)
downloadqxmpp-4e6d4908fdf5168fbd0ad4025f00a8d133622b4d.tar.gz
start refactoring and testing non-SASL auth
Diffstat (limited to 'tests/tests.cpp')
-rw-r--r--tests/tests.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/tests.cpp b/tests/tests.cpp
index a838020a..14c05890 100644
--- a/tests/tests.cpp
+++ b/tests/tests.cpp
@@ -31,6 +31,7 @@
#include "QXmppBind.h"
#include "QXmppJingleIq.h"
#include "QXmppMessage.h"
+#include "QXmppNonSASLAuth.h"
#include "QXmppPresence.h"
#include "QXmppRpcIq.h"
#include "QXmppSession.h"
@@ -183,6 +184,18 @@ void TestPackets::testMessageLegacyDelay()
serializePacket(message, xml);
}
+void TestPackets::testNonSaslAuth()
+{
+ const QByteArray xml(
+ "<iq id=\"auth1\" to=\"shakespeare.lit\" type=\"get\">"
+ "<query xmlns=\"jabber:iq:auth\"/>"
+ "</iq>");
+
+ QXmppNonSASLAuthIq iq;
+ parsePacket(iq, xml);
+ serializePacket(iq, xml);
+}
+
void TestPackets::testPresence()
{
const QByteArray xml(