qnetworkproxy.cpp

Absolute File Name:/home/qt/qt5_coco/qt5/qtbase/src/network/kernel/qnetworkproxy.cpp
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3-
4-
5-
6-
7-
8-
9-
10class QSocks5SocketEngineHandler;-
11class QHttpSocketEngineHandler;-
12-
13class QGlobalNetworkProxy-
14{-
15public:-
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 (!applicationLevelProxy
!applicationLevelProxyDescription
TRUEevaluated 8 times by 8 tests
Evaluated 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
FALSEevaluated 2909 times by 8 tests
Evaluated 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 == applicationLevelProxyFactory
factory == app...elProxyFactoryDescription
TRUEnever evaluated
FALSEevaluated 22 times by 3 tests
Evaluated by:
  • tst_QNetworkProxyFactory
  • tst_QTcpServer
  • tst_qtcpsocket - unknown status
)
0-22
64 return;
never executed: return;
0
65 if (applicationLevelProxy
applicationLevelProxyDescription
TRUEevaluated 21 times by 2 tests
Evaluated by:
  • tst_QTcpServer
  • tst_qtcpsocket - unknown status
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QNetworkProxyFactory
)
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 return
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
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-
78private:-
79 QMutex mutex;-
80 QNetworkProxy *applicationLevelProxy;-
81 QNetworkProxyFactory *applicationLevelProxyFactory;-
82-
83 QSocks5SocketEngineHandler *socks5SocketEngineHandler;-
84-
85-
86 QHttpSocketEngineHandler *httpSocketEngineHandler;-
87-
88};-
89-
90QList<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")
hostname == QL...g("localhost")Description
TRUEevaluated 1152 times by 5 tests
Evaluated by:
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_qobject - unknown status
  • tst_qtcpsocket - unknown status
