From b7b7af761e4fe3f35bd8073e652a93b2559a4160 Mon Sep 17 00:00:00 2001 From: Jeremy Lainé Date: Mon, 1 Oct 2012 13:51:47 +0200 Subject: split QXmppDiscoveryIq tests --- tests/all/tests.cpp | 63 ----------------------------------------------------- 1 file changed, 63 deletions(-) (limited to 'tests/all/tests.cpp') diff --git a/tests/all/tests.cpp b/tests/all/tests.cpp index 2731ea9c..f79be52b 100644 --- a/tests/all/tests.cpp +++ b/tests/all/tests.cpp @@ -22,7 +22,6 @@ * */ -#include "QXmppDiscoveryIq.h" #include "QXmppEntityTimeIq.h" #include "QXmppNonSASLAuth.h" #include "QXmppSessionIq.h" @@ -36,8 +35,6 @@ class TestPackets : public QObject Q_OBJECT private slots: - void testDiscovery(); - void testDiscoveryWithForm(); void testNonSaslAuth(); void testSession(); void testStreamFeatures(); @@ -47,66 +44,6 @@ private slots: void testEntityTimeResult(); }; -void TestPackets::testDiscovery() -{ - const QByteArray xml( - "" - "" - "" - "" - "" - "" - "" - "" - ""); - - QXmppDiscoveryIq disco; - parsePacket(disco, xml); - QCOMPARE(disco.verificationString(), QByteArray::fromBase64("QgayPKawpkPSDYmwT/WM94uAlu0=")); - serializePacket(disco, xml); -} - -void TestPackets::testDiscoveryWithForm() -{ - const QByteArray xml( - "" - "" - "" - "" - "" - "" - "" - "" - "" - "" - "urn:xmpp:dataforms:softwareinfo" - "" - "" - "ipv4" - "ipv6" - "" - "" - "Mac" - "" - "" - "10.5.1" - "" - "" - "Psi" - "" - "" - "0.11" - "" - "" - "" - ""); - - QXmppDiscoveryIq disco; - parsePacket(disco, xml); - QCOMPARE(disco.verificationString(), QByteArray::fromBase64("q07IKJEyjvHSyhy//CH0CxmKi8w=")); - serializePacket(disco, xml); -} - void TestPackets::testNonSaslAuth() { // Client Requests Authentication Fields from Server -- cgit v1.2.3