Line | Source | Count |
1 | | - |
2 | | - |
3 | | - |
4 | | - |
5 | | - |
6 | | - |
7 | | - |
8 | | - |
9 | | - |
10 | class QSocks5SocketEngineHandler; | - |
11 | class QHttpSocketEngineHandler; | - |
12 | | - |
13 | class QGlobalNetworkProxy | - |
14 | { | - |
15 | public: | - |
16 | QGlobalNetworkProxy() | - |
17 | : mutex(QMutex::Recursive) | - |
18 | , applicationLevelProxy(0) | - |
19 | , applicationLevelProxyFactory(0) | - |
20 | | - |
21 | , socks5SocketEngineHandler(0) | - |
22 | | - |
23 | | - |
24 | , httpSocketEngineHandler(0) | - |
25 | | - |
26 | { | - |
27 | | - |
28 | | - |
29 | | - |
30 | | - |
31 | socks5SocketEngineHandler = new QSocks5SocketEngineHandler(); | - |
32 | | - |
33 | | - |
34 | httpSocketEngineHandler = new QHttpSocketEngineHandler(); | - |
35 | | - |
36 | }executed 36 times by 36 tests: end of block Executed by:- tst_NetworkSelfTest
- tst_QAbstractNetworkCache
- tst_QFtp
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkConfigurationManager
- tst_QNetworkDiskCache
- tst_QNetworkInterface
- tst_QNetworkProxyFactory
- tst_QNetworkSession
- tst_QTcpServer
- tst_QUdpSocket
- tst_QXmlInputSource
- tst_QXmlStream
- tst_lancelot - unknown status
- tst_platformsocketengine - unknown status
- tst_qabstractsocket - unknown status
- tst_qeventloop - unknown status
- tst_qguieventloop - unknown status
- tst_qhttpnetworkreply - unknown status
- tst_qhttpsocketengine - unknown status
- tst_qimagereader - unknown status
- tst_qiodevice - unknown status
- ...
| 36 |
37 | | - |
38 | ~QGlobalNetworkProxy() | - |
39 | { | - |
40 | delete applicationLevelProxy; | - |
41 | delete applicationLevelProxyFactory; | - |
42 | | - |
43 | delete socks5SocketEngineHandler; | - |
44 | | - |
45 | | - |
46 | delete httpSocketEngineHandler; | - |
47 | | - |
48 | }executed 37 times by 37 tests: end of block Executed by:- tst_lancelot - unknown status
- tst_networkselftest - unknown status
- tst_platformsocketengine - unknown status
- tst_qabstractnetworkcache - unknown status
- tst_qabstractsocket - unknown status
- tst_qeventloop - unknown status
- tst_qftp - unknown status
- tst_qguieventloop - unknown status
- tst_qhostinfo - unknown status
- tst_qhttpnetworkconnection - unknown status
- tst_qhttpnetworkreply - unknown status
- tst_qhttpsocketengine - unknown status
- tst_qimagereader - unknown status
- tst_qiodevice - unknown status
- tst_qlocalsocket - unknown status
- tst_qnetworkaccessmanager - unknown status
- tst_qnetworkaccessmanager_and_qprogressdialog - unknown status
- tst_qnetworkconfigurationmanagerqappless - unknown status
- tst_qnetworkdiskcache - unknown status
- tst_qnetworkinterface - unknown status
- tst_qnetworkproxy - unknown status
- tst_qnetworkproxyfactory - unknown status
- tst_qnetworksession - unknown status
- tst_qobject - unknown status
- tst_qsocketnotifier - unknown status
- ...
| 37 |
49 | | - |
50 | void setApplicationProxy(const QNetworkProxy &proxy) | - |
51 | { | - |
52 | QMutexLocker lock(&mutex); | - |
53 | if (!applicationLevelProxyTRUE | evaluated 8 times by 8 testsEvaluated by:- tst_QFtp
- tst_QNetworkProxyFactory
- tst_QTcpServer
- tst_QUdpSocket
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| FALSE | evaluated 2909 times by 8 testsEvaluated by:- tst_QFtp
- tst_QNetworkProxyFactory
- tst_QTcpServer
- tst_QUdpSocket
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
|
) | 8-2909 |
54 | applicationLevelProxy = new QNetworkProxy;executed 8 times by 8 tests: applicationLevelProxy = new QNetworkProxy; Executed by:- tst_QFtp
- tst_QNetworkProxyFactory
- tst_QTcpServer
- tst_QUdpSocket
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| 8 |
55 | *applicationLevelProxy = proxy; | - |
56 | delete applicationLevelProxyFactory; | - |
57 | applicationLevelProxyFactory = 0; | - |
58 | }executed 2917 times by 8 tests: end of block Executed by:- tst_QFtp
- tst_QNetworkProxyFactory
- tst_QTcpServer
- tst_QUdpSocket
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| 2917 |
59 | | - |
60 | void setApplicationProxyFactory(QNetworkProxyFactory *factory) | - |
61 | { | - |
62 | QMutexLocker lock(&mutex); | - |
63 | if (factory == applicationLevelProxyFactoryTRUE | never evaluated | FALSE | evaluated 22 times by 3 testsEvaluated by:- tst_QNetworkProxyFactory
- tst_QTcpServer
- tst_qtcpsocket - unknown status
|
) | 0-22 |
64 | return; never executed: return; | 0 |
65 | if (applicationLevelProxyTRUE | evaluated 21 times by 2 testsEvaluated by:- tst_QTcpServer
- tst_qtcpsocket - unknown status
| FALSE | evaluated 1 time by 1 test |
) | 1-21 |
66 | *executed 21 times by 2 tests: *applicationLevelProxy = QNetworkProxy(); Executed by:- tst_QTcpServer
- tst_qtcpsocket - unknown status
applicationLevelProxy = QNetworkProxy();executed 21 times by 2 tests: *applicationLevelProxy = QNetworkProxy(); Executed by:- tst_QTcpServer
- tst_qtcpsocket - unknown status
| 21 |
67 | delete applicationLevelProxyFactory; | - |
68 | applicationLevelProxyFactory = factory; | - |
69 | }executed 22 times by 3 tests: end of block Executed by:- tst_QNetworkProxyFactory
- tst_QTcpServer
- tst_qtcpsocket - unknown status
| 22 |
70 | | - |
71 | QNetworkProxy applicationProxy() | - |
72 | { | - |
73 | returnexecuted 2577 times by 19 tests: return proxyForQuery(QNetworkProxyQuery()).constFirst(); Executed by:- tst_NetworkSelfTest
- tst_QFtp
- tst_QHttpNetworkConnection
- tst_QNetworkDiskCache
- tst_QNetworkInterface
- tst_QNetworkReply
- tst_QTcpServer
- tst_QUdpSocket
- tst_qhttpsocketengine - unknown status
- tst_qimagereader - unknown status
- tst_qiodevice - unknown status
- tst_qsocketnotifier - unknown status
- tst_qsocks5socketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
- tst_qtextstream - unknown status
- tst_qxmlsimplereader - unknown status
proxyForQuery(QNetworkProxyQuery()).constFirst();executed 2577 times by 19 tests: return proxyForQuery(QNetworkProxyQuery()).constFirst(); Executed by:- tst_NetworkSelfTest
- tst_QFtp
- tst_QHttpNetworkConnection
- tst_QNetworkDiskCache
- tst_QNetworkInterface
- tst_QNetworkReply
- tst_QTcpServer
- tst_QUdpSocket
- tst_qhttpsocketengine - unknown status
- tst_qimagereader - unknown status
- tst_qiodevice - unknown status
- tst_qsocketnotifier - unknown status
- tst_qsocks5socketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
- tst_qtextstream - unknown status
- tst_qxmlsimplereader - unknown status
| 2577 |
74 | } | - |
75 | | - |
76 | QList<QNetworkProxy> proxyForQuery(const QNetworkProxyQuery &query); | - |
77 | | - |
78 | private: | - |
79 | QMutex mutex; | - |
80 | QNetworkProxy *applicationLevelProxy; | - |
81 | QNetworkProxyFactory *applicationLevelProxyFactory; | - |
82 | | - |
83 | QSocks5SocketEngineHandler *socks5SocketEngineHandler; | - |
84 | | - |
85 | | - |
86 | QHttpSocketEngineHandler *httpSocketEngineHandler; | - |
87 | | - |
88 | }; | - |
89 | | - |
90 | QList<QNetworkProxy> QGlobalNetworkProxy::proxyForQuery(const QNetworkProxyQuery &query) | - |
91 | { | - |
92 | QMutexLocker locker(&mutex); | - |
93 | | - |
94 | QList<QNetworkProxy> result; | - |
95 | | - |
96 | | - |
97 | QHostAddress parsed; | - |
98 | QString hostname = query.url().host(); | - |
99 | if (hostname == QLatin1String("localhost")TRUE | evaluated 1152 times by 5 testsEvaluated by:- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_qobject - unknown status
- tst_qtcpsocket - unknown status
| FALSE | evaluated 8426 times by 29 testsEvaluated by:- tst_NetworkSelfTest
- tst_QAbstractNetworkCache
- tst_QFtp
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkInterface
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QTcpServer
- tst_QUdpSocket
- tst_QXmlInputSource
- tst_Spdy
- tst_lancelot - unknown status
- tst_qeventloop - unknown status
- tst_qguieventloop - unknown status
- tst_qhttpsocketengine - unknown status
- tst_qimagereader - unknown status
- tst_qiodevice - unknown status
- tst_qobject - unknown status
- tst_qsocketnotifier - unknown status
- tst_qsocks5socketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- ...
|
| 1152-8426 |
100 | || hostname.startsWith(QLatin1String("localhost."))TRUE | never evaluated | FALSE | evaluated 8426 times by 29 testsEvaluated by:- tst_NetworkSelfTest
- tst_QAbstractNetworkCache
- tst_QFtp
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkInterface
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QTcpServer
- tst_QUdpSocket
- tst_QXmlInputSource
- tst_Spdy
- tst_lancelot - unknown status
- tst_qeventloop - unknown status
- tst_qguieventloop - unknown status
- tst_qhttpsocketengine - unknown status
- tst_qimagereader - unknown status
- tst_qiodevice - unknown status
- tst_qobject - unknown status
- tst_qsocketnotifier - unknown status
- tst_qsocks5socketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- ...
|
| 0-8426 |
101 | || (parsed.setAddress(hostname)TRUE | evaluated 962 times by 17 testsEvaluated by:- tst_NetworkSelfTest
- tst_QFtp
- tst_QHttpNetworkConnection
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QTcpServer
- tst_QUdpSocket
- tst_QXmlInputSource
- tst_qeventloop - unknown status
- tst_qguieventloop - unknown status
- tst_qimagereader - unknown status
- tst_qobject - unknown status
- tst_qsocketnotifier - unknown status
- tst_qsslsocket - unknown status
- tst_qtcpsocket - unknown status
- tst_qxmlsimplereader - unknown status
| FALSE | evaluated 7464 times by 25 testsEvaluated by:- tst_NetworkSelfTest
- tst_QAbstractNetworkCache
- tst_QFtp
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkInterface
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QTcpServer
- tst_QUdpSocket
- tst_Spdy
- tst_lancelot - unknown status
- tst_qhttpsocketengine - unknown status
- tst_qimagereader - unknown status
- tst_qiodevice - unknown status
- tst_qsocketnotifier - unknown status
- tst_qsocks5socketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
- tst_qtextstream - unknown status
- tst_qxmlsimplereader - unknown status
|
| 962-7464 |
102 | && (TRUE | evaluated 578 times by 17 testsEvaluated by:- tst_NetworkSelfTest
- tst_QFtp
- tst_QHttpNetworkConnection
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QTcpServer
- tst_QUdpSocket
- tst_QXmlInputSource
- tst_qeventloop - unknown status
- tst_qguieventloop - unknown status
- tst_qimagereader - unknown status
- tst_qobject - unknown status
- tst_qsocketnotifier - unknown status
- tst_qsslsocket - unknown status
- tst_qtcpsocket - unknown status
- tst_qxmlsimplereader - unknown status
| FALSE | evaluated 384 times by 6 testsEvaluated by:- tst_QFtp
- tst_QNetworkReply
- tst_QTcpServer
- tst_QUdpSocket
- tst_qsslsocket - unknown status
- tst_qtcpsocket - unknown status
|
parsed.isLoopback())TRUE | evaluated 578 times by 17 testsEvaluated by:- tst_NetworkSelfTest
- tst_QFtp
- tst_QHttpNetworkConnection
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QTcpServer
- tst_QUdpSocket
- tst_QXmlInputSource
- tst_qeventloop - unknown status
- tst_qguieventloop - unknown status
- tst_qimagereader - unknown status
- tst_qobject - unknown status
- tst_qsocketnotifier - unknown status
- tst_qsslsocket - unknown status
- tst_qtcpsocket - unknown status
- tst_qxmlsimplereader - unknown status
| FALSE | evaluated 384 times by 6 testsEvaluated by:- tst_QFtp
- tst_QNetworkReply
- tst_QTcpServer
- tst_QUdpSocket
- tst_qsslsocket - unknown status
- tst_qtcpsocket - unknown status
|
)) { | 384-578 |
103 | result << QNetworkProxy(QNetworkProxy::NoProxy); | - |
104 | returnexecuted 1730 times by 17 tests: return result; Executed by:- tst_NetworkSelfTest
- tst_QFtp
- tst_QHttpNetworkConnection
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QTcpServer
- tst_QUdpSocket
- tst_QXmlInputSource
- tst_qeventloop - unknown status
- tst_qguieventloop - unknown status
- tst_qimagereader - unknown status
- tst_qobject - unknown status
- tst_qsocketnotifier - unknown status
- tst_qsslsocket - unknown status
- tst_qtcpsocket - unknown status
- tst_qxmlsimplereader - unknown status
result;executed 1730 times by 17 tests: return result; Executed by:- tst_NetworkSelfTest
- tst_QFtp
- tst_QHttpNetworkConnection
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QTcpServer
- tst_QUdpSocket
- tst_QXmlInputSource
- tst_qeventloop - unknown status
- tst_qguieventloop - unknown status
- tst_qimagereader - unknown status
- tst_qobject - unknown status
- tst_qsocketnotifier - unknown status
- tst_qsslsocket - unknown status
- tst_qtcpsocket - unknown status
- tst_qxmlsimplereader - unknown status
| 1730 |
105 | } | - |
106 | | - |
107 | if (!applicationLevelProxyFactoryTRUE | evaluated 7827 times by 25 testsEvaluated by:- tst_NetworkSelfTest
- tst_QAbstractNetworkCache
- tst_QFtp
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkInterface
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QTcpServer
- tst_QUdpSocket
- tst_Spdy
- tst_lancelot - unknown status
- tst_qhttpsocketengine - unknown status
- tst_qimagereader - unknown status
- tst_qiodevice - unknown status
- tst_qsocketnotifier - unknown status
- tst_qsocks5socketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
- tst_qtextstream - unknown status
- tst_qxmlsimplereader - unknown status
| FALSE | evaluated 21 times by 2 testsEvaluated by:- tst_QTcpServer
- tst_qtcpsocket - unknown status
|
) { | 21-7827 |
108 | if (applicationLevelProxyTRUE | evaluated 3360 times by 8 testsEvaluated by:- tst_QFtp
- tst_QNetworkProxyFactory
- tst_QTcpServer
- tst_QUdpSocket
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| FALSE | evaluated 4467 times by 22 testsEvaluated by:- tst_NetworkSelfTest
- tst_QAbstractNetworkCache
- tst_QFtp
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkInterface
- tst_QNetworkReply
- tst_QUdpSocket
- tst_Spdy
- tst_lancelot - unknown status
- tst_qhttpsocketengine - unknown status
- tst_qimagereader - unknown status
- tst_qiodevice - unknown status
- tst_qsocketnotifier - unknown status
- tst_qsocks5socketengine - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
- tst_qtextstream - unknown status
- tst_qxmlsimplereader - unknown status
|
| 3360-4467 |
109 | && applicationLevelProxy->type() != QNetworkProxy::DefaultProxyTRUE | evaluated 3360 times by 8 testsEvaluated by:- tst_QFtp
- tst_QNetworkProxyFactory
- tst_QTcpServer
- tst_QUdpSocket
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| FALSE | never evaluated |
) | 0-3360 |
110 | result << *applicationLevelProxy;executed 3360 times by 8 tests: result << *applicationLevelProxy; Executed by:- tst_QFtp
- tst_QNetworkProxyFactory
- tst_QTcpServer
- tst_QUdpSocket
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| 3360 |
111 | else | - |
112 | result << QNetworkProxy(QNetworkProxy::NoProxy);executed 4467 times by 22 tests: result << QNetworkProxy(QNetworkProxy::NoProxy); Executed by:- tst_NetworkSelfTest
- tst_QAbstractNetworkCache
- tst_QFtp
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkInterface
- tst_QNetworkReply
- tst_QUdpSocket
- tst_Spdy
- tst_lancelot - unknown status
- tst_qhttpsocketengine - unknown status
- tst_qimagereader - unknown status
- tst_qiodevice - unknown status
- tst_qsocketnotifier - unknown status
- tst_qsocks5socketengine - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
- tst_qtextstream - unknown status
- tst_qxmlsimplereader - unknown status
| 4467 |
113 | returnexecuted 7827 times by 25 tests: return result; Executed by:- tst_NetworkSelfTest
- tst_QAbstractNetworkCache
- tst_QFtp
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkInterface
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QTcpServer
- tst_QUdpSocket
- tst_Spdy
- tst_lancelot - unknown status
- tst_qhttpsocketengine - unknown status
- tst_qimagereader - unknown status
- tst_qiodevice - unknown status
- tst_qsocketnotifier - unknown status
- tst_qsocks5socketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
- tst_qtextstream - unknown status
- tst_qxmlsimplereader - unknown status
result;executed 7827 times by 25 tests: return result; Executed by:- tst_NetworkSelfTest
- tst_QAbstractNetworkCache
- tst_QFtp
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkInterface
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QTcpServer
- tst_QUdpSocket
- tst_Spdy
- tst_lancelot - unknown status
- tst_qhttpsocketengine - unknown status
- tst_qimagereader - unknown status
- tst_qiodevice - unknown status
- tst_qsocketnotifier - unknown status
- tst_qsocks5socketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
- tst_qtextstream - unknown status
- tst_qxmlsimplereader - unknown status
| 7827 |
114 | } | - |
115 | | - |
116 | | - |
117 | result = applicationLevelProxyFactory->queryProxy(query); | - |
118 | if (result.isEmpty()TRUE | never evaluated | FALSE | evaluated 21 times by 2 testsEvaluated by:- tst_QTcpServer
- tst_qtcpsocket - unknown status
|
) { | 0-21 |
119 | QMessageLogger(__FILE__, 346, __PRETTY_FUNCTION__).warning("QNetworkProxyFactory: factory %p has returned an empty result set", | - |
120 | applicationLevelProxyFactory); | - |
121 | result << QNetworkProxy(QNetworkProxy::NoProxy); | - |
122 | } never executed: end of block | 0 |
123 | returnexecuted 21 times by 2 tests: return result; Executed by:- tst_QTcpServer
- tst_qtcpsocket - unknown status
result;executed 21 times by 2 tests: return result; Executed by:- tst_QTcpServer
- tst_qtcpsocket - unknown status
| 21 |
124 | } | - |
125 | | - |
126 | namespace { namespace Q_QGS_globalNetworkProxy { typedef QGlobalNetworkProxy Type; QBasicAtomicInt guard = { QtGlobalStatic::Uninitialized }; __attribute__((visibility("hidden"))) inline Type *innerFunction() { struct HolderBase { ~HolderBase() noexcept { if (guard.load() == QtGlobalStatic::InitializedTRUE | evaluated 37 times by 37 testsEvaluated by:- tst_lancelot - unknown status
- tst_networkselftest - unknown status
- tst_platformsocketengine - unknown status
- tst_qabstractnetworkcache - unknown status
- tst_qabstractsocket - unknown status
- tst_qeventloop - unknown status
- tst_qftp - unknown status
- tst_qguieventloop - unknown status
- tst_qhostinfo - unknown status
- tst_qhttpnetworkconnection - unknown status
- tst_qhttpnetworkreply - unknown status
- tst_qhttpsocketengine - unknown status
- tst_qimagereader - unknown status
- tst_qiodevice - unknown status
- tst_qlocalsocket - unknown status
- tst_qnetworkaccessmanager - unknown status
- tst_qnetworkaccessmanager_and_qprogressdialog - unknown status
- tst_qnetworkconfigurationmanagerqappless - unknown status
- tst_qnetworkdiskcache - unknown status
- tst_qnetworkinterface - unknown status
- tst_qnetworkproxy - unknown status
- tst_qnetworkproxyfactory - unknown status
- tst_qnetworksession - unknown status
- tst_qobject - unknown status
- tst_qsocketnotifier - unknown status
- ...
| FALSE | never evaluated |
) guard.store(QtGlobalStatic::Destroyed);executed 37 times by 37 tests: guard.store(QtGlobalStatic::Destroyed); Executed by:- tst_lancelot - unknown status
- tst_networkselftest - unknown status
- tst_platformsocketengine - unknown status
- tst_qabstractnetworkcache - unknown status
- tst_qabstractsocket - unknown status
- tst_qeventloop - unknown status
- tst_qftp - unknown status
- tst_qguieventloop - unknown status
- tst_qhostinfo - unknown status
- tst_qhttpnetworkconnection - unknown status
- tst_qhttpnetworkreply - unknown status
- tst_qhttpsocketengine - unknown status
- tst_qimagereader - unknown status
- tst_qiodevice - unknown status
- tst_qlocalsocket - unknown status
- tst_qnetworkaccessmanager - unknown status
- tst_qnetworkaccessmanager_and_qprogressdialog - unknown status
- tst_qnetworkconfigurationmanagerqappless - unknown status
- tst_qnetworkdiskcache - unknown status
- tst_qnetworkinterface - unknown status
- tst_qnetworkproxy - unknown status
- tst_qnetworkproxyfactory - unknown status
- tst_qnetworksession - unknown status
- tst_qobject - unknown status
- tst_qsocketnotifier - unknown status
- ...
}executed 37 times by 37 tests: end of block Executed by:- tst_lancelot - unknown status
- tst_networkselftest - unknown status
- tst_platformsocketengine - unknown status
- tst_qabstractnetworkcache - unknown status
- tst_qabstractsocket - unknown status
- tst_qeventloop - unknown status
- tst_qftp - unknown status
- tst_qguieventloop - unknown status
- tst_qhostinfo - unknown status
- tst_qhttpnetworkconnection - unknown status
- tst_qhttpnetworkreply - unknown status
- tst_qhttpsocketengine - unknown status
- tst_qimagereader - unknown status
- tst_qiodevice - unknown status
- tst_qlocalsocket - unknown status
- tst_qnetworkaccessmanager - unknown status
- tst_qnetworkaccessmanager_and_qprogressdialog - unknown status
- tst_qnetworkconfigurationmanagerqappless - unknown status
- tst_qnetworkdiskcache - unknown status
- tst_qnetworkinterface - unknown status
- tst_qnetworkproxy - unknown status
- tst_qnetworkproxyfactory - unknown status
- tst_qnetworksession - unknown status
- tst_qobject - unknown status
- tst_qsocketnotifier - unknown status
- ...
}; static struct Holder : public HolderBase { Type value; Holder() noexcept(noexcept(Type ())) : value () { guard.store(QtGlobalStatic::Initialized); } } holder; returnexecuted 75613 times by 38 tests: return &holder.value; Executed by:- tst_NetworkSelfTest
- tst_QAbstractNetworkCache
- tst_QFtp
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkConfigurationManager
- tst_QNetworkDiskCache
- tst_QNetworkInterface
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QNetworkSession
- tst_QTcpServer
- tst_QUdpSocket
- tst_QXmlInputSource
- tst_QXmlStream
- tst_Spdy
- tst_lancelot - unknown status
- tst_platformsocketengine - unknown status
- tst_qabstractsocket - unknown status
- tst_qeventloop - unknown status
- tst_qguieventloop - unknown status
- tst_qhttpnetworkreply - unknown status
- tst_qhttpsocketengine - unknown status
- ...
&holder.value;executed 75613 times by 38 tests: return &holder.value; Executed by:- tst_NetworkSelfTest
- tst_QAbstractNetworkCache
- tst_QFtp
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkConfigurationManager
- tst_QNetworkDiskCache
- tst_QNetworkInterface
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QNetworkSession
- tst_QTcpServer
- tst_QUdpSocket
- tst_QXmlInputSource
- tst_QXmlStream
- tst_Spdy
- tst_lancelot - unknown status
- tst_platformsocketengine - unknown status
- tst_qabstractsocket - unknown status
- tst_qeventloop - unknown status
- tst_qguieventloop - unknown status
- tst_qhttpnetworkreply - unknown status
- tst_qhttpsocketengine - unknown status
- ...
} } } static QGlobalStatic<QGlobalNetworkProxy, Q_QGS_globalNetworkProxy::innerFunction, Q_QGS_globalNetworkProxy::guard> globalNetworkProxy; | 0-75613 |
127 | | - |
128 | namespace { | - |
129 | template<bool> struct StaticAssertTest; | - |
130 | template<> struct StaticAssertTest<true> { enum { Value = 1 }; }; | - |
131 | } | - |
132 | | - |
133 | static inline void qt_noop_with_arg(int) {} | - |
134 | | - |
135 | | - |
136 | static QNetworkProxy::Capabilities defaultCapabilitiesForType(QNetworkProxy::ProxyType type) | - |
137 | { | - |
138 | qt_noop_with_arg(sizeof(StaticAssertTest< int(QNetworkProxy::DefaultProxy) == 0 >::Value)); | - |
139 | qt_noop_with_arg(sizeof(StaticAssertTest< int(QNetworkProxy::FtpCachingProxy) == 5 >::Value)); | - |
140 | static const int defaults[] = | - |
141 | { | - |
142 | | - |
143 | (int(QNetworkProxy::ListeningCapability) | | - |
144 | int(QNetworkProxy::TunnelingCapability) | | - |
145 | int(QNetworkProxy::UdpTunnelingCapability)), | - |
146 | | - |
147 | (int(QNetworkProxy::TunnelingCapability) | | - |
148 | int(QNetworkProxy::ListeningCapability) | | - |
149 | int(QNetworkProxy::UdpTunnelingCapability) | | - |
150 | int(QNetworkProxy::HostNameLookupCapability)), | - |
151 | | - |
152 | | - |
153 | (int(QNetworkProxy::ListeningCapability) | | - |
154 | int(QNetworkProxy::TunnelingCapability) | | - |
155 | int(QNetworkProxy::UdpTunnelingCapability)), | - |
156 | | - |
157 | (int(QNetworkProxy::TunnelingCapability) | | - |
158 | int(QNetworkProxy::CachingCapability) | | - |
159 | int(QNetworkProxy::HostNameLookupCapability)), | - |
160 | | - |
161 | (int(QNetworkProxy::CachingCapability) | | - |
162 | int(QNetworkProxy::HostNameLookupCapability)), | - |
163 | | - |
164 | (int(QNetworkProxy::CachingCapability) | | - |
165 | int(QNetworkProxy::HostNameLookupCapability)), | - |
166 | }; | - |
167 | | - |
168 | if (int(type) < 0TRUE | never evaluated | FALSE | evaluated 14436 times by 30 testsEvaluated by:- tst_NetworkSelfTest
- tst_QAbstractNetworkCache
- tst_QFtp
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkInterface
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QTcpServer
- tst_QUdpSocket
- tst_QXmlInputSource
- tst_Spdy
- tst_lancelot - unknown status
- tst_qeventloop - unknown status
- tst_qguieventloop - unknown status
- tst_qhttpsocketengine - unknown status
- tst_qimagereader - unknown status
- tst_qiodevice - unknown status
- tst_qnetworkproxy - unknown status
- tst_qobject - unknown status
- tst_qsocketnotifier - unknown status
- tst_qsocks5socketengine - unknown status
- tst_qsslsocket - unknown status
- ...
|
|| int(type) > int(QNetworkProxy::FtpCachingProxy)TRUE | never evaluated | FALSE | evaluated 14436 times by 30 testsEvaluated by:- tst_NetworkSelfTest
- tst_QAbstractNetworkCache
- tst_QFtp
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkInterface
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QTcpServer
- tst_QUdpSocket
- tst_QXmlInputSource
- tst_Spdy
- tst_lancelot - unknown status
- tst_qeventloop - unknown status
- tst_qguieventloop - unknown status
- tst_qhttpsocketengine - unknown status
- tst_qimagereader - unknown status
- tst_qiodevice - unknown status
- tst_qnetworkproxy - unknown status
- tst_qobject - unknown status
- tst_qsocketnotifier - unknown status
- tst_qsocks5socketengine - unknown status
- tst_qsslsocket - unknown status
- ...
|
) | 0-14436 |
169 | type = QNetworkProxy::DefaultProxy; never executed: type = QNetworkProxy::DefaultProxy; | 0 |
170 | returnexecuted 14436 times by 30 tests: return QNetworkProxy::Capabilities(defaults[int(type)]); Executed by:- tst_NetworkSelfTest
- tst_QAbstractNetworkCache
- tst_QFtp
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkInterface
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QTcpServer
- tst_QUdpSocket
- tst_QXmlInputSource
- tst_Spdy
- tst_lancelot - unknown status
- tst_qeventloop - unknown status
- tst_qguieventloop - unknown status
- tst_qhttpsocketengine - unknown status
- tst_qimagereader - unknown status
- tst_qiodevice - unknown status
- tst_qnetworkproxy - unknown status
- tst_qobject - unknown status
- tst_qsocketnotifier - unknown status
- tst_qsocks5socketengine - unknown status
- tst_qsslsocket - unknown status
- ...
QNetworkProxy::Capabilities(defaults[int(type)]);executed 14436 times by 30 tests: return QNetworkProxy::Capabilities(defaults[int(type)]); Executed by:- tst_NetworkSelfTest
- tst_QAbstractNetworkCache
- tst_QFtp
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkInterface
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QTcpServer
- tst_QUdpSocket
- tst_QXmlInputSource
- tst_Spdy
- tst_lancelot - unknown status
- tst_qeventloop - unknown status
- tst_qguieventloop - unknown status
- tst_qhttpsocketengine - unknown status
- tst_qimagereader - unknown status
- tst_qiodevice - unknown status
- tst_qnetworkproxy - unknown status
- tst_qobject - unknown status
- tst_qsocketnotifier - unknown status
- tst_qsocks5socketengine - unknown status
- tst_qsslsocket - unknown status
- ...
| 14436 |
171 | } | - |
172 | | - |
173 | class QNetworkProxyPrivate: public QSharedData | - |
174 | { | - |
175 | public: | - |
176 | QString hostName; | - |
177 | QString user; | - |
178 | QString password; | - |
179 | QNetworkProxy::Capabilities capabilities; | - |
180 | quint16 port; | - |
181 | QNetworkProxy::ProxyType type; | - |
182 | bool capabilitiesSet; | - |
183 | QNetworkHeadersPrivate headers; | - |
184 | | - |
185 | inline QNetworkProxyPrivate(QNetworkProxy::ProxyType t = QNetworkProxy::DefaultProxy, | - |
186 | const QString &h = QString(), quint16 p = 0, | - |
187 | const QString &u = QString(), const QString &pw = QString()) | - |
188 | : hostName(h), | - |
189 | user(u), | - |
190 | password(pw), | - |
191 | capabilities(defaultCapabilitiesForType(t)), | - |
192 | port(p), | - |
193 | type(t), | - |
194 | capabilitiesSet(false) | - |
195 | { }executed 14399 times by 30 tests: end of block Executed by:- tst_NetworkSelfTest
- tst_QAbstractNetworkCache
- tst_QFtp
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkInterface
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QTcpServer
- tst_QUdpSocket
- tst_QXmlInputSource
- tst_Spdy
- tst_lancelot - unknown status
- tst_qeventloop - unknown status
- tst_qguieventloop - unknown status
- tst_qhttpsocketengine - unknown status
- tst_qimagereader - unknown status
- tst_qiodevice - unknown status
- tst_qnetworkproxy - unknown status
- tst_qobject - unknown status
- tst_qsocketnotifier - unknown status
- tst_qsocks5socketengine - unknown status
- tst_qsslsocket - unknown status
- ...
| 14399 |
196 | | - |
197 | inline bool operator==(const QNetworkProxyPrivate &other) const | - |
198 | { | - |
199 | returnexecuted 1 time by 1 test: return type == other.type && port == other.port && hostName == other.hostName && user == other.user && password == other.password && capabilities == other.capabilities; type == other.type &&executed 1 time by 1 test: return type == other.type && port == other.port && hostName == other.hostName && user == other.user && password == other.password && capabilities == other.capabilities; | 1 |
200 | port == other.port &&executed 1 time by 1 test: return type == other.type && port == other.port && hostName == other.hostName && user == other.user && password == other.password && capabilities == other.capabilities; | 1 |
201 | hostName == other.hostName &&executed 1 time by 1 test: return type == other.type && port == other.port && hostName == other.hostName && user == other.user && password == other.password && capabilities == other.capabilities; | 1 |
202 | user == other.user &&executed 1 time by 1 test: return type == other.type && port == other.port && hostName == other.hostName && user == other.user && password == other.password && capabilities == other.capabilities; | 1 |
203 | password == other.password &&executed 1 time by 1 test: return type == other.type && port == other.port && hostName == other.hostName && user == other.user && password == other.password && capabilities == other.capabilities; | 1 |
204 | capabilities == other.capabilities;executed 1 time by 1 test: return type == other.type && port == other.port && hostName == other.hostName && user == other.user && password == other.password && capabilities == other.capabilities; | 1 |
205 | } | - |
206 | }; | - |
207 | | - |
208 | template<> void QSharedDataPointer<QNetworkProxyPrivate>::detach() | - |
209 | { | - |
210 | if (dTRUE | evaluated 316 times by 8 testsEvaluated by:- tst_QNetworkReply
- tst_Spdy
- tst_qnetworkproxy - unknown status
- tst_qsocks5socketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| FALSE | evaluated 1 time by 1 testEvaluated by:- tst_qnetworkproxy - unknown status
|
&& d->ref.load() == 1TRUE | evaluated 166 times by 8 testsEvaluated by:- tst_QNetworkReply
- tst_Spdy
- tst_qnetworkproxy - unknown status
- tst_qsocks5socketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| FALSE | evaluated 150 times by 6 testsEvaluated by:- tst_QNetworkReply
- tst_Spdy
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
|
) | 1-316 |
211 | return;executed 166 times by 8 tests: return; Executed by:- tst_QNetworkReply
- tst_Spdy
- tst_qnetworkproxy - unknown status
- tst_qsocks5socketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| 166 |
212 | QNetworkProxyPrivate *x = (dTRUE | evaluated 150 times by 6 testsEvaluated by:- tst_QNetworkReply
- tst_Spdy
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| FALSE | evaluated 1 time by 1 testEvaluated by:- tst_qnetworkproxy - unknown status
|
? new QNetworkProxyPrivate(*d) | 1-150 |
213 | : new QNetworkProxyPrivate); | - |
214 | x->ref.ref(); | - |
215 | if (dTRUE | evaluated 150 times by 6 testsEvaluated by:- tst_QNetworkReply
- tst_Spdy
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| FALSE | evaluated 1 time by 1 testEvaluated by:- tst_qnetworkproxy - unknown status
|
&& !d->ref.deref()TRUE | never evaluated | FALSE | evaluated 150 times by 6 testsEvaluated by:- tst_QNetworkReply
- tst_Spdy
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
|
) | 0-150 |
216 | delete d; never executed: delete d; | 0 |
217 | d = x; | - |
218 | }executed 151 times by 7 tests: end of block Executed by:- tst_QNetworkReply
- tst_Spdy
- tst_qnetworkproxy - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| 151 |
219 | | - |
220 | | - |
221 | | - |
222 | | - |
223 | | - |
224 | | - |
225 | | - |
226 | QNetworkProxy::QNetworkProxy() | - |
227 | : d(0) | - |
228 | { | - |
229 | | - |
230 | | - |
231 | | - |
232 | globalNetworkProxy(); | - |
233 | }executed 36181 times by 38 tests: end of block Executed by:- tst_NetworkSelfTest
- tst_QAbstractNetworkCache
- tst_QFtp
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkConfigurationManager
- tst_QNetworkDiskCache
- tst_QNetworkInterface
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QNetworkSession
- tst_QTcpServer
- tst_QUdpSocket
- tst_QXmlInputSource
- tst_QXmlStream
- tst_Spdy
- tst_lancelot - unknown status
- tst_platformsocketengine - unknown status
- tst_qabstractsocket - unknown status
- tst_qeventloop - unknown status
- tst_qguieventloop - unknown status
- tst_qhttpnetworkreply - unknown status
- tst_qhttpsocketengine - unknown status
- ...
| 36181 |
234 | QNetworkProxy::QNetworkProxy(ProxyType type, const QString &hostName, quint16 port, | - |
235 | const QString &user, const QString &password) | - |
236 | : d(new QNetworkProxyPrivate(type, hostName, port, user, password)) | - |
237 | { | - |
238 | | - |
239 | | - |
240 | | - |
241 | globalNetworkProxy(); | - |
242 | }executed 14398 times by 30 tests: end of block Executed by:- tst_NetworkSelfTest
- tst_QAbstractNetworkCache
- tst_QFtp
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkInterface
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QTcpServer
- tst_QUdpSocket
- tst_QXmlInputSource
- tst_Spdy
- tst_lancelot - unknown status
- tst_qeventloop - unknown status
- tst_qguieventloop - unknown status
- tst_qhttpsocketengine - unknown status
- tst_qimagereader - unknown status
- tst_qiodevice - unknown status
- tst_qnetworkproxy - unknown status
- tst_qobject - unknown status
- tst_qsocketnotifier - unknown status
- tst_qsocks5socketengine - unknown status
- tst_qsslsocket - unknown status
- ...
| 14398 |
243 | | - |
244 | | - |
245 | | - |
246 | | - |
247 | QNetworkProxy::QNetworkProxy(const QNetworkProxy &other) | - |
248 | : d(other.d) | - |
249 | { | - |
250 | }executed 24986 times by 29 tests: end of block Executed by:- tst_NetworkSelfTest
- tst_QAbstractNetworkCache
- tst_QFtp
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkInterface
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QTcpServer
- tst_QUdpSocket
- tst_QXmlInputSource
- tst_Spdy
- tst_lancelot - unknown status
- tst_qeventloop - unknown status
- tst_qguieventloop - unknown status
- tst_qhttpsocketengine - unknown status
- tst_qimagereader - unknown status
- tst_qiodevice - unknown status
- tst_qobject - unknown status
- tst_qsocketnotifier - unknown status
- tst_qsocks5socketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- ...
| 24986 |
251 | | - |
252 | | - |
253 | | - |
254 | | - |
255 | QNetworkProxy::~QNetworkProxy() | - |
256 | { | - |
257 | | - |
258 | } | - |
259 | | - |
260 | | - |
261 | | - |
262 | | - |
263 | | - |
264 | | - |
265 | | - |
266 | bool QNetworkProxy::operator==(const QNetworkProxy &other) const | - |
267 | { | - |
268 | returnexecuted 79 times by 3 tests: return d == other.d || (d && other.d && *d == *other.d); Executed by:- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_Spdy
d == other.d || (d && other.d && *d == *other.d);executed 79 times by 3 tests: return d == other.d || (d && other.d && *d == *other.d); Executed by:- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_Spdy
| 79 |
269 | } | - |
270 | QNetworkProxy &QNetworkProxy::operator=(const QNetworkProxy &other) | - |
271 | { | - |
272 | d = other.d; | - |
273 | returnexecuted 21925 times by 29 tests: return *this; Executed by:- tst_NetworkSelfTest
- tst_QAbstractNetworkCache
- tst_QFtp
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkInterface
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QTcpServer
- tst_QUdpSocket
- tst_QXmlInputSource
- tst_Spdy
- tst_lancelot - unknown status
- tst_qeventloop - unknown status
- tst_qguieventloop - unknown status
- tst_qhttpsocketengine - unknown status
- tst_qimagereader - unknown status
- tst_qiodevice - unknown status
- tst_qobject - unknown status
- tst_qsocketnotifier - unknown status
- tst_qsocks5socketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- ...
*this;executed 21925 times by 29 tests: return *this; Executed by:- tst_NetworkSelfTest
- tst_QAbstractNetworkCache
- tst_QFtp
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkInterface
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QTcpServer
- tst_QUdpSocket
- tst_QXmlInputSource
- tst_Spdy
- tst_lancelot - unknown status
- tst_qeventloop - unknown status
- tst_qguieventloop - unknown status
- tst_qhttpsocketengine - unknown status
- tst_qimagereader - unknown status
- tst_qiodevice - unknown status
- tst_qobject - unknown status
- tst_qsocketnotifier - unknown status
- tst_qsocks5socketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- ...
| 21925 |
274 | } | - |
275 | void QNetworkProxy::setType(QNetworkProxy::ProxyType type) | - |
276 | { | - |
277 | d->type = type; | - |
278 | if (!d->capabilitiesSetTRUE | evaluated 5 times by 1 testEvaluated by:- tst_qnetworkproxy - unknown status
| FALSE | evaluated 1 time by 1 testEvaluated by:- tst_qnetworkproxy - unknown status
|
) | 1-5 |
279 | d->capabilities = defaultCapabilitiesForType(type);executed 5 times by 1 test: d->capabilities = defaultCapabilitiesForType(type); Executed by:- tst_qnetworkproxy - unknown status
| 5 |
280 | }executed 6 times by 1 test: end of block Executed by:- tst_qnetworkproxy - unknown status
| 6 |
281 | | - |
282 | | - |
283 | | - |
284 | | - |
285 | | - |
286 | | - |
287 | QNetworkProxy::ProxyType QNetworkProxy::type() const | - |
288 | { | - |
289 | returnexecuted 74721 times by 30 tests: return d ? d->type : DefaultProxy; Executed by:- tst_NetworkSelfTest
- tst_QAbstractNetworkCache
- tst_QFtp
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkInterface
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QTcpServer
- tst_QUdpSocket
- tst_QXmlInputSource
- tst_Spdy
- tst_lancelot - unknown status
- tst_qeventloop - unknown status
- tst_qguieventloop - unknown status
- tst_qhttpsocketengine - unknown status
- tst_qimagereader - unknown status
- tst_qiodevice - unknown status
- tst_qnetworkproxy - unknown status
- tst_qobject - unknown status
- tst_qsocketnotifier - unknown status
- tst_qsocks5socketengine - unknown status
- tst_qsslsocket - unknown status
- ...
d ? d->type : DefaultProxy;executed 74721 times by 30 tests: return d ? d->type : DefaultProxy; Executed by:- tst_NetworkSelfTest
- tst_QAbstractNetworkCache
- tst_QFtp
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkInterface
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QTcpServer
- tst_QUdpSocket
- tst_QXmlInputSource
- tst_Spdy
- tst_lancelot - unknown status
- tst_qeventloop - unknown status
- tst_qguieventloop - unknown status
- tst_qhttpsocketengine - unknown status
- tst_qimagereader - unknown status
- tst_qiodevice - unknown status
- tst_qnetworkproxy - unknown status
- tst_qobject - unknown status
- tst_qsocketnotifier - unknown status
- tst_qsocks5socketengine - unknown status
- tst_qsslsocket - unknown status
- ...
| 74721 |
290 | } | - |
291 | void QNetworkProxy::setCapabilities(Capabilities capabilities) | - |
292 | { | - |
293 | d->capabilities = capabilities; | - |
294 | d->capabilitiesSet = true; | - |
295 | }executed 1 time by 1 test: end of block Executed by:- tst_qnetworkproxy - unknown status
| 1 |
296 | QNetworkProxy::Capabilities QNetworkProxy::capabilities() const | - |
297 | { | - |
298 | returnexecuted 16866 times by 30 tests: return d ? d->capabilities : defaultCapabilitiesForType(DefaultProxy); Executed by:- tst_NetworkSelfTest
- tst_QAbstractNetworkCache
- tst_QFtp
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkInterface
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QTcpServer
- tst_QUdpSocket
- tst_QXmlInputSource
- tst_Spdy
- tst_lancelot - unknown status
- tst_qeventloop - unknown status
- tst_qguieventloop - unknown status
- tst_qhttpsocketengine - unknown status
- tst_qimagereader - unknown status
- tst_qiodevice - unknown status
- tst_qnetworkproxy - unknown status
- tst_qobject - unknown status
- tst_qsocketnotifier - unknown status
- tst_qsocks5socketengine - unknown status
- tst_qsslsocket - unknown status
- ...
d ? d->capabilities : defaultCapabilitiesForType(DefaultProxy);executed 16866 times by 30 tests: return d ? d->capabilities : defaultCapabilitiesForType(DefaultProxy); Executed by:- tst_NetworkSelfTest
- tst_QAbstractNetworkCache
- tst_QFtp
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkInterface
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QTcpServer
- tst_QUdpSocket
- tst_QXmlInputSource
- tst_Spdy
- tst_lancelot - unknown status
- tst_qeventloop - unknown status
- tst_qguieventloop - unknown status
- tst_qhttpsocketengine - unknown status
- tst_qimagereader - unknown status
- tst_qiodevice - unknown status
- tst_qnetworkproxy - unknown status
- tst_qobject - unknown status
- tst_qsocketnotifier - unknown status
- tst_qsocks5socketengine - unknown status
- tst_qsslsocket - unknown status
- ...
| 16866 |
299 | } | - |
300 | bool QNetworkProxy::isCachingProxy() const | - |
301 | { | - |
302 | return never executed: return capabilities() & CachingCapability; capabilities() & CachingCapability;never executed: return capabilities() & CachingCapability; | 0 |
303 | } | - |
304 | bool QNetworkProxy::isTransparentProxy() const | - |
305 | { | - |
306 | returnexecuted 840 times by 8 tests: return capabilities() & TunnelingCapability; Executed by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QXmlInputSource
- tst_Spdy
capabilities() & TunnelingCapability;executed 840 times by 8 tests: return capabilities() & TunnelingCapability; Executed by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QXmlInputSource
- tst_Spdy
| 840 |
307 | } | - |
308 | | - |
309 | | - |
310 | | - |
311 | | - |
312 | | - |
313 | | - |
314 | void QNetworkProxy::setUser(const QString &user) | - |
315 | { | - |
316 | d->user = user; | - |
317 | }executed 199 times by 7 tests: end of block Executed by:- tst_QNetworkReply
- tst_Spdy
- tst_qsocks5socketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| 199 |
318 | | - |
319 | | - |
320 | | - |
321 | | - |
322 | | - |
323 | | - |
324 | QString QNetworkProxy::user() const | - |
325 | { | - |
326 | returnexecuted 2249 times by 16 tests: return d ? d->user : QString(); Executed by:- tst_QAbstractNetworkCache
- tst_QFtp
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QTcpServer
- tst_QXmlInputSource
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qsocks5socketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
d ? d->user : QString();executed 2249 times by 16 tests: return d ? d->user : QString(); Executed by:- tst_QAbstractNetworkCache
- tst_QFtp
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QTcpServer
- tst_QXmlInputSource
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qsocks5socketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| 2249 |
327 | } | - |
328 | | - |
329 | | - |
330 | | - |
331 | | - |
332 | | - |
333 | | - |
334 | void QNetworkProxy::setPassword(const QString &password) | - |
335 | { | - |
336 | d->password = password; | - |
337 | }executed 85 times by 7 tests: end of block Executed by:- tst_QNetworkReply
- tst_Spdy
- tst_qsocks5socketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| 85 |
338 | | - |
339 | | - |
340 | | - |
341 | | - |
342 | | - |
343 | | - |
344 | QString QNetworkProxy::password() const | - |
345 | { | - |
346 | returnexecuted 1243 times by 10 tests: return d ? d->password : QString(); Executed by:- tst_QFtp
- tst_QNetworkReply
- tst_QTcpServer
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qsocks5socketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
d ? d->password : QString();executed 1243 times by 10 tests: return d ? d->password : QString(); Executed by:- tst_QFtp
- tst_QNetworkReply
- tst_QTcpServer
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qsocks5socketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| 1243 |
347 | } | - |
348 | | - |
349 | | - |
350 | | - |
351 | | - |
352 | | - |
353 | | - |
354 | void QNetworkProxy::setHostName(const QString &hostName) | - |
355 | { | - |
356 | d->hostName = hostName; | - |
357 | } never executed: end of block | 0 |
358 | | - |
359 | | - |
360 | | - |
361 | | - |
362 | | - |
363 | | - |
364 | QString QNetworkProxy::hostName() const | - |
365 | { | - |
366 | returnexecuted 1926 times by 11 tests: return d ? d->hostName : QString(); Executed by:- tst_QFtp
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QTcpServer
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qsocks5socketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
d ? d->hostName : QString();executed 1926 times by 11 tests: return d ? d->hostName : QString(); Executed by:- tst_QFtp
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QTcpServer
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qsocks5socketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| 1926 |
367 | } | - |
368 | | - |
369 | | - |
370 | | - |
371 | | - |
372 | | - |
373 | | - |
374 | void QNetworkProxy::setPort(quint16 port) | - |
375 | { | - |
376 | d->port = port; | - |
377 | }executed 2 times by 1 test: end of block Executed by:- tst_qnetworkproxy - unknown status
| 2 |
378 | | - |
379 | | - |
380 | | - |
381 | | - |
382 | | - |
383 | | - |
384 | quint16 QNetworkProxy::port() const | - |
385 | { | - |
386 | returnexecuted 1828 times by 12 tests: return d ? d->port : 0; Executed by:- tst_QFtp
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QTcpServer
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qnetworkproxy - unknown status
- tst_qsocks5socketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
d ? d->port : 0;executed 1828 times by 12 tests: return d ? d->port : 0; Executed by:- tst_QFtp
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QTcpServer
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qnetworkproxy - unknown status
- tst_qsocks5socketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| 1828 |
387 | } | - |
388 | void QNetworkProxy::setApplicationProxy(const QNetworkProxy &networkProxy) | - |
389 | { | - |
390 | if (globalNetworkProxy()TRUE | evaluated 2917 times by 8 testsEvaluated by:- tst_QFtp
- tst_QNetworkProxyFactory
- tst_QTcpServer
- tst_QUdpSocket
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| FALSE | never evaluated |
) { | 0-2917 |
391 | | - |
392 | if (networkProxy.type() == DefaultProxyTRUE | evaluated 1607 times by 7 testsEvaluated by:- tst_QFtp
- tst_QTcpServer
- tst_QUdpSocket
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| FALSE | evaluated 1310 times by 7 testsEvaluated by:- tst_QFtp
- tst_QNetworkProxyFactory
- tst_QTcpServer
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
|
) | 1310-1607 |
393 | globalNetworkProxy()->setApplicationProxy(QNetworkProxy::NoProxy);executed 1607 times by 7 tests: globalNetworkProxy()->setApplicationProxy(QNetworkProxy::NoProxy); Executed by:- tst_QFtp
- tst_QTcpServer
- tst_QUdpSocket
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| 1607 |
394 | else | - |
395 | globalNetworkProxy()->setApplicationProxy(networkProxy);executed 1310 times by 7 tests: globalNetworkProxy()->setApplicationProxy(networkProxy); Executed by:- tst_QFtp
- tst_QNetworkProxyFactory
- tst_QTcpServer
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| 1310 |
396 | } | - |
397 | }executed 2917 times by 8 tests: end of block Executed by:- tst_QFtp
- tst_QNetworkProxyFactory
- tst_QTcpServer
- tst_QUdpSocket
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| 2917 |
398 | QNetworkProxy QNetworkProxy::applicationProxy() | - |
399 | { | - |
400 | if (globalNetworkProxy()TRUE | evaluated 2577 times by 19 testsEvaluated by:- tst_NetworkSelfTest
- tst_QFtp
- tst_QHttpNetworkConnection
- tst_QNetworkDiskCache
- tst_QNetworkInterface
- tst_QNetworkReply
- tst_QTcpServer
- tst_QUdpSocket
- tst_qhttpsocketengine - unknown status
- tst_qimagereader - unknown status
- tst_qiodevice - unknown status
- tst_qsocketnotifier - unknown status
- tst_qsocks5socketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
- tst_qtextstream - unknown status
- tst_qxmlsimplereader - unknown status
| FALSE | never evaluated |
) | 0-2577 |
401 | returnexecuted 2577 times by 19 tests: return globalNetworkProxy()->applicationProxy(); Executed by:- tst_NetworkSelfTest
- tst_QFtp
- tst_QHttpNetworkConnection
- tst_QNetworkDiskCache
- tst_QNetworkInterface
- tst_QNetworkReply
- tst_QTcpServer
- tst_QUdpSocket
- tst_qhttpsocketengine - unknown status
- tst_qimagereader - unknown status
- tst_qiodevice - unknown status
- tst_qsocketnotifier - unknown status
- tst_qsocks5socketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
- tst_qtextstream - unknown status
- tst_qxmlsimplereader - unknown status
globalNetworkProxy()->applicationProxy();executed 2577 times by 19 tests: return globalNetworkProxy()->applicationProxy(); Executed by:- tst_NetworkSelfTest
- tst_QFtp
- tst_QHttpNetworkConnection
- tst_QNetworkDiskCache
- tst_QNetworkInterface
- tst_QNetworkReply
- tst_QTcpServer
- tst_QUdpSocket
- tst_qhttpsocketengine - unknown status
- tst_qimagereader - unknown status
- tst_qiodevice - unknown status
- tst_qsocketnotifier - unknown status
- tst_qsocks5socketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
- tst_qtextstream - unknown status
- tst_qxmlsimplereader - unknown status
| 2577 |
402 | return never executed: return QNetworkProxy(); QNetworkProxy();never executed: return QNetworkProxy(); | 0 |
403 | } | - |
404 | QVariant QNetworkProxy::header(QNetworkRequest::KnownHeaders header) const | - |
405 | { | - |
406 | if (d->type != HttpProxyTRUE | never evaluated | FALSE | never evaluated |
&& d->type != HttpCachingProxyTRUE | never evaluated | FALSE | never evaluated |
) | 0 |
407 | return never executed: return QVariant(); QVariant();never executed: return QVariant(); | 0 |
408 | return never executed: return d->headers.cookedHeaders.value(header); d->headers.cookedHeaders.value(header);never executed: return d->headers.cookedHeaders.value(header); | 0 |
409 | } | - |
410 | void QNetworkProxy::setHeader(QNetworkRequest::KnownHeaders header, const QVariant &value) | - |
411 | { | - |
412 | if (d->type == HttpProxyTRUE | never evaluated | FALSE | never evaluated |
|| d->type == HttpCachingProxyTRUE | never evaluated | FALSE | never evaluated |
) | 0 |
413 | d->headers.setCookedHeader(header, value); never executed: d->headers.setCookedHeader(header, value); | 0 |
414 | } never executed: end of block | 0 |
415 | bool QNetworkProxy::hasRawHeader(const QByteArray &headerName) const | - |
416 | { | - |
417 | if (d->type != HttpProxyTRUE | never evaluated | FALSE | evaluated 531 times by 7 testsEvaluated by:- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
|
&& d->type != HttpCachingProxyTRUE | never evaluated | FALSE | never evaluated |
) | 0-531 |
418 | return never executed: return false; false;never executed: return false; | 0 |
419 | returnexecuted 531 times by 7 tests: return d->headers.findRawHeader(headerName) != d->headers.rawHeaders.constEnd(); Executed by:- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
d->headers.findRawHeader(headerName) != d->headers.rawHeaders.constEnd();executed 531 times by 7 tests: return d->headers.findRawHeader(headerName) != d->headers.rawHeaders.constEnd(); Executed by:- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| 531 |
420 | } | - |
421 | QByteArray QNetworkProxy::rawHeader(const QByteArray &headerName) const | - |
422 | { | - |
423 | if (d->type != HttpProxyTRUE | never evaluated | FALSE | evaluated 13 times by 1 test |
&& d->type != HttpCachingProxyTRUE | never evaluated | FALSE | never evaluated |
) | 0-13 |
424 | return never executed: return QByteArray(); QByteArray();never executed: return QByteArray(); | 0 |
425 | QNetworkHeadersPrivate::RawHeadersList::ConstIterator it = | - |
426 | d->headers.findRawHeader(headerName); | - |
427 | if (it != d->headers.rawHeaders.constEnd()TRUE | evaluated 13 times by 1 test | FALSE | never evaluated |
) | 0-13 |
428 | returnexecuted 13 times by 1 test: return it->second; it->second;executed 13 times by 1 test: return it->second; | 13 |
429 | return never executed: return QByteArray(); QByteArray();never executed: return QByteArray(); | 0 |
430 | } | - |
431 | QList<QByteArray> QNetworkProxy::rawHeaderList() const | - |
432 | { | - |
433 | if (d->type != HttpProxyTRUE | never evaluated | FALSE | evaluated 531 times by 7 testsEvaluated by:- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
|
&& d->type != HttpCachingProxyTRUE | never evaluated | FALSE | never evaluated |
) | 0-531 |
434 | return never executed: return QList<QByteArray>(); QList<QByteArray>();never executed: return QList<QByteArray>(); | 0 |
435 | returnexecuted 531 times by 7 tests: return d->headers.rawHeadersKeys(); Executed by:- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
d->headers.rawHeadersKeys();executed 531 times by 7 tests: return d->headers.rawHeadersKeys(); Executed by:- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| 531 |
436 | } | - |
437 | void QNetworkProxy::setRawHeader(const QByteArray &headerName, const QByteArray &headerValue) | - |
438 | { | - |
439 | if (d->type == HttpProxyTRUE | evaluated 6 times by 1 test | FALSE | never evaluated |
|| d->type == HttpCachingProxyTRUE | never evaluated | FALSE | never evaluated |
) | 0-6 |
440 | d->headers.setRawHeader(headerName, headerValue);executed 6 times by 1 test: d->headers.setRawHeader(headerName, headerValue); | 6 |
441 | }executed 6 times by 1 test: end of block | 6 |
442 | | - |
443 | class QNetworkProxyQueryPrivate: public QSharedData | - |
444 | { | - |
445 | public: | - |
446 | inline QNetworkProxyQueryPrivate() | - |
447 | : localPort(-1), type(QNetworkProxyQuery::TcpSocket) | - |
448 | { }executed 7249 times by 29 tests: end of block Executed by:- tst_NetworkSelfTest
- tst_QAbstractNetworkCache
- tst_QFtp
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkInterface
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QTcpServer
- tst_QUdpSocket
- tst_QXmlInputSource
- tst_Spdy
- tst_lancelot - unknown status
- tst_qeventloop - unknown status
- tst_qguieventloop - unknown status
- tst_qhttpsocketengine - unknown status
- tst_qimagereader - unknown status
- tst_qiodevice - unknown status
- tst_qobject - unknown status
- tst_qsocketnotifier - unknown status
- tst_qsocks5socketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- ...
| 7249 |
449 | | - |
450 | bool operator==(const QNetworkProxyQueryPrivate &other) const | - |
451 | { | - |
452 | returnexecuted 40 times by 3 tests: return type == other.type && localPort == other.localPort && remote == other.remote; Executed by:- tst_QNetworkReply
- tst_QTcpServer
- tst_qtcpsocket - unknown status
type == other.type &&executed 40 times by 3 tests: return type == other.type && localPort == other.localPort && remote == other.remote; Executed by:- tst_QNetworkReply
- tst_QTcpServer
- tst_qtcpsocket - unknown status
| 40 |
453 | localPort == other.localPort &&executed 40 times by 3 tests: return type == other.type && localPort == other.localPort && remote == other.remote; Executed by:- tst_QNetworkReply
- tst_QTcpServer
- tst_qtcpsocket - unknown status
| 40 |
454 | remote == other.remote;executed 40 times by 3 tests: return type == other.type && localPort == other.localPort && remote == other.remote; Executed by:- tst_QNetworkReply
- tst_QTcpServer
- tst_qtcpsocket - unknown status
| 40 |
455 | } | - |
456 | | - |
457 | QUrl remote; | - |
458 | int localPort; | - |
459 | QNetworkProxyQuery::QueryType type; | - |
460 | | - |
461 | QNetworkConfiguration config; | - |
462 | | - |
463 | }; | - |
464 | | - |
465 | template<> void QSharedDataPointer<QNetworkProxyQueryPrivate>::detach() | - |
466 | { | - |
467 | if (dTRUE | evaluated 19084 times by 29 testsEvaluated by:- tst_NetworkSelfTest
- tst_QAbstractNetworkCache
- tst_QFtp
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkInterface
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QTcpServer
- tst_QUdpSocket
- tst_QXmlInputSource
- tst_Spdy
- tst_lancelot - unknown status
- tst_qeventloop - unknown status
- tst_qguieventloop - unknown status
- tst_qhttpsocketengine - unknown status
- tst_qimagereader - unknown status
- tst_qiodevice - unknown status
- tst_qobject - unknown status
- tst_qsocketnotifier - unknown status
- tst_qsocks5socketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- ...
| FALSE | evaluated 7249 times by 29 testsEvaluated by:- tst_NetworkSelfTest
- tst_QAbstractNetworkCache
- tst_QFtp
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkInterface
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QTcpServer
- tst_QUdpSocket
- tst_QXmlInputSource
- tst_Spdy
- tst_lancelot - unknown status
- tst_qeventloop - unknown status
- tst_qguieventloop - unknown status
- tst_qhttpsocketengine - unknown status
- tst_qimagereader - unknown status
- tst_qiodevice - unknown status
- tst_qobject - unknown status
- tst_qsocketnotifier - unknown status
- tst_qsocks5socketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- ...
|
&& d->ref.load() == 1TRUE | evaluated 19084 times by 29 testsEvaluated by:- tst_NetworkSelfTest
- tst_QAbstractNetworkCache
- tst_QFtp
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkInterface
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QTcpServer
- tst_QUdpSocket
- tst_QXmlInputSource
- tst_Spdy
- tst_lancelot - unknown status
- tst_qeventloop - unknown status
- tst_qguieventloop - unknown status
- tst_qhttpsocketengine - unknown status
- tst_qimagereader - unknown status
- tst_qiodevice - unknown status
- tst_qobject - unknown status
- tst_qsocketnotifier - unknown status
- tst_qsocks5socketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- ...
| FALSE | never evaluated |
) | 0-19084 |
468 | return;executed 19084 times by 29 tests: return; Executed by:- tst_NetworkSelfTest
- tst_QAbstractNetworkCache
- tst_QFtp
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkInterface
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QTcpServer
- tst_QUdpSocket
- tst_QXmlInputSource
- tst_Spdy
- tst_lancelot - unknown status
- tst_qeventloop - unknown status
- tst_qguieventloop - unknown status
- tst_qhttpsocketengine - unknown status
- tst_qimagereader - unknown status
- tst_qiodevice - unknown status
- tst_qobject - unknown status
- tst_qsocketnotifier - unknown status
- tst_qsocks5socketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- ...
| 19084 |
469 | QNetworkProxyQueryPrivate *x = (dTRUE | never evaluated | FALSE | evaluated 7249 times by 29 testsEvaluated by:- tst_NetworkSelfTest
- tst_QAbstractNetworkCache
- tst_QFtp
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkInterface
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QTcpServer
- tst_QUdpSocket
- tst_QXmlInputSource
- tst_Spdy
- tst_lancelot - unknown status
- tst_qeventloop - unknown status
- tst_qguieventloop - unknown status
- tst_qhttpsocketengine - unknown status
- tst_qimagereader - unknown status
- tst_qiodevice - unknown status
- tst_qobject - unknown status
- tst_qsocketnotifier - unknown status
- tst_qsocks5socketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- ...
|
? new QNetworkProxyQueryPrivate(*d) | 0-7249 |
470 | : new QNetworkProxyQueryPrivate); | - |
471 | x->ref.ref(); | - |
472 | if (dTRUE | never evaluated | FALSE | evaluated 7249 times by 29 testsEvaluated by:- tst_NetworkSelfTest
- tst_QAbstractNetworkCache
- tst_QFtp
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkInterface
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QTcpServer
- tst_QUdpSocket
- tst_QXmlInputSource
- tst_Spdy
- tst_lancelot - unknown status
- tst_qeventloop - unknown status
- tst_qguieventloop - unknown status
- tst_qhttpsocketengine - unknown status
- tst_qimagereader - unknown status
- tst_qiodevice - unknown status
- tst_qobject - unknown status
- tst_qsocketnotifier - unknown status
- tst_qsocks5socketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- ...
|
&& !d->ref.deref()TRUE | never evaluated | FALSE | never evaluated |
) | 0-7249 |
473 | delete d; never executed: delete d; | 0 |
474 | d = x; | - |
475 | }executed 7249 times by 29 tests: end of block Executed by:- tst_NetworkSelfTest
- tst_QAbstractNetworkCache
- tst_QFtp
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkInterface
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QTcpServer
- tst_QUdpSocket
- tst_QXmlInputSource
- tst_Spdy
- tst_lancelot - unknown status
- tst_qeventloop - unknown status
- tst_qguieventloop - unknown status
- tst_qhttpsocketengine - unknown status
- tst_qimagereader - unknown status
- tst_qiodevice - unknown status
- tst_qobject - unknown status
- tst_qsocketnotifier - unknown status
- tst_qsocks5socketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- ...
| 7249 |
476 | QNetworkProxyQuery::QNetworkProxyQuery() | - |
477 | { | - |
478 | } | - |
479 | | - |
480 | | - |
481 | | - |
482 | | - |
483 | | - |
484 | | - |
485 | | - |
486 | QNetworkProxyQuery::QNetworkProxyQuery(const QUrl &requestUrl, QueryType queryType) | - |
487 | { | - |
488 | d->remote = requestUrl; | - |
489 | d->type = queryType; | - |
490 | }executed 924 times by 8 tests: end of block Executed by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QXmlInputSource
- tst_Spdy
| 924 |
491 | QNetworkProxyQuery::QNetworkProxyQuery(const QString &hostname, int port, | - |
492 | const QString &protocolTag, | - |
493 | QueryType queryType) | - |
494 | { | - |
495 | d->remote.setScheme(protocolTag); | - |
496 | d->remote.setHost(hostname); | - |
497 | d->remote.setPort(port); | - |
498 | d->type = queryType; | - |
499 | }executed 5510 times by 24 tests: end of block Executed by:- tst_NetworkSelfTest
- tst_QFtp
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QNetworkInterface
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QTcpServer
- tst_QUdpSocket
- tst_lancelot - unknown status
- tst_qeventloop - unknown status
- tst_qguieventloop - unknown status
- tst_qhttpsocketengine - unknown status
- tst_qimagereader - unknown status
- tst_qiodevice - unknown status
- tst_qobject - unknown status
- tst_qsocketnotifier - unknown status
- tst_qsocks5socketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
- tst_qtextstream - unknown status
- tst_qxmlsimplereader - unknown status
| 5510 |
500 | QNetworkProxyQuery::QNetworkProxyQuery(quint16 bindPort, const QString &protocolTag, | - |
501 | QueryType queryType) | - |
502 | { | - |
503 | d->remote.setScheme(protocolTag); | - |
504 | d->localPort = bindPort; | - |
505 | d->type = queryType; | - |
506 | }executed 690 times by 12 tests: end of block Executed by:- tst_NetworkSelfTest
- tst_QFtp
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QTcpServer
- tst_qhttpsocketengine - unknown status
- tst_qimagereader - unknown status
- tst_qsocks5socketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qtcpsocket - unknown status
- tst_qxmlsimplereader - unknown status
| 690 |
507 | QNetworkProxyQuery::QNetworkProxyQuery(const QNetworkConfiguration &networkConfiguration, | - |
508 | const QUrl &requestUrl, QueryType queryType) | - |
509 | { | - |
510 | d->config = networkConfiguration; | - |
511 | d->remote = requestUrl; | - |
512 | d->type = queryType; | - |
513 | }executed 125 times by 3 tests: end of block Executed by:- tst_QAbstractNetworkCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
| 125 |
514 | QNetworkProxyQuery::QNetworkProxyQuery(const QNetworkConfiguration &networkConfiguration, | - |
515 | const QString &hostname, int port, | - |
516 | const QString &protocolTag, | - |
517 | QueryType queryType) | - |
518 | { | - |
519 | d->config = networkConfiguration; | - |
520 | d->remote.setScheme(protocolTag); | - |
521 | d->remote.setHost(hostname); | - |
522 | d->remote.setPort(port); | - |
523 | d->type = queryType; | - |
524 | } never executed: end of block | 0 |
525 | QNetworkProxyQuery::QNetworkProxyQuery(const QNetworkConfiguration &networkConfiguration, | - |
526 | quint16 bindPort, const QString &protocolTag, | - |
527 | QueryType queryType) | - |
528 | { | - |
529 | d->config = networkConfiguration; | - |
530 | d->remote.setScheme(protocolTag); | - |
531 | d->localPort = bindPort; | - |
532 | d->type = queryType; | - |
533 | } never executed: end of block | 0 |
534 | | - |
535 | | - |
536 | | - |
537 | | - |
538 | | - |
539 | QNetworkProxyQuery::QNetworkProxyQuery(const QNetworkProxyQuery &other) | - |
540 | : d(other.d) | - |
541 | { | - |
542 | } never executed: end of block | 0 |
543 | | - |
544 | | - |
545 | | - |
546 | | - |
547 | QNetworkProxyQuery::~QNetworkProxyQuery() | - |
548 | { | - |
549 | | - |
550 | } | - |
551 | | - |
552 | | - |
553 | | - |
554 | | - |
555 | QNetworkProxyQuery &QNetworkProxyQuery::operator=(const QNetworkProxyQuery &other) | - |
556 | { | - |
557 | d = other.d; | - |
558 | returnexecuted 42 times by 4 tests: return *this; Executed by:- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QTcpServer
- tst_qtcpsocket - unknown status
*this;executed 42 times by 4 tests: return *this; Executed by:- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QTcpServer
- tst_qtcpsocket - unknown status
| 42 |
559 | } | - |
560 | bool QNetworkProxyQuery::operator==(const QNetworkProxyQuery &other) const | - |
561 | { | - |
562 | returnexecuted 40 times by 3 tests: return d == other.d || (d && other.d && *d == *other.d); Executed by:- tst_QNetworkReply
- tst_QTcpServer
- tst_qtcpsocket - unknown status
d == other.d || (d && other.d && *d == *other.d);executed 40 times by 3 tests: return d == other.d || (d && other.d && *d == *other.d); Executed by:- tst_QNetworkReply
- tst_QTcpServer
- tst_qtcpsocket - unknown status
| 40 |
563 | } | - |
564 | QNetworkProxyQuery::QueryType QNetworkProxyQuery::queryType() const | - |
565 | { | - |
566 | returnexecuted 2 times by 1 test: return d ? d->type : TcpSocket; d ? d->type : TcpSocket;executed 2 times by 1 test: return d ? d->type : TcpSocket; | 2 |
567 | } | - |
568 | | - |
569 | | - |
570 | | - |
571 | | - |
572 | void QNetworkProxyQuery::setQueryType(QueryType type) | - |
573 | { | - |
574 | d->type = type; | - |
575 | } never executed: end of block | 0 |
576 | int QNetworkProxyQuery::peerPort() const | - |
577 | { | - |
578 | return never executed: return d ? d->remote.port() : -1; d ? d->remote.port() : -1;never executed: return d ? d->remote.port() : -1; | 0 |
579 | } | - |
580 | void QNetworkProxyQuery::setPeerPort(int port) | - |
581 | { | - |
582 | d->remote.setPort(port); | - |
583 | } never executed: end of block | 0 |
584 | QString QNetworkProxyQuery::peerHostName() const | - |
585 | { | - |
586 | return never executed: return d ? d->remote.host() : QString(); d ? d->remote.host() : QString();never executed: return d ? d->remote.host() : QString(); | 0 |
587 | } | - |
588 | void QNetworkProxyQuery::setPeerHostName(const QString &hostname) | - |
589 | { | - |
590 | d->remote.setHost(hostname); | - |
591 | } never executed: end of block | 0 |
592 | | - |
593 | | - |
594 | | - |
595 | | - |
596 | | - |
597 | | - |
598 | | - |
599 | int QNetworkProxyQuery::localPort() const | - |
600 | { | - |
601 | return never executed: return d ? d->localPort : -1; d ? d->localPort : -1;never executed: return d ? d->localPort : -1; | 0 |
602 | } | - |
603 | void QNetworkProxyQuery::setLocalPort(int port) | - |
604 | { | - |
605 | d->localPort = port; | - |
606 | } never executed: end of block | 0 |
607 | QString QNetworkProxyQuery::protocolTag() const | - |
608 | { | - |
609 | returnexecuted 39 times by 1 test: return d ? d->remote.scheme() : QString(); d ? d->remote.scheme() : QString();executed 39 times by 1 test: return d ? d->remote.scheme() : QString(); | 39 |
610 | } | - |
611 | void QNetworkProxyQuery::setProtocolTag(const QString &protocolTag) | - |
612 | { | - |
613 | d->remote.setScheme(protocolTag); | - |
614 | } never executed: end of block | 0 |
615 | | - |
616 | | - |
617 | | - |
618 | | - |
619 | | - |
620 | | - |
621 | | - |
622 | QUrl QNetworkProxyQuery::url() const | - |
623 | { | - |
624 | returnexecuted 9578 times by 29 tests: return d ? d->remote : QUrl(); Executed by:- tst_NetworkSelfTest
- tst_QAbstractNetworkCache
- tst_QFtp
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkInterface
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QTcpServer
- tst_QUdpSocket
- tst_QXmlInputSource
- tst_Spdy
- tst_lancelot - unknown status
- tst_qeventloop - unknown status
- tst_qguieventloop - unknown status
- tst_qhttpsocketengine - unknown status
- tst_qimagereader - unknown status
- tst_qiodevice - unknown status
- tst_qobject - unknown status
- tst_qsocketnotifier - unknown status
- tst_qsocks5socketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- ...
d ? d->remote : QUrl();executed 9578 times by 29 tests: return d ? d->remote : QUrl(); Executed by:- tst_NetworkSelfTest
- tst_QAbstractNetworkCache
- tst_QFtp
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkInterface
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QTcpServer
- tst_QUdpSocket
- tst_QXmlInputSource
- tst_Spdy
- tst_lancelot - unknown status
- tst_qeventloop - unknown status
- tst_qguieventloop - unknown status
- tst_qhttpsocketengine - unknown status
- tst_qimagereader - unknown status
- tst_qiodevice - unknown status
- tst_qobject - unknown status
- tst_qsocketnotifier - unknown status
- tst_qsocks5socketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- ...
| 9578 |
625 | } | - |
626 | void QNetworkProxyQuery::setUrl(const QUrl &url) | - |
627 | { | - |
628 | d->remote = url; | - |
629 | } never executed: end of block | 0 |
630 | | - |
631 | | - |
632 | | - |
633 | | - |
634 | | - |
635 | | - |
636 | | - |
637 | QNetworkConfiguration QNetworkProxyQuery::networkConfiguration() const | - |
638 | { | - |
639 | return never executed: return d ? d->config : QNetworkConfiguration(); d ? d->config : QNetworkConfiguration();never executed: return d ? d->config : QNetworkConfiguration(); | 0 |
640 | } | - |
641 | void QNetworkProxyQuery::setNetworkConfiguration(const QNetworkConfiguration &networkConfiguration) | - |
642 | { | - |
643 | d->config = networkConfiguration; | - |
644 | } never executed: end of block | 0 |
645 | QNetworkProxyFactory::QNetworkProxyFactory() | - |
646 | { | - |
647 | } | - |
648 | | - |
649 | | - |
650 | | - |
651 | | - |
652 | QNetworkProxyFactory::~QNetworkProxyFactory() | - |
653 | { | - |
654 | } | - |
655 | void QNetworkProxyFactory::setUseSystemConfiguration(bool enable) | - |
656 | { | - |
657 | if (enableTRUE | never evaluated | FALSE | never evaluated |
) { | 0 |
658 | setApplicationProxyFactory(new QSystemConfigurationProxyFactory); | - |
659 | } never executed: end of block else { | 0 |
660 | setApplicationProxyFactory(0); | - |
661 | } never executed: end of block | 0 |
662 | } | - |
663 | void QNetworkProxyFactory::setApplicationProxyFactory(QNetworkProxyFactory *factory) | - |
664 | { | - |
665 | if (globalNetworkProxy()TRUE | evaluated 22 times by 3 testsEvaluated by:- tst_QNetworkProxyFactory
- tst_QTcpServer
- tst_qtcpsocket - unknown status
| FALSE | never evaluated |
) | 0-22 |
666 | globalNetworkProxy()->setApplicationProxyFactory(factory);executed 22 times by 3 tests: globalNetworkProxy()->setApplicationProxyFactory(factory); Executed by:- tst_QNetworkProxyFactory
- tst_QTcpServer
- tst_qtcpsocket - unknown status
| 22 |
667 | }executed 22 times by 3 tests: end of block Executed by:- tst_QNetworkProxyFactory
- tst_QTcpServer
- tst_qtcpsocket - unknown status
| 22 |
668 | QList<QNetworkProxy> QNetworkProxyFactory::proxyForQuery(const QNetworkProxyQuery &query) | - |
669 | { | - |
670 | if (!globalNetworkProxy()TRUE | never evaluated | FALSE | evaluated 7001 times by 29 testsEvaluated by:- tst_NetworkSelfTest
- tst_QAbstractNetworkCache
- tst_QFtp
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkInterface
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QTcpServer
- tst_QUdpSocket
- tst_QXmlInputSource
- tst_Spdy
- tst_lancelot - unknown status
- tst_qeventloop - unknown status
- tst_qguieventloop - unknown status
- tst_qhttpsocketengine - unknown status
- tst_qimagereader - unknown status
- tst_qiodevice - unknown status
- tst_qobject - unknown status
- tst_qsocketnotifier - unknown status
- tst_qsocks5socketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- ...
|
) | 0-7001 |
671 | return never executed: return QList<QNetworkProxy>() << QNetworkProxy(QNetworkProxy::NoProxy); QList<QNetworkProxy>() << QNetworkProxy(QNetworkProxy::NoProxy);never executed: return QList<QNetworkProxy>() << QNetworkProxy(QNetworkProxy::NoProxy); | 0 |
672 | returnexecuted 7001 times by 29 tests: return globalNetworkProxy()->proxyForQuery(query); Executed by:- tst_NetworkSelfTest
- tst_QAbstractNetworkCache
- tst_QFtp
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkInterface
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QTcpServer
- tst_QUdpSocket
- tst_QXmlInputSource
- tst_Spdy
- tst_lancelot - unknown status
- tst_qeventloop - unknown status
- tst_qguieventloop - unknown status
- tst_qhttpsocketengine - unknown status
- tst_qimagereader - unknown status
- tst_qiodevice - unknown status
- tst_qobject - unknown status
- tst_qsocketnotifier - unknown status
- tst_qsocks5socketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- ...
globalNetworkProxy()->proxyForQuery(query);executed 7001 times by 29 tests: return globalNetworkProxy()->proxyForQuery(query); Executed by:- tst_NetworkSelfTest
- tst_QAbstractNetworkCache
- tst_QFtp
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkInterface
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QTcpServer
- tst_QUdpSocket
- tst_QXmlInputSource
- tst_Spdy
- tst_lancelot - unknown status
- tst_qeventloop - unknown status
- tst_qguieventloop - unknown status
- tst_qhttpsocketengine - unknown status
- tst_qimagereader - unknown status
- tst_qiodevice - unknown status
- tst_qobject - unknown status
- tst_qsocketnotifier - unknown status
- tst_qsocks5socketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- ...
| 7001 |
673 | } | - |
674 | | - |
675 | | - |
676 | | - |
677 | | - |
678 | | - |
679 | | - |
680 | QDebug operator<<(QDebug debug, const QNetworkProxy &proxy) | - |
681 | { | - |
682 | QDebugStateSaver saver(debug); | - |
683 | debug.resetFormat().nospace(); | - |
684 | QNetworkProxy::ProxyType type = proxy.type(); | - |
685 | switch (type) { | - |
686 | caseexecuted 23 times by 1 test: case QNetworkProxy::NoProxy: QNetworkProxy::NoProxy:executed 23 times by 1 test: case QNetworkProxy::NoProxy: | 23 |
687 | debug << "NoProxy "; | - |
688 | break;executed 23 times by 1 test: break; | 23 |
689 | case never executed: case QNetworkProxy::DefaultProxy: QNetworkProxy::DefaultProxy:never executed: case QNetworkProxy::DefaultProxy: | 0 |
690 | debug << "DefaultProxy "; | - |
691 | break; never executed: break; | 0 |
692 | case never executed: case QNetworkProxy::Socks5Proxy: QNetworkProxy::Socks5Proxy:never executed: case QNetworkProxy::Socks5Proxy: | 0 |
693 | debug << "Socks5Proxy "; | - |
694 | break; never executed: break; | 0 |
695 | case never executed: case QNetworkProxy::HttpProxy: QNetworkProxy::HttpProxy:never executed: case QNetworkProxy::HttpProxy: | 0 |
696 | debug << "HttpProxy "; | - |
697 | break; never executed: break; | 0 |
698 | case never executed: case QNetworkProxy::HttpCachingProxy: QNetworkProxy::HttpCachingProxy:never executed: case QNetworkProxy::HttpCachingProxy: | 0 |
699 | debug << "HttpCachingProxy "; | - |
700 | break; never executed: break; | 0 |
701 | case never executed: case QNetworkProxy::FtpCachingProxy: QNetworkProxy::FtpCachingProxy:never executed: case QNetworkProxy::FtpCachingProxy: | 0 |
702 | debug << "FtpCachingProxy "; | - |
703 | break; never executed: break; | 0 |
704 | default never executed: default: :never executed: default: | 0 |
705 | debug << "Unknown proxy " << int(type); | - |
706 | break; never executed: break; | 0 |
707 | } | - |
708 | debug << '"' << proxy.hostName() << ':' << proxy.port() << "\" "; | - |
709 | QNetworkProxy::Capabilities caps = proxy.capabilities(); | - |
710 | QStringList scaps; | - |
711 | if (caps & QNetworkProxy::TunnelingCapabilityTRUE | evaluated 23 times by 1 test | FALSE | never evaluated |
) | 0-23 |
712 | scaps << ([]() -> QString { enum { Size = sizeof(u"" "Tunnel")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "Tunnel" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); returnexecuted 23 times by 1 test: return qstring_literal_temp; qstring_literal_temp;executed 23 times by 1 test: return qstring_literal_temp; }());executed 23 times by 1 test: scaps << ([]() -> QString { enum { Size = sizeof(u"" "Tunnel")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "Tunnel" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }()); | 23 |
713 | if (caps & QNetworkProxy::ListeningCapabilityTRUE | evaluated 23 times by 1 test | FALSE | never evaluated |
) | 0-23 |
714 | scaps << ([]() -> QString { enum { Size = sizeof(u"" "Listen")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "Listen" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); returnexecuted 23 times by 1 test: return qstring_literal_temp; qstring_literal_temp;executed 23 times by 1 test: return qstring_literal_temp; }());executed 23 times by 1 test: scaps << ([]() -> QString { enum { Size = sizeof(u"" "Listen")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "Listen" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }()); | 23 |
715 | if (caps & QNetworkProxy::UdpTunnelingCapabilityTRUE | evaluated 23 times by 1 test | FALSE | never evaluated |
) | 0-23 |
716 | scaps << ([]() -> QString { enum { Size = sizeof(u"" "UDP")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "UDP" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); returnexecuted 23 times by 1 test: return qstring_literal_temp; qstring_literal_temp;executed 23 times by 1 test: return qstring_literal_temp; }());executed 23 times by 1 test: scaps << ([]() -> QString { enum { Size = sizeof(u"" "UDP")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "UDP" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }()); | 23 |
717 | if (caps & QNetworkProxy::CachingCapabilityTRUE | never evaluated | FALSE | evaluated 23 times by 1 test |
) | 0-23 |
718 | scaps << ([]() -> QString { enum { Size = sizeof(u"" "Caching")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "Caching" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return never executed: return qstring_literal_temp; qstring_literal_temp;never executed: return qstring_literal_temp; }());never executed: scaps << ([]() -> QString { enum { Size = sizeof(u"" "Caching")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "Caching" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }()); | 0 |
719 | if (caps & QNetworkProxy::HostNameLookupCapabilityTRUE | never evaluated | FALSE | evaluated 23 times by 1 test |
) | 0-23 |
720 | scaps << ([]() -> QString { enum { Size = sizeof(u"" "NameLookup")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "NameLookup" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return never executed: return qstring_literal_temp; qstring_literal_temp;never executed: return qstring_literal_temp; }());never executed: scaps << ([]() -> QString { enum { Size = sizeof(u"" "NameLookup")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "NameLookup" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }()); | 0 |
721 | debug << '[' << scaps.join(QLatin1Char(' ')) << ']'; | - |
722 | returnexecuted 23 times by 1 test: return debug; debug;executed 23 times by 1 test: return debug; | 23 |
723 | } | - |
724 | | - |
725 | | - |
726 | | - |
| | |