tests: fix QNetworkProxyFactory test

QNetworkProxy takes an hostname, not an url.

Change-Id: I7504fbc02a817d6c75ee55dc8bbdd66ec1e6cd01
Reviewed-on: http://codereview.qt-project.org/4373
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Peter Hartmann <peter.hartmann@nokia.com>
This commit is contained in:
Corentin Chary 2011-05-26 09:32:39 +02:00 committed by Qt by Nokia
parent e77032c4e6
commit a2b95242be

View File

@ -118,7 +118,7 @@ void tst_QNetworkProxyFactory::systemProxyForQuery() const
QNetworkProxy proxy; QNetworkProxy proxy;
QList<QNetworkProxy> nativeProxyList; QList<QNetworkProxy> nativeProxyList;
nativeProxyList << QNetworkProxy(QNetworkProxy::HttpProxy, QString("http://test.proxy.com"), 8080) << QNetworkProxy::NoProxy; nativeProxyList << QNetworkProxy(QNetworkProxy::HttpProxy, QString("test.proxy.com"), 8080) << QNetworkProxy::NoProxy;
foreach (proxy, systemProxyList) { foreach (proxy, systemProxyList) {
if (!nativeProxyList.contains(proxy)) { if (!nativeProxyList.contains(proxy)) {