FALSEevaluated 8426 times by 29 tests
Evaluated 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."))
hostname.start..."localhost."))Description
TRUEnever evaluated
FALSEevaluated 8426 times by 29 tests
Evaluated 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)
parsed.setAddress(hostname)Description
TRUEevaluated 962 times by 17 tests
Evaluated 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
FALSEevaluated 7464 times by 25 tests
Evaluated 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 && (
(parsed.isLoopback())Description
TRUEevaluated 578 times by 17 tests
Evaluated 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
FALSEevaluated 384 times by 6 tests
Evaluated by:
  • tst_QFtp
  • tst_QNetworkReply
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_qsslsocket - unknown status
  • tst_qtcpsocket - unknown status
parsed.isLoopback())
(parsed.isLoopback())Description
TRUEevaluated 578 times by 17 tests
Evaluated 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
FALSEevaluated 384 times by 6 tests
Evaluated 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 return
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
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 (!applicationLevelProxyFactory
!applicationLevelProxyFactoryDescription
TRUEevaluated 7827 times by 25 tests
Evaluated 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
FALSEevaluated 21 times by 2 tests
Evaluated by:
  • tst_QTcpServer
  • tst_qtcpsocket - unknown status
) {
21-7827
108 if (applicationLevelProxy
applicationLevelProxyDescription
TRUEevaluated 3360 times by 8 tests
Evaluated 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
FALSEevaluated 4467 times by 22 tests
Evaluated 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::DefaultProxy
applicationLev...::DefaultProxyDescription
TRUEevaluated 3360 times by 8 tests
Evaluated 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
FALSEnever 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 return
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
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()
result.isEmpty()Description
TRUEnever evaluated
FALSEevaluated 21 times by 2 tests
Evaluated 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 return
executed 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-
126namespace { 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::Initialized
guard.load() =...c::InitializedDescription
TRUEevaluated 37 times by 37 tests
Evaluated 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
  • ...
FALSEnever 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; return
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
  • ...
&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-
128namespace {-
129 template<bool> struct StaticAssertTest;-
130 template<> struct StaticAssertTest<true> { enum { Value = 1 }; };-
131}-
132-
133static inline void qt_noop_with_arg(int) {}-
134-
135-
136static 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) < 0
int(type) < 0Description
TRUEnever evaluated
FALSEevaluated 14436 times by 30 tests
Evaluated 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)
int(type) > in...pCachingProxy)Description
TRUEnever evaluated
FALSEevaluated 14436 times by 30 tests
Evaluated 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 return
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
  • ...
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-
173class QNetworkProxyPrivate: public QSharedData-
174{-
175public:-
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 return
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;
Executed by:
  • tst_QNetworkProxyFactory
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;
Executed by:
  • tst_QNetworkProxyFactory
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;
Executed by:
  • tst_QNetworkProxyFactory
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;
Executed by:
  • tst_QNetworkProxyFactory
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;
Executed by:
  • tst_QNetworkProxyFactory
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;
Executed by:
  • tst_QNetworkProxyFactory
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;
Executed by:
  • tst_QNetworkProxyFactory
1
205 }-
206};-
207-
208template<> void QSharedDataPointer<QNetworkProxyPrivate>::detach()-
209{-
210 if (d
dDescription
TRUEevaluated 316 times by 8 tests
Evaluated 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
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_qnetworkproxy - unknown status
&& d->ref.load() == 1
d->ref.load() == 1Description
TRUEevaluated 166 times by 8 tests
Evaluated 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
FALSEevaluated 150 times by 6 tests
Evaluated 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 = (d
dDescription
TRUEevaluated 150 times by 6 tests
Evaluated 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
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_qnetworkproxy - unknown status
? new QNetworkProxyPrivate(*d)
1-150
213 : new QNetworkProxyPrivate);-
214 x->ref.ref();-
215 if (d
dDescription
TRUEevaluated 150 times by 6 tests
Evaluated 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
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_qnetworkproxy - unknown status
&& !d->ref.deref()
!d->ref.deref()Description
TRUEnever evaluated
FALSEevaluated 150 times by 6 tests
Evaluated 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-
226QNetworkProxy::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
234QNetworkProxy::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-
247QNetworkProxy::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-
255QNetworkProxy::~QNetworkProxy()-
256{-
257-
258}-
259-
260-
261-
262-
263-
264-
265-
266bool QNetworkProxy::operator==(const QNetworkProxy &other) const-
267{-
268 return
executed 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}-
270QNetworkProxy &QNetworkProxy::operator=(const QNetworkProxy &other)-
271{-
272 d = other.d;-
273 return
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
  • ...
*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}-
275void QNetworkProxy::setType(QNetworkProxy::ProxyType type)-
276{-
277 d->type = type;-
278 if (!d->capabilitiesSet
!d->capabilitiesSetDescription
TRUEevaluated 5 times by 1 test
Evaluated by:
  • tst_qnetworkproxy - unknown status
FALSEevaluated 1 time by 1 test
Evaluated 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-
287QNetworkProxy::ProxyType QNetworkProxy::type() const-
288{-
289 return
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
  • ...
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}-
291void 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
296QNetworkProxy::Capabilities QNetworkProxy::capabilities() const-
297{-
298 return
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
  • ...
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}-
300bool QNetworkProxy::isCachingProxy() const-
301{-
302 return
never executed: return capabilities() & CachingCapability;
capabilities() & CachingCapability;
never executed: return capabilities() & CachingCapability;
0
303}-
304bool QNetworkProxy::isTransparentProxy() const-
305{-
306 return
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
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-
314void 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-
324QString QNetworkProxy::user() const-
325{-
326 return
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
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-
334void 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-
344QString QNetworkProxy::password() const-
345{-
346 return
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
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-
354void QNetworkProxy::setHostName(const QString &hostName)-
355{-
356 d->hostName = hostName;-
357}
never executed: end of block
0
358-
359-
360-
361-
362-
363-
364QString QNetworkProxy::hostName() const-
365{-
366 return
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
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-
374void 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-
384quint16 QNetworkProxy::port() const-
385{-
386 return
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
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}-
388void QNetworkProxy::setApplicationProxy(const QNetworkProxy &networkProxy)-
389{-
390 if (globalNetworkProxy()
globalNetworkProxy()Description
TRUEevaluated 2917 times by 8 tests
Evaluated 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
FALSEnever evaluated
) {
0-2917
391-
392 if (networkProxy.type() == DefaultProxy
networkProxy.t...= DefaultProxyDescription
TRUEevaluated 1607 times by 7 tests
Evaluated 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
FALSEevaluated 1310 times by 7 tests
Evaluated 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
398QNetworkProxy QNetworkProxy::applicationProxy()-
399{-
400 if (globalNetworkProxy()
globalNetworkProxy()Description
TRUEevaluated 2577 times by 19 tests
Evaluated 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
FALSEnever evaluated
)
0-2577
401 return
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
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}-
404QVariant QNetworkProxy::header(QNetworkRequest::KnownHeaders header) const-
405{-
406 if (d->type != HttpProxy
d->type != HttpProxyDescription
TRUEnever evaluated
FALSEnever evaluated
&& d->type != HttpCachingProxy
d->type != HttpCachingProxyDescription
TRUEnever evaluated
FALSEnever 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}-
410void QNetworkProxy::setHeader(QNetworkRequest::KnownHeaders header, const QVariant &value)-
411{-
412 if (d->type == HttpProxy
d->type == HttpProxyDescription
TRUEnever evaluated
FALSEnever evaluated
|| d->type == HttpCachingProxy
d->type == HttpCachingProxyDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
413 d->headers.setCookedHeader(header, value);
never executed: d->headers.setCookedHeader(header, value);
0
414}
never executed: end of block
0
415bool QNetworkProxy::hasRawHeader(const QByteArray &headerName) const-
416{-
417 if (d->type != HttpProxy
d->type != HttpProxyDescription
TRUEnever evaluated
FALSEevaluated 531 times by 7 tests
Evaluated 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 != HttpCachingProxy
d->type != HttpCachingProxyDescription
TRUEnever evaluated
FALSEnever evaluated
)
0-531
418 return
never executed: return false;
false;
never executed: return false;
0
419 return
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
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}-
421QByteArray QNetworkProxy::rawHeader(const QByteArray &headerName) const-
422{-
423 if (d->type != HttpProxy
d->type != HttpProxyDescription
TRUEnever evaluated
FALSEevaluated 13 times by 1 test
Evaluated by:
  • tst_QNetworkReply
&& d->type != HttpCachingProxy
d->type != HttpCachingProxyDescription
TRUEnever evaluated
FALSEnever 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()
it != d->heade...ers.constEnd()Description
TRUEevaluated 13 times by 1 test
Evaluated by:
  • tst_QNetworkReply
FALSEnever evaluated
)
0-13
428 return
executed 13 times by 1 test: return it->second;
Executed by:
  • tst_QNetworkReply
it->second;
executed 13 times by 1 test: return it->second;
Executed by:
  • tst_QNetworkReply
13
429 return
never executed: return QByteArray();
QByteArray();
never executed: return QByteArray();
0
430}-
431QList<QByteArray> QNetworkProxy::rawHeaderList() const-
432{-
433 if (d->type != HttpProxy
d->type != HttpProxyDescription
TRUEnever evaluated
FALSEevaluated 531 times by 7 tests
Evaluated 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 != HttpCachingProxy
d->type != HttpCachingProxyDescription
TRUEnever evaluated
FALSEnever evaluated
)
0-531
434 return
never executed: return QList<QByteArray>();
QList<QByteArray>();
never executed: return QList<QByteArray>();
0
435 return
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
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}-
437void QNetworkProxy::setRawHeader(const QByteArray &headerName, const QByteArray &headerValue)-
438{-
439 if (d->type == HttpProxy
d->type == HttpProxyDescription
TRUEevaluated 6 times by 1 test
Evaluated by:
  • tst_QNetworkReply
FALSEnever evaluated
|| d->type == HttpCachingProxy
d->type == HttpCachingProxyDescription
TRUEnever evaluated
FALSEnever evaluated
)
0-6
440 d->headers.setRawHeader(headerName, headerValue);
executed 6 times by 1 test: d->headers.setRawHeader(headerName, headerValue);
Executed by:
  • tst_QNetworkReply
6
441}
executed 6 times by 1 test: end of block
Executed by:
  • tst_QNetworkReply
6
442-
443class QNetworkProxyQueryPrivate: public QSharedData-
444{-
445public:-
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 return
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
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-
465template<> void QSharedDataPointer<QNetworkProxyQueryPrivate>::detach()-
466{-
467 if (d
dDescription
TRUEevaluated 19084 times by 29 tests
Evaluated 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
  • ...
FALSEevaluated 7249 times by 29 tests
Evaluated 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() == 1
d->ref.load() == 1Description
TRUEevaluated 19084 times by 29 tests
Evaluated 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
  • ...
FALSEnever 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 = (d
dDescription
TRUEnever evaluated
FALSEevaluated 7249 times by 29 tests
Evaluated 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 (d
dDescription
TRUEnever evaluated
FALSEevaluated 7249 times by 29 tests
Evaluated 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()
!d->ref.deref()Description
TRUEnever evaluated
FALSEnever 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
476QNetworkProxyQuery::QNetworkProxyQuery()-
477{-
478}-
479-
480-
481-
482-
483-
484-
485-
486QNetworkProxyQuery::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
491QNetworkProxyQuery::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
500QNetworkProxyQuery::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
507QNetworkProxyQuery::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
514QNetworkProxyQuery::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
525QNetworkProxyQuery::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-
539QNetworkProxyQuery::QNetworkProxyQuery(const QNetworkProxyQuery &other)-
540 : d(other.d)-
541{-
542}
never executed: end of block
0
543-
544-
545-
546-
547QNetworkProxyQuery::~QNetworkProxyQuery()-
548{-
549-
550}-
551-
552-
553-
554-
555QNetworkProxyQuery &QNetworkProxyQuery::operator=(const QNetworkProxyQuery &other)-
556{-
557 d = other.d;-
558 return
executed 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}-
560bool QNetworkProxyQuery::operator==(const QNetworkProxyQuery &other) const-
561{-
562 return
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
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}-
564QNetworkProxyQuery::QueryType QNetworkProxyQuery::queryType() const-
565{-
566 return
executed 2 times by 1 test: return d ? d->type : TcpSocket;
Executed by:
  • tst_QNetworkProxyFactory
d ? d->type : TcpSocket;
executed 2 times by 1 test: return d ? d->type : TcpSocket;
Executed by:
  • tst_QNetworkProxyFactory
2
567}-
568-
569-
570-
571-
572void QNetworkProxyQuery::setQueryType(QueryType type)-
573{-
574 d->type = type;-
575}
never executed: end of block
0
576int 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}-
580void QNetworkProxyQuery::setPeerPort(int port)-
581{-
582 d->remote.setPort(port);-
583}
never executed: end of block
0
584QString 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}-
588void 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-
599int 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}-
603void QNetworkProxyQuery::setLocalPort(int port)-
604{-
605 d->localPort = port;-
606}
never executed: end of block
0
607QString QNetworkProxyQuery::protocolTag() const-
608{-
609 return
executed 39 times by 1 test: return d ? d->remote.scheme() : QString();
Executed by:
  • tst_QNetworkProxyFactory
d ? d->remote.scheme() : QString();
executed 39 times by 1 test: return d ? d->remote.scheme() : QString();
Executed by:
  • tst_QNetworkProxyFactory
39
610}-
611void 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-
622QUrl QNetworkProxyQuery::url() const-
623{-
624 return
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
  • ...
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}-
626void QNetworkProxyQuery::setUrl(const QUrl &url)-
627{-
628 d->remote = url;-
629}
never executed: end of block
0
630-
631-
632-
633-
634-
635-
636-
637QNetworkConfiguration 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}-
641void QNetworkProxyQuery::setNetworkConfiguration(const QNetworkConfiguration &networkConfiguration)-
642{-
643 d->config = networkConfiguration;-
644}
never executed: end of block
0
645QNetworkProxyFactory::QNetworkProxyFactory()-
646{-
647}-
648-
649-
650-
651-
652QNetworkProxyFactory::~QNetworkProxyFactory()-
653{-
654}-
655void QNetworkProxyFactory::setUseSystemConfiguration(bool enable)-
656{-
657 if (enable
enableDescription
TRUEnever evaluated
FALSEnever 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}-
663void QNetworkProxyFactory::setApplicationProxyFactory(QNetworkProxyFactory *factory)-
664{-
665 if (globalNetworkProxy()
globalNetworkProxy()Description
TRUEevaluated 22 times by 3 tests
Evaluated by:
  • tst_QNetworkProxyFactory
  • tst_QTcpServer
  • tst_qtcpsocket - unknown status
FALSEnever 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
668QList<QNetworkProxy> QNetworkProxyFactory::proxyForQuery(const QNetworkProxyQuery &query)-
669{-
670 if (!globalNetworkProxy()
!globalNetworkProxy()Description
TRUEnever evaluated
FALSEevaluated 7001 times by 29 tests
Evaluated 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 return
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
  • ...
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-
680QDebug 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 case
executed 23 times by 1 test: case QNetworkProxy::NoProxy:
Executed by:
  • tst_QNetworkProxyFactory
QNetworkProxy::NoProxy:
executed 23 times by 1 test: case QNetworkProxy::NoProxy:
Executed by:
  • tst_QNetworkProxyFactory
23
687 debug << "NoProxy ";-
688 break;
executed 23 times by 1 test: break;
Executed by:
  • tst_QNetworkProxyFactory
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::TunnelingCapability
caps & QNetwor...lingCapabilityDescription
TRUEevaluated 23 times by 1 test
Evaluated by:
  • tst_QNetworkProxyFactory
FALSEnever 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); return
executed 23 times by 1 test: return qstring_literal_temp;
Executed by:
  • tst_QNetworkProxyFactory
qstring_literal_temp;
executed 23 times by 1 test: return qstring_literal_temp;
Executed by:
  • tst_QNetworkProxyFactory
}());
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; }());
Executed by:
  • tst_QNetworkProxyFactory
23
713 if (caps & QNetworkProxy::ListeningCapability
caps & QNetwor...ningCapabilityDescription
TRUEevaluated 23 times by 1 test
Evaluated by:
  • tst_QNetworkProxyFactory
FALSEnever 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); return
executed 23 times by 1 test: return qstring_literal_temp;
Executed by:
  • tst_QNetworkProxyFactory
qstring_literal_temp;
executed 23 times by 1 test: return qstring_literal_temp;
Executed by:
  • tst_QNetworkProxyFactory
}());
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; }());
Executed by:
  • tst_QNetworkProxyFactory
23
715 if (caps & QNetworkProxy::UdpTunnelingCapability
caps & QNetwor...lingCapabilityDescription
TRUEevaluated 23 times by 1 test
Evaluated by:
  • tst_QNetworkProxyFactory
FALSEnever 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); return
executed 23 times by 1 test: return qstring_literal_temp;
Executed by:
  • tst_QNetworkProxyFactory
qstring_literal_temp;
executed 23 times by 1 test: return qstring_literal_temp;
Executed by:
  • tst_QNetworkProxyFactory
}());
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; }());
Executed by:
  • tst_QNetworkProxyFactory
23
717 if (caps & QNetworkProxy::CachingCapability
caps & QNetwor...hingCapabilityDescription
TRUEnever evaluated
FALSEevaluated 23 times by 1 test
Evaluated by:
  • tst_QNetworkProxyFactory
)
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::HostNameLookupCapability
caps & QNetwor...okupCapabilityDescription
TRUEnever evaluated
FALSEevaluated 23 times by 1 test
Evaluated by:
  • tst_QNetworkProxyFactory
)
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 return
executed 23 times by 1 test: return debug;
Executed by:
  • tst_QNetworkProxyFactory
debug;
executed 23 times by 1 test: return debug;
Executed by:
  • tst_QNetworkProxyFactory
23
723}-
724-
725-
726-
Switch to Source codePreprocessed file

Generated by Squish Coco Non-Commercial 4.3.0-BETA-master-30-08-2018-4cb69e9