diff options
author | Leonard Lee <leonard.lee@nokia.com> | 2012-09-07 13:31:24 +0200 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-09-10 09:37:59 +0200 |
commit | b41bd2b08d64e8ccc8a0a2ad085b8bf5a5d9929f (patch) | |
tree | 86ef3d73c713d034106f3480b151a3470ca2e074 /tests/auto | |
parent | c1d7d0f0b2914878ed43fc6feef7752837ac8049 (diff) |
Remove old troll test servers' references.
Replaced with qt-project.org test domain.
The connectToMultiIP auto test is still disabled due to lack of test infrastructure.
Task-number: QTBUG-23294
Change-Id: Icf01aabb0ae503291abdda4e8f773f8e0a08931a
Reviewed-by: Qt Doc Bot <qt_docbot@qt-project.org>
Reviewed-by: Shane Kearns <shane.kearns@accenture.com>
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
Diffstat (limited to 'tests/auto')
-rw-r--r-- | tests/auto/network/socket/qtcpsocket/tst_qtcpsocket.cpp | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/tests/auto/network/socket/qtcpsocket/tst_qtcpsocket.cpp b/tests/auto/network/socket/qtcpsocket/tst_qtcpsocket.cpp index d8df5d344d..4426a7696f 100644 --- a/tests/auto/network/socket/qtcpsocket/tst_qtcpsocket.cpp +++ b/tests/auto/network/socket/qtcpsocket/tst_qtcpsocket.cpp @@ -692,7 +692,7 @@ void tst_QTcpSocket::hostNotFound() { QTcpSocket *socket = newSocket(); - socket->connectToHost("nosuchserver.troll.no", 80); + socket->connectToHost("nosuchserver.qt-project.org", 80); QVERIFY(!socket->waitForConnected()); QCOMPARE(socket->state(), QTcpSocket::UnconnectedState); QCOMPARE(int(socket->error()), int(QTcpSocket::HostNotFoundError)); @@ -1572,25 +1572,25 @@ void tst_QTcpSocket::dontCloseOnTimeout() //---------------------------------------------------------------------------------- void tst_QTcpSocket::recursiveReadyRead() { - QTcpSocket *smtp = newSocket(); - connect(smtp, SIGNAL(connected()), SLOT(exitLoopSlot())); - connect(smtp, SIGNAL(readyRead()), SLOT(recursiveReadyReadSlot())); - tmpSocket = smtp; + QTcpSocket *testSocket = newSocket(); + connect(testSocket, SIGNAL(connected()), SLOT(exitLoopSlot())); + connect(testSocket, SIGNAL(readyRead()), SLOT(recursiveReadyReadSlot())); + tmpSocket = testSocket; - QSignalSpy spy(smtp, SIGNAL(readyRead())); + QSignalSpy spy(testSocket, SIGNAL(readyRead())); - smtp->connectToHost("smtp.trolltech.com", 25); + testSocket->connectToHost(QtNetworkSettings::serverName(), 25); enterLoop(30); QVERIFY2(!timeout(), - "Timed out when connecting to smtp.trolltech.com:25"); + "Timed out when connecting to QtNetworkSettings::serverName()."); enterLoop(30); QVERIFY2(!timeout(), - "Timed out when waiting for the readyRead() signal"); + "Timed out when waiting for the readyRead() signal."); QCOMPARE(spy.count(), 1); - delete smtp; + delete testSocket; } void tst_QTcpSocket::recursiveReadyReadSlot() @@ -1855,7 +1855,7 @@ void tst_QTcpSocket::nestedEventLoopInErrorSlot() QPointer<QTcpSocket> p(socket); connect(socket, SIGNAL(error(QAbstractSocket::SocketError)), this, SLOT(enterLoopSlot())); - socket->connectToHost("hostnotfoundhostnotfound.troll.no", 9999); // Host not found, fyi + socket->connectToHost("hostnotfoundhostnotfound.qt-project.org", 9999); enterLoop(30); QVERIFY(!p); } @@ -2306,13 +2306,13 @@ void tst_QTcpSocket::connectToMultiIP() // 30s*2 = 60s. QTime stopWatch; stopWatch.start(); - socket->connectToHost("multi.dev.troll.no", 80); + socket->connectToHost("multi.dev.qt-project.org", 80); QVERIFY(socket->waitForConnected(60500)); QVERIFY(stopWatch.elapsed() < 70000); socket->abort(); stopWatch.restart(); - socket->connectToHost("multi.dev.troll.no", 81); + socket->connectToHost("multi.dev.qt-project.org", 81); QVERIFY(!socket->waitForConnected(2000)); QVERIFY(stopWatch.elapsed() < 2000); QCOMPARE(socket->error(), QAbstractSocket::SocketTimeoutError); @@ -2511,10 +2511,10 @@ void tst_QTcpSocket::invalidProxy_data() QTest::newRow("http-caching-proxy") << int(QNetworkProxy::HttpCachingProxy) << fluke << 3128 << true << int(QAbstractSocket::UnsupportedSocketOperationError); QTest::newRow("no-such-host-socks5") << int(QNetworkProxy::Socks5Proxy) - << "this-host-will-never-exist.troll.no" << 1080 << false + << "this-host-will-never-exist.qt-project.org" << 1080 << false << int(QAbstractSocket::ProxyNotFoundError); QTest::newRow("no-such-host-http") << int(QNetworkProxy::HttpProxy) - << "this-host-will-never-exist.troll.no" << 3128 << false + << "this-host-will-never-exist.qt-project.org" << 3128 << false << int(QAbstractSocket::ProxyNotFoundError); QTest::newRow("http-on-socks5") << int(QNetworkProxy::HttpProxy) << fluke << 1080 << false << int(QAbstractSocket::ProxyConnectionClosedError); |