Rework QNetworkProxyFactory::systemProxyForQuery autotest
authorShane Kearns <ext-shane.2.kearns@nokia.com>
Mon, 27 Feb 2012 15:50:19 +0000 (15:50 +0000)
committerQt by Nokia <qt-info@nokia.com>
Thu, 8 Mar 2012 04:31:40 +0000 (05:31 +0100)
commit3c529933612ff022d139975d661e37c77b1b2e99
tree6ca4d05ceaccad994679aad3e88e654782421b0d
parent276f64d21d7b877044fddd646b855829950099b0
Rework QNetworkProxyFactory::systemProxyForQuery autotest

Rather than requiring specific hardcoded proxies in the system,
it now checks the proxies returned by the system have the required
capabilities for the request.

Note the test will pass if no proxy is configured (as
QNetworkProxy::NoProxy has all required capabilities)

The test prints the returned proxy lists and elapsed time
diagnostic for manual comparison and debugging.

Change-Id: I621ef4d1d7264a98c3e8bd485c30bc1166fcbdf0
Task-number: QTBUG-19454
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
tests/auto/network/kernel/qnetworkproxyfactory/tst_qnetworkproxyfactory.cpp