diff options
author | Frans Englich <frans.englich@nokia.com> | 2009-05-19 11:53:12 (GMT) |
---|---|---|
committer | Frans Englich <frans.englich@nokia.com> | 2009-05-19 13:11:37 (GMT) |
commit | 879d5cf234bb06657b67a39969ea16d68f79fbeb (patch) | |
tree | d5167fae34f649916a1cfcf7a964e0f9b293af4f /tests/auto | |
parent | bc5cf95c9622fee5bdcc97736dee11923aa9daf4 (diff) | |
download | Qt-879d5cf234bb06657b67a39969ea16d68f79fbeb.zip Qt-879d5cf234bb06657b67a39969ea16d68f79fbeb.tar.gz Qt-879d5cf234bb06657b67a39969ea16d68f79fbeb.tar.bz2 |
Use QtNetworkSettings for IMAP server, instead of hard coding.
Reviewed-by: Peter Hartmann
Diffstat (limited to 'tests/auto')
-rw-r--r-- | tests/auto/qsslsocket/tst_qsslsocket.cpp | 6 | ||||
-rw-r--r-- | tests/auto/qtcpserver/tst_qtcpserver.cpp | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/tests/auto/qsslsocket/tst_qsslsocket.cpp b/tests/auto/qsslsocket/tst_qsslsocket.cpp index 4f98624..3100dd5 100644 --- a/tests/auto/qsslsocket/tst_qsslsocket.cpp +++ b/tests/auto/qsslsocket/tst_qsslsocket.cpp @@ -415,7 +415,7 @@ void tst_QSslSocket::simpleConnect() connect(&socket, SIGNAL(sslErrors(const QList<QSslError> &)), this, SLOT(exitLoop())); // Start connecting - socket.connectToHost("imap.troll.no", 993); + socket.connectToHost(QtNetworkSettings::serverName(), 993); QCOMPARE(socket.state(), QAbstractSocket::HostLookupState); enterLoop(10); @@ -470,7 +470,7 @@ void tst_QSslSocket::simpleConnectWithIgnore() connect(&socket, SIGNAL(sslErrors(const QList<QSslError> &)), this, SLOT(exitLoop())); // Start connecting - socket.connectToHost("imap.troll.no", 993); + socket.connectToHost(QtNetworkSettings::serverName(), 993); QCOMPARE(socket.state(), QAbstractSocket::HostLookupState); enterLoop(10); @@ -489,7 +489,7 @@ void tst_QSslSocket::simpleConnectWithIgnore() if (!socket.canReadLine()) enterLoop(10); - QCOMPARE(socket.readAll(), QByteArray("* OK esparsett Cyrus IMAP4 v2.2.8 server ready\r\n")); + QCOMPARE(socket.readAll(), QByteArray("* OK [CAPABILITY IMAP4 IMAP4rev1 LITERAL+ ID AUTH=PLAIN SASL-IR] qt-test-server.qt-test-net Cyrus IMAP4 v2.3.11-Mandriva-RPM-2.3.11-6mdv2008.1 server ready\r\n")); socket.disconnectFromHost(); } diff --git a/tests/auto/qtcpserver/tst_qtcpserver.cpp b/tests/auto/qtcpserver/tst_qtcpserver.cpp index 50b293d..4fd1827 100644 --- a/tests/auto/qtcpserver/tst_qtcpserver.cpp +++ b/tests/auto/qtcpserver/tst_qtcpserver.cpp @@ -364,7 +364,7 @@ void tst_QTcpServer::ipv6LoopbackPerformanceTest() void tst_QTcpServer::ipv4PerformanceTest() { QTcpSocket probeSocket; - probeSocket.connectToHost("imap.troll.no", 143); + probeSocket.connectToHost(QtNetworkSettings::serverName(), 143); QVERIFY(probeSocket.waitForConnected(5000)); QTcpServer server; |