diff options
author | Shane Kearns <shane.kearns@accenture.com> | 2011-05-17 12:07:42 (GMT) |
---|---|---|
committer | Shane Kearns <shane.kearns@accenture.com> | 2011-05-18 12:25:24 (GMT) |
commit | 1eff8e70fb9154c3ee96aefd8f6fd44429b117fa (patch) | |
tree | 895c42761ea6859466e93292a68d18905fce1da6 /tests/auto | |
parent | 91bf24d44690a643d7cb74ab594da949b9e51e1b (diff) | |
download | Qt-1eff8e70fb9154c3ee96aefd8f6fd44429b117fa.zip Qt-1eff8e70fb9154c3ee96aefd8f6fd44429b117fa.tar.gz Qt-1eff8e70fb9154c3ee96aefd8f6fd44429b117fa.tar.bz2 |
Symbian socket: Implement systemProxyForQuery for service networks
When the specified (or active/default) network is a service network,
try to determine the appropriate IAP network within it.
This is the highest priority active network (if any)
followed by the highest priority discovered network (if any)
or the highest priority network as a last resort.
As Symbian doesn't include proxy type in the comms database, proxies
are assumed to be http type unless the port is 1080 (iana assigned
port for SOCKS) in which case the proxy is set as SOCKS type.
Also fixed unitialised member issue with SymbianIapId internal class
Task-number: QTBUG-18618
Reviewed-by: Markus Goetz
Diffstat (limited to 'tests/auto')
-rw-r--r-- | tests/auto/qnetworkproxyfactory/tst_qnetworkproxyfactory.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/auto/qnetworkproxyfactory/tst_qnetworkproxyfactory.cpp b/tests/auto/qnetworkproxyfactory/tst_qnetworkproxyfactory.cpp index 82a4193..b04556c 100644 --- a/tests/auto/qnetworkproxyfactory/tst_qnetworkproxyfactory.cpp +++ b/tests/auto/qnetworkproxyfactory/tst_qnetworkproxyfactory.cpp @@ -146,6 +146,10 @@ void tst_QNetworkProxyFactory::systemProxyForQuery() const void tst_QNetworkProxyFactory::fromConfigurations() { QNetworkConfigurationManager manager; + //update is done to get the active / discovered states + manager.updateConfigurations(); + connect(&manager, SIGNAL(updateCompleted()), &QTestEventLoop::instance(), SLOT(exitLoop())); + QTestEventLoop::instance().enterLoop(10); QList<QNetworkProxy> proxies; QUrl url(QLatin1String("http://qt.nokia.com")); //get from known configurations @@ -233,8 +237,6 @@ void tst_QNetworkProxyFactory::inNetworkAccessManager() foreach (QNetworkProxy proxy, proxies) { qDebug() << formatProxyName(proxy); } - if (config.type() != QNetworkConfiguration::InternetAccessPoint) - QEXPECT_FAIL("","QNetworkProxyFactory::systemProxyForQuery doesn't work for service networks yet", Continue); QCOMPARE(factory->returnedList, proxies); } |