From 060b7ffe5bb5641fac103358f628fe38daf460d1 Mon Sep 17 00:00:00 2001 From: Thiago Macieira Date: Wed, 18 Mar 2015 08:42:51 +0900 Subject: QtTest: Add QHostAddress support for QCOMPARE failures Change-Id: Iee8cbc07c4434ce9b560ffff13cc6dad04a5a554 Reviewed-by: Richard J. Moore --- tests/auto/network/kernel/qhostaddress/tst_qhostaddress.cpp | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'tests/auto/network/kernel/qhostaddress') diff --git a/tests/auto/network/kernel/qhostaddress/tst_qhostaddress.cpp b/tests/auto/network/kernel/qhostaddress/tst_qhostaddress.cpp index e074ecae1d..dbb27b955a 100644 --- a/tests/auto/network/kernel/qhostaddress/tst_qhostaddress.cpp +++ b/tests/auto/network/kernel/qhostaddress/tst_qhostaddress.cpp @@ -87,18 +87,6 @@ private slots: void convertv4v6(); }; -QT_BEGIN_NAMESPACE -namespace QTest { - template<> - char *toString(const QHostAddress &addr) - { - if (addr.protocol() == QAbstractSocket::UnknownNetworkLayerProtocol) - return qstrdup(""); - return qstrdup(addr.toString().toLatin1()); - } -} -QT_END_NAMESPACE - tst_QHostAddress::tst_QHostAddress() { } -- cgit v1.2.3