aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Lainé <jeremy.laine@m4x.org>2012-09-27 15:08:34 +0200
committerJeremy Lainé <jeremy.laine@m4x.org>2012-09-27 15:08:34 +0200
commit71dacec7ebf3731927559e57c402520bfbf88500 (patch)
tree6b417f4247efc2f0ab3be13faf9033b8edd42689
parentdb2f84e966682c1072cd579baa9511906a276ab0 (diff)
downloadqxmpp-71dacec7ebf3731927559e57c402520bfbf88500.tar.gz
remove duplicate tests
-rw-r--r--tests/all/all.pro2
-rw-r--r--tests/all/iq.cpp61
-rw-r--r--tests/all/iq.h34
-rw-r--r--tests/all/tests.cpp4
4 files changed, 0 insertions, 101 deletions
diff --git a/tests/all/all.pro b/tests/all/all.pro
index 1e821b03..32a8251a 100644
--- a/tests/all/all.pro
+++ b/tests/all/all.pro
@@ -5,7 +5,6 @@ TARGET = tst_all
RESOURCES += tests.qrc
SOURCES += \
dataform.cpp \
- iq.cpp \
jingle.cpp \
message.cpp \
presence.cpp \
@@ -20,7 +19,6 @@ SOURCES += \
vcard.cpp
HEADERS += \
dataform.h \
- iq.h \
jingle.h \
message.h \
presence.h \
diff --git a/tests/all/iq.cpp b/tests/all/iq.cpp
deleted file mode 100644
index fa46c149..00000000
--- a/tests/all/iq.cpp
+++ /dev/null
@@ -1,61 +0,0 @@
-/*
- * Copyright (C) 2008-2012 The QXmpp developers
- *
- * Author:
- * Jeremy Lainé
- *
- * Source:
- * http://code.google.com/p/qxmpp
- *
- * This file is a part of QXmpp library.
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- */
-
-#include "QXmppIq.h"
-#include "iq.h"
-#include "util.h"
-
-void tst_QXmppIq::testBasic_data()
-{
- QTest::addColumn<QByteArray>("xml");
- QTest::addColumn<int>("type");
-
- QTest::newRow("get")
- << QByteArray("<iq to=\"foo@example.com/QXmpp\" from=\"bar@example.com/QXmpp\" type=\"get\"/>")
- << int(QXmppIq::Get);
-
- QTest::newRow("set")
- << QByteArray("<iq to=\"foo@example.com/QXmpp\" from=\"bar@example.com/QXmpp\" type=\"set\"/>")
- << int(QXmppIq::Set);
-
- QTest::newRow("result")
- << QByteArray("<iq to=\"foo@example.com/QXmpp\" from=\"bar@example.com/QXmpp\" type=\"result\"/>")
- << int(QXmppIq::Result);
-
- QTest::newRow("error")
- << QByteArray("<iq to=\"foo@example.com/QXmpp\" from=\"bar@example.com/QXmpp\" type=\"error\"/>")
- << int(QXmppIq::Error);
-}
-
-void tst_QXmppIq::testBasic()
-{
- QFETCH(QByteArray, xml);
- QFETCH(int, type);
-
- QXmppIq iq;
- parsePacket(iq, xml);
- QCOMPARE(iq.to(), QString("foo@example.com/QXmpp"));
- QCOMPARE(iq.from(), QString("bar@example.com/QXmpp"));
- QCOMPARE(int(iq.type()), type);
- serializePacket(iq, xml);
-}
diff --git a/tests/all/iq.h b/tests/all/iq.h
deleted file mode 100644
index 5d382b31..00000000
--- a/tests/all/iq.h
+++ /dev/null
@@ -1,34 +0,0 @@
-/*
- * Copyright (C) 2008-2012 The QXmpp developers
- *
- * Author:
- * Jeremy Lainé
- *
- * Source:
- * http://code.google.com/p/qxmpp
- *
- * This file is a part of QXmpp library.
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- */
-
-#include <QObject>
-
-class tst_QXmppIq : public QObject
-{
- Q_OBJECT
-
-private slots:
- void testBasic_data();
- void testBasic();
-};
-
diff --git a/tests/all/tests.cpp b/tests/all/tests.cpp
index 2406813e..0741c84e 100644
--- a/tests/all/tests.cpp
+++ b/tests/all/tests.cpp
@@ -46,7 +46,6 @@
#include "codec.h"
#include "dataform.h"
-#include "iq.h"
#include "jingle.h"
#include "message.h"
#include "presence.h"
@@ -899,9 +898,6 @@ int main(int argc, char *argv[])
tst_QXmppDataForm testDataForm;
errors += QTest::qExec(&testDataForm);
- tst_QXmppIq testIq;
- errors += QTest::qExec(&testIq);
-
TestJingle testJingle;
errors += QTest::qExec(&testJingle);