aboutsummaryrefslogtreecommitdiff
path: root/tests/tests.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/tests.cpp')
-rw-r--r--tests/tests.cpp22
1 files changed, 0 insertions, 22 deletions
diff --git a/tests/tests.cpp b/tests/tests.cpp
index 11f02108..8d74938a 100644
--- a/tests/tests.cpp
+++ b/tests/tests.cpp
@@ -168,28 +168,6 @@ void TestUtils::testTimezoneOffset()
QCOMPARE(QXmppUtils::timezoneOffsetToString(-5400), QLatin1String("-01:30"));
}
-template <class T>
-static void parsePacket(T &packet, const QByteArray &xml)
-{
- //qDebug() << "parsing" << xml;
- QDomDocument doc;
- QCOMPARE(doc.setContent(xml, true), true);
- QDomElement element = doc.documentElement();
- packet.parse(element);
-}
-
-template <class T>
-static void serializePacket(T &packet, const QByteArray &xml)
-{
- QBuffer buffer;
- buffer.open(QIODevice::ReadWrite);
- QXmlStreamWriter writer(&buffer);
- packet.toXml(&writer);
- qDebug() << "expect " << xml;
- qDebug() << "writing" << buffer.data();
- QCOMPARE(buffer.data(), xml);
-}
-
void TestPackets::testArchiveList_data()
{
QTest::addColumn<QByteArray>("xml");