summaryrefslogtreecommitdiffstats
path: root/tests/auto/q3socketdevice
diff options
context:
space:
mode:
authorFrans Englich <frans.englich@nokia.com>2009-05-19 15:06:46 +0200
committerFrans Englich <frans.englich@nokia.com>2009-05-19 15:11:39 +0200
commit07e5f5f3b3b1936c5f5090b02cc2c02e344822b5 (patch)
treee9570f82488955fc677eaeae03dbde7594cb95db /tests/auto/q3socketdevice
parent879d5cf234bb06657b67a39969ea16d68f79fbeb (diff)
Adpot more code to use QtNetworkSettings instead of hard coded names.
Reviewed-By: Peter Hartmann
Diffstat (limited to 'tests/auto/q3socketdevice')
-rw-r--r--tests/auto/q3socketdevice/tst_q3socketdevice.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/auto/q3socketdevice/tst_q3socketdevice.cpp b/tests/auto/q3socketdevice/tst_q3socketdevice.cpp
index 2b0c606250..6255aee5e9 100644
--- a/tests/auto/q3socketdevice/tst_q3socketdevice.cpp
+++ b/tests/auto/q3socketdevice/tst_q3socketdevice.cpp
@@ -45,6 +45,8 @@
#include <q3socketdevice.h>
+#include "../network-settings.h"
+
//TESTED_CLASS=
//TESTED_FILES=
@@ -97,8 +99,7 @@ void tst_Q3SocketDevice::readNull()
int attempts = 10;
while (attempts--) {
- // connect to imap.troll.no
- if (device.connect(QHostAddress("62.70.27.18"), 143))
+ if (device.connect(QtNetworkSettings::serverIP(), 143))
break;
}
@@ -117,7 +118,7 @@ void tst_Q3SocketDevice::readNull()
#endif
QCOMPARE(device.peerPort(), quint16(143));
QCOMPARE(device.peerAddress().toString(),
- QHostAddress("62.70.27.18").toString());
+ QtNetworkSettings::serverIP().toString());
QCOMPARE(device.error(), Q3SocketDevice::NoError);
// write a logout notice