diff options
| author | Jeremy Lainé <jeremy.laine@m4x.org> | 2012-10-01 14:17:42 +0200 |
|---|---|---|
| committer | Jeremy Lainé <jeremy.laine@m4x.org> | 2012-10-01 14:17:42 +0200 |
| commit | f00ade4212107f721b090391b957c9bcd397dab6 (patch) | |
| tree | c14b3777469d14d8a5b3da3d8f6cb1661208145a /tests/all/tests.cpp | |
| parent | 01a91df9fea68f55ae20b3ef8987002e00b622a5 (diff) | |
| download | qxmpp-f00ade4212107f721b090391b957c9bcd397dab6.tar.gz | |
rename QXmppSessionIq test
Diffstat (limited to 'tests/all/tests.cpp')
| -rw-r--r-- | tests/all/tests.cpp | 52 |
1 files changed, 0 insertions, 52 deletions
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( - "<iq id=\"session_1\" to=\"example.com\" type=\"set\">" - "<session xmlns=\"urn:ietf:params:xml:ns:xmpp-session\"/>" - "</iq>"); - - 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" |
