aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/tests.cpp13
-rw-r--r--tests/tests.h1
2 files changed, 14 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(
diff --git a/tests/tests.h b/tests/tests.h
index 33536883..0e177f1b 100644
--- a/tests/tests.h
+++ b/tests/tests.h
@@ -43,6 +43,7 @@ private slots:
void testMessageFull();
void testMessageDelay();
void testMessageLegacyDelay();
+ void testNonSaslAuth();
void testPresence();
void testPresenceFull();
void testSession();