tst_QNetworkAddressEntry::prefixAndNetmask use QHostAddress::AnyIPv4
authorMartin Petersson <martin.petersson@nokia.com>
Wed, 20 Jul 2011 10:13:15 +0000 (12:13 +0200)
committerQt by Nokia <qt-info@nokia.com>
Thu, 21 Jul 2011 14:30:41 +0000 (16:30 +0200)
Update the test after the introduction of QHostAddress::AnyIPv4
in 85136496bc8517951dcc3e670d1a46d340819f0d

Change-Id: I3b84e85b6dcefa69bf5953205e288a6f0affb341
Reviewed-on: http://codereview.qt.nokia.com/1873
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Markus Goetz
tests/auto/qnetworkaddressentry/tst_qnetworkaddressentry.cpp

index cf14aab..42b9af8 100644 (file)
@@ -97,7 +97,7 @@ void tst_QNetworkAddressEntry::prefixAndNetmask_data()
 
     // IPv4 set:
     QHostAddress ipv4(QHostAddress::LocalHost);
-    QTest::newRow("v4/0") << ipv4 << QHostAddress(QHostAddress::Any) << 0;
+    QTest::newRow("v4/0") << ipv4 << QHostAddress(QHostAddress::AnyIPv4) << 0;
     QTest::newRow("v4/32") << ipv4 << QHostAddress("255.255.255.255") << 32;
     QTest::newRow("v4/24") << ipv4 << QHostAddress("255.255.255.0") << 24;
     QTest::newRow("v4/23") << ipv4 << QHostAddress("255.255.254.0") << 23;