From f00ade4212107f721b090391b957c9bcd397dab6 Mon Sep 17 00:00:00 2001 From: Jeremy Lainé Date: Mon, 1 Oct 2012 14:17:42 +0200 Subject: rename QXmppSessionIq test --- tests/all/tests.cpp | 52 ---------------------------------------------------- 1 file changed, 52 deletions(-) delete mode 100644 tests/all/tests.cpp (limited to 'tests/all/tests.cpp') diff --git a/tests/all/tests.cpp b/tests/all/tests.cpp deleted file mode 100644 index 3253ba4a..00000000 --- a/tests/all/tests.cpp +++ /dev/null @@ -1,52 +0,0 @@ -/* - * Copyright (C) 2008-2012 The QXmpp developers - * - * Authors: - * Jeremy Lainé - * Manjeet Dahiya - * - * 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 "QXmppSessionIq.h" -#include "util.h" - -class TestPackets : public QObject -{ - Q_OBJECT - -private slots: - void testSession(); -}; - -void TestPackets::testSession() -{ - const QByteArray xml( - "" - "" - ""); - - QXmppSessionIq session; - parsePacket(session, xml); - QCOMPARE(session.id(), QString("session_1")); - QCOMPARE(session.to(), QString("example.com")); - QCOMPARE(session.type(), QXmppIq::Set); - serializePacket(session, xml); -} - -QTEST_MAIN(TestPackets) -#include "tests.moc" -- cgit v1.2.3