From 7bc846598f17eea663b265e682a016acdac6beca Mon Sep 17 00:00:00 2001 From: Jeremy Lainé Date: Tue, 29 Jun 2010 10:17:45 +0000 Subject: add unit tests for QXmpp parsing (not compiled for now) --- source/tests.h | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 source/tests.h (limited to 'source/tests.h') diff --git a/source/tests.h b/source/tests.h new file mode 100644 index 00000000..7d17e5bc --- /dev/null +++ b/source/tests.h @@ -0,0 +1,38 @@ +/* + * Copyright (C) 2010 Bolloré telecom + * + * 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 + +class TestPackets : public QObject +{ + Q_OBJECT + +private slots: + void testMessage(); + void testMessageFull(); + void testMessageDelay(); + void testMessageLegacyDelay(); + void testPresence(); + void testPresenceFull(); +}; + -- cgit v1.2.3