summaryrefslogtreecommitdiffstats
path: root/tests/auto/q3socketdevice
diff options
context:
space:
mode:
authorFrans Englich <frans.englich@nokia.com>2009-05-19 13:06:46 (GMT)
committerFrans Englich <frans.englich@nokia.com>2009-05-19 13:09:27 (GMT)
commit70429c33f0687afd489e1055bc0e1f1f340e13b9 (patch)
tree4917de9c58c45bab4d7561a560cc11c469a6ff98 /tests/auto/q3socketdevice
parentac70ce3f2598f0f3aae64c2e39c580375fd62df0 (diff)
downloadQt-70429c33f0687afd489e1055bc0e1f1f340e13b9.zip
Qt-70429c33f0687afd489e1055bc0e1f1f340e13b9.tar.gz
Qt-70429c33f0687afd489e1055bc0e1f1f340e13b9.tar.bz2
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 2b0c606..6255aee 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