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:
parent
e77032c4e6
commit
a2b95242be
@ -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)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user