diff options
Diffstat (limited to 'tests/tests.cpp')
| -rw-r--r-- | tests/tests.cpp | 13 |
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( |
