Line | Source | Count |
1 | | - |
2 | | - |
3 | | - |
4 | | - |
5 | | - |
6 | | - |
7 | | - |
8 | | - |
9 | | - |
10 | | - |
11 | | - |
12 | | - |
13 | | - |
14 | | - |
15 | | - |
16 | | - |
17 | | - |
18 | | - |
19 | | - |
20 | | - |
21 | | - |
22 | | - |
23 | | - |
24 | | - |
25 | | - |
26 | | - |
27 | | - |
28 | | - |
29 | | - |
30 | | - |
31 | | - |
32 | | - |
33 | | - |
34 | #include "qhttpsocketengine_p.h" | - |
35 | #include "qtcpsocket.h" | - |
36 | #include "qhostaddress.h" | - |
37 | #include "qurl.h" | - |
38 | #include "private/qhttpnetworkreply_p.h" | - |
39 | #include "private/qiodevice_p.h" | - |
40 | #include "qelapsedtimer.h" | - |
41 | #include "qnetworkinterface.h" | - |
42 | | - |
43 | #if !defined(QT_NO_NETWORKPROXY) && !defined(QT_NO_HTTP) | - |
44 | #include <qdebug.h> | - |
45 | | - |
46 | QT_BEGIN_NAMESPACE | - |
47 | | - |
48 | #define DEBUG | - |
49 | | - |
50 | QHttpSocketEngine::QHttpSocketEngine(QObject *parent) | - |
51 | : QAbstractSocketEngine(*new QHttpSocketEnginePrivate, parent) | - |
52 | { | - |
53 | }executed 375 times by 7 tests: end of block 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
| 375 |
54 | | - |
55 | QHttpSocketEngine::~QHttpSocketEngine() | - |
56 | { | - |
57 | } | - |
58 | | - |
59 | bool QHttpSocketEngine::initialize(QAbstractSocket::SocketType type, QAbstractSocket::NetworkLayerProtocol protocol) | - |
60 | { | - |
61 | Q_D(QHttpSocketEngine); | - |
62 | if (type != QAbstractSocket::TcpSocket)TRUE | never evaluated | FALSE | evaluated 375 times by 7 testsEvaluated by:- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
|
| 0-375 |
63 | return false; never executed: return false; | 0 |
64 | | - |
65 | setProtocol(protocol); | - |
66 | setSocketType(type); | - |
67 | d->socket = new QTcpSocket(this); | - |
68 | d->reply = new QHttpNetworkReply(QUrl(), this); | - |
69 | #ifndef QT_NO_BEARERMANAGEMENT | - |
70 | d->socket->setProperty("_q_networkSession", property("_q_networkSession")); | - |
71 | #endif | - |
72 | | - |
73 | | - |
74 | | - |
75 | d->socket->setProxy(QNetworkProxy::NoProxy); | - |
76 | | - |
77 | | - |
78 | connect(d->socket, SIGNAL(connected()), | - |
79 | this, SLOT(slotSocketConnected()), | - |
80 | Qt::DirectConnection); | - |
81 | connect(d->socket, SIGNAL(disconnected()), | - |
82 | this, SLOT(slotSocketDisconnected()), | - |
83 | Qt::DirectConnection); | - |
84 | connect(d->socket, SIGNAL(readyRead()), | - |
85 | this, SLOT(slotSocketReadNotification()), | - |
86 | Qt::DirectConnection); | - |
87 | connect(d->socket, SIGNAL(bytesWritten(qint64)), | - |
88 | this, SLOT(slotSocketBytesWritten()), | - |
89 | Qt::DirectConnection); | - |
90 | connect(d->socket, SIGNAL(error(QAbstractSocket::SocketError)), | - |
91 | this, SLOT(slotSocketError(QAbstractSocket::SocketError)), | - |
92 | Qt::DirectConnection); | - |
93 | connect(d->socket, SIGNAL(stateChanged(QAbstractSocket::SocketState)), | - |
94 | this, SLOT(slotSocketStateChanged(QAbstractSocket::SocketState)), | - |
95 | Qt::DirectConnection); | - |
96 | | - |
97 | return true;executed 375 times by 7 tests: return true; 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
| 375 |
98 | } | - |
99 | | - |
100 | bool QHttpSocketEngine::initialize(qintptr, QAbstractSocket::SocketState) | - |
101 | { | - |
102 | return false; never executed: return false; | 0 |
103 | } | - |
104 | | - |
105 | void QHttpSocketEngine::setProxy(const QNetworkProxy &proxy) | - |
106 | { | - |
107 | Q_D(QHttpSocketEngine); | - |
108 | d->proxy = proxy; | - |
109 | QString user = proxy.user(); | - |
110 | if (!user.isEmpty())TRUE | evaluated 6 times by 1 testEvaluated by:- tst_qhttpsocketengine - unknown status
| FALSE | evaluated 368 times by 7 testsEvaluated by:- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
|
| 6-368 |
111 | d->authenticator.setUser(user);executed 6 times by 1 test: d->authenticator.setUser(user); Executed by:- tst_qhttpsocketengine - unknown status
| 6 |
112 | QString password = proxy.password(); | - |
113 | if (!password.isEmpty())TRUE | evaluated 6 times by 1 testEvaluated by:- tst_qhttpsocketengine - unknown status
| FALSE | evaluated 368 times by 7 testsEvaluated by:- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
|
| 6-368 |
114 | d->authenticator.setPassword(password);executed 6 times by 1 test: d->authenticator.setPassword(password); Executed by:- tst_qhttpsocketengine - unknown status
| 6 |
115 | }executed 374 times by 7 tests: end of block 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
| 374 |
116 | | - |
117 | qintptr QHttpSocketEngine::socketDescriptor() const | - |
118 | { | - |
119 | Q_D(const QHttpSocketEngine); | - |
120 | return d->socket ? d->socket->socketDescriptor() : -1;executed 635 times by 7 tests: return d->socket ? d->socket->socketDescriptor() : -1; 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
TRUE | evaluated 635 times by 7 testsEvaluated by:- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| FALSE | never evaluated |
| 0-635 |
121 | } | - |
122 | | - |
123 | bool QHttpSocketEngine::isValid() const | - |
124 | { | - |
125 | Q_D(const QHttpSocketEngine); | - |
126 | return d->socket;executed 6695 times by 7 tests: return d->socket; 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
| 6695 |
127 | } | - |
128 | | - |
129 | bool QHttpSocketEngine::connectInternal() | - |
130 | { | - |
131 | Q_D(QHttpSocketEngine); | - |
132 | | - |
133 | d->credentialsSent = false; | - |
134 | | - |
135 | | - |
136 | if (d->state == Connected) {TRUE | never evaluated | FALSE | evaluated 374 times by 7 testsEvaluated by:- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
|
| 0-374 |
137 | qWarning("QHttpSocketEngine::connectToHost: called when already connected"); | - |
138 | setState(QAbstractSocket::ConnectedState); | - |
139 | return true; never executed: return true; | 0 |
140 | } | - |
141 | | - |
142 | if (d->state == ConnectSent && d->socketState != QAbstractSocket::ConnectedState)TRUE | never evaluated | FALSE | evaluated 374 times by 7 testsEvaluated by:- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
|
TRUE | never evaluated | FALSE | never evaluated |
| 0-374 |
143 | setState(QAbstractSocket::UnconnectedState); never executed: setState(QAbstractSocket::UnconnectedState); | 0 |
144 | | - |
145 | | - |
146 | if (d->state == None && d->socket->state() == QAbstractSocket::UnconnectedState) {TRUE | evaluated 374 times by 7 testsEvaluated by:- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| FALSE | never evaluated |
TRUE | evaluated 374 times by 7 testsEvaluated by:- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| FALSE | never evaluated |
| 0-374 |
147 | setState(QAbstractSocket::ConnectingState); | - |
148 | | - |
149 | d->socket->setReadBufferSize(65536); | - |
150 | d->socket->connectToHost(d->proxy.hostName(), d->proxy.port()); | - |
151 | }executed 374 times by 7 tests: end of block 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
| 374 |
152 | | - |
153 | | - |
154 | | - |
155 | if (bytesAvailable())TRUE | never evaluated | FALSE | evaluated 374 times by 7 testsEvaluated by:- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
|
| 0-374 |
156 | slotSocketReadNotification(); never executed: slotSocketReadNotification(); | 0 |
157 | | - |
158 | return d->socketState == QAbstractSocket::ConnectedState;executed 374 times by 7 tests: return d->socketState == QAbstractSocket::ConnectedState; 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
| 374 |
159 | } | - |
160 | | - |
161 | bool QHttpSocketEngine::connectToHost(const QHostAddress &address, quint16 port) | - |
162 | { | - |
163 | Q_D(QHttpSocketEngine); | - |
164 | | - |
165 | setPeerAddress(address); | - |
166 | setPeerPort(port); | - |
167 | d->peerName.clear(); | - |
168 | | - |
169 | return connectInternal();executed 49 times by 4 tests: return connectInternal(); Executed by:- tst_QNetworkReply
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qtcpsocket - unknown status
| 49 |
170 | } | - |
171 | | - |
172 | bool QHttpSocketEngine::connectToHostByName(const QString &hostname, quint16 port) | - |
173 | { | - |
174 | Q_D(QHttpSocketEngine); | - |
175 | | - |
176 | setPeerAddress(QHostAddress()); | - |
177 | setPeerPort(port); | - |
178 | d->peerName = hostname; | - |
179 | | - |
180 | return connectInternal();executed 325 times by 6 tests: return connectInternal(); Executed 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
| 325 |
181 | } | - |
182 | | - |
183 | bool QHttpSocketEngine::bind(const QHostAddress &, quint16) | - |
184 | { | - |
185 | return false; never executed: return false; | 0 |
186 | } | - |
187 | | - |
188 | bool QHttpSocketEngine::listen() | - |
189 | { | - |
190 | return false; never executed: return false; | 0 |
191 | } | - |
192 | | - |
193 | int QHttpSocketEngine::accept() | - |
194 | { | - |
195 | return 0; never executed: return 0; | 0 |
196 | } | - |
197 | | - |
198 | void QHttpSocketEngine::close() | - |
199 | { | - |
200 | Q_D(QHttpSocketEngine); | - |
201 | if (d->socket) {TRUE | evaluated 339 times by 7 testsEvaluated by:- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| FALSE | evaluated 89 times by 3 testsEvaluated by:- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qtcpsocket - unknown status
|
| 89-339 |
202 | d->socket->close(); | - |
203 | delete d->socket; | - |
204 | d->socket = 0; | - |
205 | }executed 339 times by 7 tests: end of block 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
| 339 |
206 | }executed 428 times by 7 tests: end of block 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
| 428 |
207 | | - |
208 | qint64 QHttpSocketEngine::bytesAvailable() const | - |
209 | { | - |
210 | Q_D(const QHttpSocketEngine); | - |
211 | return d->socket ? d->socket->bytesAvailable() : 0;executed 4033 times by 7 tests: return d->socket ? d->socket->bytesAvailable() : 0; 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
TRUE | evaluated 4033 times by 7 testsEvaluated by:- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| FALSE | never evaluated |
| 0-4033 |
212 | } | - |
213 | | - |
214 | qint64 QHttpSocketEngine::read(char *data, qint64 maxlen) | - |
215 | { | - |
216 | Q_D(QHttpSocketEngine); | - |
217 | qint64 bytesRead = d->socket->read(data, maxlen); | - |
218 | | - |
219 | if (d->socket->state() == QAbstractSocket::UnconnectedStateTRUE | evaluated 91 times by 3 testsEvaluated by:- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qtcpsocket - unknown status
| FALSE | evaluated 3213 times by 7 testsEvaluated by:- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
|
| 91-3213 |
220 | && d->socket->bytesAvailable() == 0) {TRUE | evaluated 91 times by 3 testsEvaluated by:- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qtcpsocket - unknown status
| FALSE | never evaluated |
| 0-91 |
221 | emitReadNotification(); | - |
222 | }executed 91 times by 3 tests: end of block Executed by:- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qtcpsocket - unknown status
| 91 |
223 | | - |
224 | if (bytesRead == -1) {TRUE | evaluated 91 times by 3 testsEvaluated by:- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qtcpsocket - unknown status
| FALSE | evaluated 3213 times by 7 testsEvaluated by:- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
|
| 91-3213 |
225 | | - |
226 | | - |
227 | | - |
228 | close(); | - |
229 | setError(QAbstractSocket::RemoteHostClosedError, | - |
230 | QLatin1String("Remote host closed")); | - |
231 | setState(QAbstractSocket::UnconnectedState); | - |
232 | return -1;executed 91 times by 3 tests: return -1; Executed by:- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qtcpsocket - unknown status
| 91 |
233 | } | - |
234 | return bytesRead;executed 3213 times by 7 tests: return bytesRead; 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
| 3213 |
235 | } | - |
236 | | - |
237 | qint64 QHttpSocketEngine::write(const char *data, qint64 len) | - |
238 | { | - |
239 | Q_D(QHttpSocketEngine); | - |
240 | return d->socket->write(data, len);executed 414 times by 7 tests: return d->socket->write(data, len); 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
| 414 |
241 | } | - |
242 | | - |
243 | #ifndef QT_NO_UDPSOCKET | - |
244 | #ifndef QT_NO_NETWORKINTERFACE | - |
245 | bool QHttpSocketEngine::joinMulticastGroup(const QHostAddress &, | - |
246 | const QNetworkInterface &) | - |
247 | { | - |
248 | setError(QAbstractSocket::UnsupportedSocketOperationError, | - |
249 | QLatin1String("Operation on socket is not supported")); | - |
250 | return false; never executed: return false; | 0 |
251 | } | - |
252 | | - |
253 | bool QHttpSocketEngine::leaveMulticastGroup(const QHostAddress &, | - |
254 | const QNetworkInterface &) | - |
255 | { | - |
256 | setError(QAbstractSocket::UnsupportedSocketOperationError, | - |
257 | QLatin1String("Operation on socket is not supported")); | - |
258 | return false; never executed: return false; | 0 |
259 | } | - |
260 | | - |
261 | QNetworkInterface QHttpSocketEngine::multicastInterface() const | - |
262 | { | - |
263 | return QNetworkInterface(); never executed: return QNetworkInterface(); | 0 |
264 | } | - |
265 | | - |
266 | bool QHttpSocketEngine::setMulticastInterface(const QNetworkInterface &) | - |
267 | { | - |
268 | setError(QAbstractSocket::UnsupportedSocketOperationError, | - |
269 | QLatin1String("Operation on socket is not supported")); | - |
270 | return false; never executed: return false; | 0 |
271 | } | - |
272 | #endif // QT_NO_NETWORKINTERFACE | - |
273 | | - |
274 | qint64 QHttpSocketEngine::readDatagram(char *, qint64, QIpPacketHeader *, PacketHeaderOptions) | - |
275 | { | - |
276 | return 0; never executed: return 0; | 0 |
277 | } | - |
278 | | - |
279 | qint64 QHttpSocketEngine::writeDatagram(const char *, qint64, const QIpPacketHeader &) | - |
280 | { | - |
281 | return 0; never executed: return 0; | 0 |
282 | } | - |
283 | | - |
284 | bool QHttpSocketEngine::hasPendingDatagrams() const | - |
285 | { | - |
286 | return false;executed 1 time by 1 test: return false; Executed by:- tst_qhttpsocketengine - unknown status
| 1 |
287 | } | - |
288 | | - |
289 | qint64 QHttpSocketEngine::pendingDatagramSize() const | - |
290 | { | - |
291 | return 0; never executed: return 0; | 0 |
292 | } | - |
293 | #endif // QT_NO_UDPSOCKET | - |
294 | | - |
295 | qint64 QHttpSocketEngine::bytesToWrite() const | - |
296 | { | - |
297 | Q_D(const QHttpSocketEngine); | - |
298 | if (d->socket) {TRUE | evaluated 4557 times by 7 testsEvaluated by:- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| FALSE | never evaluated |
| 0-4557 |
299 | return d->socket->bytesToWrite();executed 4557 times by 7 tests: return d->socket->bytesToWrite(); 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
| 4557 |
300 | } else { | - |
301 | return 0; never executed: return 0; | 0 |
302 | } | - |
303 | } | - |
304 | | - |
305 | int QHttpSocketEngine::option(SocketOption option) const | - |
306 | { | - |
307 | Q_D(const QHttpSocketEngine); | - |
308 | if (d->socket) {TRUE | never evaluated | FALSE | never evaluated |
| 0 |
309 | | - |
310 | if (option == QAbstractSocketEngine::LowDelayOption)TRUE | never evaluated | FALSE | never evaluated |
| 0 |
311 | return d->socket->socketOption(QAbstractSocket::LowDelayOption).toInt(); never executed: return d->socket->socketOption(QAbstractSocket::LowDelayOption).toInt(); | 0 |
312 | if (option == QAbstractSocketEngine::KeepAliveOption)TRUE | never evaluated | FALSE | never evaluated |
| 0 |
313 | return d->socket->socketOption(QAbstractSocket::KeepAliveOption).toInt(); never executed: return d->socket->socketOption(QAbstractSocket::KeepAliveOption).toInt(); | 0 |
314 | } never executed: end of block | 0 |
315 | return -1; never executed: return -1; | 0 |
316 | } | - |
317 | | - |
318 | bool QHttpSocketEngine::setOption(SocketOption option, int value) | - |
319 | { | - |
320 | Q_D(QHttpSocketEngine); | - |
321 | if (d->socket) {TRUE | evaluated 19 times by 2 testsEvaluated by:- tst_QNetworkReply
- tst_Spdy
| FALSE | never evaluated |
| 0-19 |
322 | | - |
323 | if (option == QAbstractSocketEngine::LowDelayOption)TRUE | never evaluated | FALSE | evaluated 19 times by 2 testsEvaluated by:- tst_QNetworkReply
- tst_Spdy
|
| 0-19 |
324 | d->socket->setSocketOption(QAbstractSocket::LowDelayOption, value); never executed: d->socket->setSocketOption(QAbstractSocket::LowDelayOption, value); | 0 |
325 | if (option == QAbstractSocketEngine::KeepAliveOption)TRUE | evaluated 19 times by 2 testsEvaluated by:- tst_QNetworkReply
- tst_Spdy
| FALSE | never evaluated |
| 0-19 |
326 | d->socket->setSocketOption(QAbstractSocket::KeepAliveOption, value);executed 19 times by 2 tests: d->socket->setSocketOption(QAbstractSocket::KeepAliveOption, value); Executed by:- tst_QNetworkReply
- tst_Spdy
| 19 |
327 | return true;executed 19 times by 2 tests: return true; Executed by:- tst_QNetworkReply
- tst_Spdy
| 19 |
328 | } | - |
329 | return false; never executed: return false; | 0 |
330 | } | - |
331 | | - |
332 | bool QHttpSocketEngine::waitForRead(int msecs, bool *timedOut) | - |
333 | { | - |
334 | Q_D(const QHttpSocketEngine); | - |
335 | | - |
336 | if (!d->socket || d->socket->state() == QAbstractSocket::UnconnectedState)TRUE | never evaluated | FALSE | evaluated 387 times by 5 testsEvaluated by:- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
|
TRUE | never evaluated | FALSE | evaluated 387 times by 5 testsEvaluated by:- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
|
| 0-387 |
337 | return false; never executed: return false; | 0 |
338 | | - |
339 | QElapsedTimer stopWatch; | - |
340 | stopWatch.start(); | - |
341 | | - |
342 | | - |
343 | if (!d->socket->bytesAvailable()) {TRUE | evaluated 375 times by 5 testsEvaluated by:- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| FALSE | evaluated 12 times by 2 testsEvaluated by:- tst_qhttpsocketengine - unknown status
- tst_qtcpsocket - unknown status
|
| 12-375 |
344 | if (!d->socket->waitForReadyRead(qt_subtract_from_timeout(msecs, stopWatch.elapsed()))) {TRUE | evaluated 54 times by 4 testsEvaluated by:- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| FALSE | evaluated 321 times by 5 testsEvaluated by:- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
|
| 54-321 |
345 | if (d->socket->state() == QAbstractSocket::UnconnectedState)TRUE | evaluated 42 times by 3 testsEvaluated by:- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qtcpsocket - unknown status
| FALSE | evaluated 12 times by 3 testsEvaluated by:- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
|
| 12-42 |
346 | return true;executed 42 times by 3 tests: return true; Executed by:- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qtcpsocket - unknown status
| 42 |
347 | setError(d->socket->error(), d->socket->errorString()); | - |
348 | if (timedOut && d->socket->error() == QAbstractSocket::SocketTimeoutError)TRUE | never evaluated | FALSE | evaluated 12 times by 3 testsEvaluated by:- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
|
TRUE | never evaluated | FALSE | never evaluated |
| 0-12 |
349 | *timedOut = true; never executed: *timedOut = true; | 0 |
350 | return false;executed 12 times by 3 tests: return false; Executed by:- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| 12 |
351 | } | - |
352 | }executed 321 times by 5 tests: end of block Executed by:- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| 321 |
353 | | - |
354 | | - |
355 | | - |
356 | while (d->state != Connected && d->socket->waitForReadyRead(qt_subtract_from_timeout(msecs, stopWatch.elapsed()))) {TRUE | never evaluated | FALSE | evaluated 333 times by 5 testsEvaluated by:- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
|
TRUE | never evaluated | FALSE | never evaluated |
| 0-333 |
357 | | - |
358 | } never executed: end of block | 0 |
359 | | - |
360 | | - |
361 | if (d->state != Connected) {TRUE | never evaluated | FALSE | evaluated 333 times by 5 testsEvaluated by:- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
|
| 0-333 |
362 | setError(d->socket->error(), d->socket->errorString()); | - |
363 | if (timedOut && d->socket->error() == QAbstractSocket::SocketTimeoutError)TRUE | never evaluated | FALSE | never evaluated |
TRUE | never evaluated | FALSE | never evaluated |
| 0 |
364 | *timedOut = true; never executed: *timedOut = true; | 0 |
365 | return false; never executed: return false; | 0 |
366 | } | - |
367 | return true;executed 333 times by 5 tests: return true; Executed by:- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| 333 |
368 | } | - |
369 | | - |
370 | bool QHttpSocketEngine::waitForWrite(int msecs, bool *timedOut) | - |
371 | { | - |
372 | Q_D(const QHttpSocketEngine); | - |
373 | | - |
374 | | - |
375 | if (d->state == Connected) {TRUE | evaluated 272 times by 4 testsEvaluated by:- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| FALSE | evaluated 223 times by 5 testsEvaluated by:- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
|
| 223-272 |
376 | if (d->socket->bytesToWrite()) {TRUE | evaluated 4 times by 1 testEvaluated by:- tst_qsslsocket - unknown status
| FALSE | evaluated 268 times by 4 testsEvaluated by:- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
|
| 4-268 |
377 | if (!d->socket->waitForBytesWritten(msecs)) {TRUE | never evaluated | FALSE | evaluated 4 times by 1 testEvaluated by:- tst_qsslsocket - unknown status
|
| 0-4 |
378 | if (d->socket->error() == QAbstractSocket::SocketTimeoutError && timedOut)TRUE | never evaluated | FALSE | never evaluated |
TRUE | never evaluated | FALSE | never evaluated |
| 0 |
379 | *timedOut = true; never executed: *timedOut = true; | 0 |
380 | return false; never executed: return false; | 0 |
381 | } | - |
382 | }executed 4 times by 1 test: end of block Executed by:- tst_qsslsocket - unknown status
| 4 |
383 | return true;executed 272 times by 4 tests: return true; Executed by:- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| 272 |
384 | } | - |
385 | | - |
386 | QElapsedTimer stopWatch; | - |
387 | stopWatch.start(); | - |
388 | | - |
389 | | - |
390 | | - |
391 | | - |
392 | while (d->state != Connected && d->socket->waitForReadyRead(qt_subtract_from_timeout(msecs, stopWatch.elapsed()))) {TRUE | evaluated 398 times by 5 testsEvaluated by:- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| FALSE | evaluated 204 times by 5 testsEvaluated by:- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
|
TRUE | evaluated 379 times by 5 testsEvaluated by:- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| FALSE | evaluated 19 times by 3 testsEvaluated by:- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qtcpsocket - unknown status
|
| 19-398 |
393 | | - |
394 | }executed 379 times by 5 tests: end of block Executed by:- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| 379 |
395 | | - |
396 | | - |
397 | if (d->state != Connected) {TRUE | evaluated 19 times by 3 testsEvaluated by:- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qtcpsocket - unknown status
| FALSE | evaluated 204 times by 5 testsEvaluated by:- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
|
| 19-204 |
398 | | - |
399 | if (timedOut && d->socket->error() == QAbstractSocket::SocketTimeoutError)TRUE | evaluated 18 times by 2 testsEvaluated by:- tst_qsslsocket - unknown status
- tst_qtcpsocket - unknown status
| FALSE | evaluated 1 time by 1 testEvaluated by:- tst_qhttpsocketengine - unknown status
|
TRUE | evaluated 8 times by 1 testEvaluated by:- tst_qtcpsocket - unknown status
| FALSE | evaluated 10 times by 2 testsEvaluated by:- tst_qsslsocket - unknown status
- tst_qtcpsocket - unknown status
|
| 1-18 |
400 | *timedOut = true;executed 8 times by 1 test: *timedOut = true; Executed by:- tst_qtcpsocket - unknown status
| 8 |
401 | }executed 19 times by 3 tests: end of block Executed by:- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qtcpsocket - unknown status
| 19 |
402 | | - |
403 | return true;executed 223 times by 5 tests: return true; Executed by:- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| 223 |
404 | } | - |
405 | | - |
406 | bool QHttpSocketEngine::waitForReadOrWrite(bool *readyToRead, bool *readyToWrite, | - |
407 | bool checkRead, bool checkWrite, | - |
408 | int msecs, bool *timedOut) | - |
409 | { | - |
410 | Q_UNUSED(checkRead); | - |
411 | | - |
412 | if (!checkWrite) {TRUE | evaluated 381 times by 4 testsEvaluated by:- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| FALSE | evaluated 272 times by 4 testsEvaluated by:- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
|
| 272-381 |
413 | | - |
414 | bool canRead = waitForRead(msecs, timedOut); | - |
415 | if (readyToRead)TRUE | evaluated 381 times by 4 testsEvaluated by:- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| FALSE | never evaluated |
| 0-381 |
416 | *readyToRead = canRead;executed 381 times by 4 tests: *readyToRead = canRead; Executed by:- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| 381 |
417 | return canRead;executed 381 times by 4 tests: return canRead; Executed by:- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| 381 |
418 | } | - |
419 | | - |
420 | | - |
421 | bool canWrite = waitForWrite(msecs, timedOut); | - |
422 | if (readyToWrite)TRUE | evaluated 272 times by 4 testsEvaluated by:- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| FALSE | never evaluated |
| 0-272 |
423 | *readyToWrite = canWrite;executed 272 times by 4 tests: *readyToWrite = canWrite; Executed by:- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| 272 |
424 | return canWrite;executed 272 times by 4 tests: return canWrite; Executed by:- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| 272 |
425 | } | - |
426 | | - |
427 | bool QHttpSocketEngine::isReadNotificationEnabled() const | - |
428 | { | - |
429 | Q_D(const QHttpSocketEngine); | - |
430 | return d->readNotificationEnabled;executed 6315 times by 7 tests: return d->readNotificationEnabled; 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
| 6315 |
431 | } | - |
432 | | - |
433 | void QHttpSocketEngine::setReadNotificationEnabled(bool enable) | - |
434 | { | - |
435 | Q_D(QHttpSocketEngine); | - |
436 | if (d->readNotificationEnabled == enable)TRUE | evaluated 3876 times by 7 testsEvaluated by:- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| FALSE | evaluated 623 times by 7 testsEvaluated by:- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
|
| 623-3876 |
437 | return;executed 3876 times by 7 tests: return; 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
| 3876 |
438 | | - |
439 | d->readNotificationEnabled = enable; | - |
440 | if (enable) {TRUE | evaluated 356 times by 7 testsEvaluated by:- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| FALSE | evaluated 267 times by 7 testsEvaluated by:- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
|
| 267-356 |
441 | | - |
442 | if (bytesAvailable()) {TRUE | evaluated 21 times by 1 testEvaluated by:- tst_qtcpsocket - unknown status
| FALSE | evaluated 335 times by 7 testsEvaluated by:- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
|
| 21-335 |
443 | slotSocketReadNotification(); | - |
444 | } else if (d->socket && d->socket->state() == QAbstractSocket::UnconnectedState) {executed 21 times by 1 test: end of block Executed by:- tst_qtcpsocket - unknown status
TRUE | evaluated 335 times by 7 testsEvaluated by:- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| FALSE | never evaluated |
TRUE | evaluated 1 time by 1 testEvaluated by:- tst_qhttpsocketengine - unknown status
| FALSE | evaluated 334 times by 7 testsEvaluated by:- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
|
| 0-335 |
445 | emitReadNotification(); | - |
446 | }executed 1 time by 1 test: end of block Executed by:- tst_qhttpsocketengine - unknown status
| 1 |
447 | }executed 356 times by 7 tests: end of block 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
| 356 |
448 | }executed 623 times by 7 tests: end of block 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
| 623 |
449 | | - |
450 | bool QHttpSocketEngine::isWriteNotificationEnabled() const | - |
451 | { | - |
452 | Q_D(const QHttpSocketEngine); | - |
453 | return d->writeNotificationEnabled;executed 1121 times by 7 tests: return d->writeNotificationEnabled; 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
| 1121 |
454 | } | - |
455 | | - |
456 | void QHttpSocketEngine::setWriteNotificationEnabled(bool enable) | - |
457 | { | - |
458 | Q_D(QHttpSocketEngine); | - |
459 | d->writeNotificationEnabled = enable; | - |
460 | if (enable && d->state == Connected && d->socket->state() == QAbstractSocket::ConnectedState)TRUE | evaluated 1496 times by 7 testsEvaluated by:- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| FALSE | evaluated 222 times by 5 testsEvaluated by:- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qtcpsocket - unknown status
|
TRUE | evaluated 1382 times by 7 testsEvaluated by:- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| FALSE | evaluated 114 times by 4 testsEvaluated by:- tst_QNetworkReply
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qtcpsocket - unknown status
|
TRUE | evaluated 1382 times by 7 testsEvaluated by:- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| FALSE | never evaluated |
| 0-1496 |
461 | QMetaObject::invokeMethod(this, "writeNotification", Qt::QueuedConnection);executed 1382 times by 7 tests: QMetaObject::invokeMethod(this, "writeNotification", Qt::QueuedConnection); 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
| 1382 |
462 | }executed 1718 times by 7 tests: end of block 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
| 1718 |
463 | | - |
464 | bool QHttpSocketEngine::isExceptionNotificationEnabled() const | - |
465 | { | - |
466 | Q_D(const QHttpSocketEngine); | - |
467 | return d->exceptNotificationEnabled;executed 39 times by 3 tests: return d->exceptNotificationEnabled; Executed by:- tst_QNetworkReply
- tst_Spdy
- tst_qsslsocket - unknown status
| 39 |
468 | } | - |
469 | | - |
470 | void QHttpSocketEngine::setExceptionNotificationEnabled(bool enable) | - |
471 | { | - |
472 | Q_D(QHttpSocketEngine); | - |
473 | d->exceptNotificationEnabled = enable; | - |
474 | }executed 78 times by 3 tests: end of block Executed by:- tst_QNetworkReply
- tst_Spdy
- tst_qsslsocket - unknown status
| 78 |
475 | | - |
476 | void QHttpSocketEngine::slotSocketConnected() | - |
477 | { | - |
478 | Q_D(QHttpSocketEngine); | - |
479 | | - |
480 | | - |
481 | const char method[] = "CONNECT"; | - |
482 | QByteArray peerAddress = d->peerName.isEmpty() ?TRUE | evaluated 49 times by 4 testsEvaluated by:- tst_QNetworkReply
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qtcpsocket - unknown status
| FALSE | evaluated 481 times by 6 testsEvaluated by:- tst_QNetworkReply
- tst_Spdy
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
|
| 49-481 |
483 | d->peerAddress.toString().toLatin1() : | - |
484 | QUrl::toAce(d->peerName); | - |
485 | QByteArray path = peerAddress + ':' + QByteArray::number(d->peerPort); | - |
486 | QByteArray data = method; | - |
487 | data += ' '; | - |
488 | data += path; | - |
489 | data += " HTTP/1.1\r\n"; | - |
490 | data += "Proxy-Connection: keep-alive\r\n"; | - |
491 | data += "Host: " + peerAddress + "\r\n"; | - |
492 | if (!d->proxy.hasRawHeader("User-Agent"))TRUE | evaluated 517 times by 7 testsEvaluated by:- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| FALSE | evaluated 13 times by 1 test |
| 13-517 |
493 | data += "User-Agent: Mozilla/5.0\r\n";executed 517 times by 7 tests: data += "User-Agent: Mozilla/5.0\r\n"; 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
| 517 |
494 | foreach (const QByteArray &header, d->proxy.rawHeaderList()) { | - |
495 | data += header + ": " + d->proxy.rawHeader(header) + "\r\n"; | - |
496 | }executed 13 times by 1 test: end of block | 13 |
497 | QAuthenticatorPrivate *priv = QAuthenticatorPrivate::getPrivate(d->authenticator); | - |
498 | | - |
499 | if (priv && priv->method != QAuthenticatorPrivate::None) {TRUE | evaluated 173 times by 7 testsEvaluated by:- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| FALSE | evaluated 357 times by 7 testsEvaluated by:- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
|
TRUE | evaluated 167 times by 7 testsEvaluated by:- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| FALSE | evaluated 6 times by 1 testEvaluated by:- tst_qhttpsocketengine - unknown status
|
| 6-357 |
500 | d->credentialsSent = true; | - |
501 | data += "Proxy-Authorization: " + priv->calculateResponse(method, path); | - |
502 | data += "\r\n"; | - |
503 | }executed 167 times by 7 tests: end of block 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
| 167 |
504 | data += "\r\n"; | - |
505 | | - |
506 | | - |
507 | | - |
508 | d->socket->write(data); | - |
509 | d->state = ConnectSent; | - |
510 | }executed 530 times by 7 tests: end of block 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
| 530 |
511 | | - |
512 | void QHttpSocketEngine::slotSocketDisconnected() | - |
513 | { | - |
514 | } | - |
515 | | - |
516 | void QHttpSocketEngine::slotSocketReadNotification() | - |
517 | { | - |
518 | Q_D(QHttpSocketEngine); | - |
519 | if (d->state != Connected && d->socket->bytesAvailable() == 0)TRUE | evaluated 611 times by 7 testsEvaluated by:- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| FALSE | evaluated 3216 times by 7 testsEvaluated by:- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
|
TRUE | never evaluated | FALSE | evaluated 611 times by 7 testsEvaluated by:- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
|
| 0-3216 |
520 | return; never executed: return; | 0 |
521 | | - |
522 | if (d->state == Connected) {TRUE | evaluated 3216 times by 7 testsEvaluated by:- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| FALSE | evaluated 611 times by 7 testsEvaluated by:- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
|
| 611-3216 |
523 | | - |
524 | if (d->readNotificationEnabled)TRUE | evaluated 3190 times by 7 testsEvaluated by:- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| FALSE | evaluated 26 times by 3 testsEvaluated by:- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qtcpsocket - unknown status
|
| 26-3190 |
525 | emitReadNotification();executed 3190 times by 7 tests: emitReadNotification(); 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
| 3190 |
526 | return;executed 3216 times by 7 tests: return; 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
| 3216 |
527 | } | - |
528 | | - |
529 | if (d->state == ConnectSent) {TRUE | evaluated 511 times by 7 testsEvaluated by:- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| FALSE | evaluated 100 times by 7 testsEvaluated by:- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
|
| 100-511 |
530 | d->reply->d_func()->state = QHttpNetworkReplyPrivate::NothingDoneState; | - |
531 | d->state = ReadResponseHeader; | - |
532 | }executed 511 times by 7 tests: end of block 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
| 511 |
533 | | - |
534 | if (d->state == ReadResponseHeader) {TRUE | evaluated 511 times by 7 testsEvaluated by:- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| FALSE | evaluated 100 times by 7 testsEvaluated by:- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
|
| 100-511 |
535 | bool ok = readHttpHeader(); | - |
536 | if (!ok) {TRUE | evaluated 2 times by 1 testEvaluated by:- tst_qhttpsocketengine - unknown status
| FALSE | evaluated 509 times by 7 testsEvaluated by:- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
|
| 2-509 |
537 | | - |
538 | d->socket->close(); | - |
539 | setState(QAbstractSocket::UnconnectedState); | - |
540 | setError(QAbstractSocket::ProxyProtocolError, tr("Did not receive HTTP response from proxy")); | - |
541 | emitConnectionNotification(); | - |
542 | return;executed 2 times by 1 test: return; Executed by:- tst_qhttpsocketengine - unknown status
| 2 |
543 | } | - |
544 | if (d->state == ReadResponseHeader)TRUE | never evaluated | FALSE | evaluated 509 times by 7 testsEvaluated by:- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
|
| 0-509 |
545 | return; never executed: return; | 0 |
546 | }executed 509 times by 7 tests: end of block 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
| 509 |
547 | | - |
548 | if (d->state == ReadResponseContent) {TRUE | evaluated 609 times by 7 testsEvaluated by:- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| FALSE | never evaluated |
| 0-609 |
549 | char dummybuffer[4096]; | - |
550 | while (d->pendingResponseData) {TRUE | evaluated 380 times by 7 testsEvaluated by:- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| FALSE | evaluated 509 times by 7 testsEvaluated by:- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
|
| 380-509 |
551 | int read = d->socket->read(dummybuffer, qMin(sizeof(dummybuffer), (size_t)d->pendingResponseData)); | - |
552 | if (read == 0)TRUE | evaluated 100 times by 7 testsEvaluated by:- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| FALSE | evaluated 280 times by 7 testsEvaluated by:- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
|
| 100-280 |
553 | return;executed 100 times by 7 tests: return; 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
| 100 |
554 | if (read == -1) {TRUE | never evaluated | FALSE | evaluated 280 times by 7 testsEvaluated by:- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
|
| 0-280 |
555 | d->socket->disconnectFromHost(); | - |
556 | emitWriteNotification(); | - |
557 | return; never executed: return; | 0 |
558 | } | - |
559 | d->pendingResponseData -= read; | - |
560 | }executed 280 times by 7 tests: end of block 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
| 280 |
561 | if (d->pendingResponseData > 0)TRUE | never evaluated | FALSE | evaluated 509 times by 7 testsEvaluated by:- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
|
| 0-509 |
562 | return; never executed: return; | 0 |
563 | if (d->reply->d_func()->statusCode == 407)TRUE | evaluated 175 times by 7 testsEvaluated by:- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| FALSE | evaluated 334 times by 7 testsEvaluated by:- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
|
| 175-334 |
564 | d->state = SendAuthentication;executed 175 times by 7 tests: d->state = SendAuthentication; 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
| 175 |
565 | }executed 509 times by 7 tests: end of block 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
| 509 |
566 | | - |
567 | int statusCode = d->reply->statusCode(); | - |
568 | QAuthenticatorPrivate *priv = 0; | - |
569 | if (statusCode == 200) {TRUE | evaluated 312 times by 7 testsEvaluated by:- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| FALSE | evaluated 197 times by 7 testsEvaluated by:- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
|
| 197-312 |
570 | d->state = Connected; | - |
571 | setLocalAddress(d->socket->localAddress()); | - |
572 | setLocalPort(d->socket->localPort()); | - |
573 | setState(QAbstractSocket::ConnectedState); | - |
574 | d->authenticator.detach(); | - |
575 | priv = QAuthenticatorPrivate::getPrivate(d->authenticator); | - |
576 | priv->hasFailed = false; | - |
577 | } else if (statusCode == 407) {executed 312 times by 7 tests: end of block 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
TRUE | evaluated 175 times by 7 testsEvaluated by:- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| FALSE | evaluated 22 times by 2 testsEvaluated by:- tst_qhttpsocketengine - unknown status
- tst_qtcpsocket - unknown status
|
| 22-312 |
578 | if (d->authenticator.isNull())TRUE | evaluated 165 times by 6 testsEvaluated by:- tst_QNetworkReply
- tst_Spdy
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| FALSE | evaluated 10 times by 2 testsEvaluated by:- tst_QNetworkReply
- tst_qhttpsocketengine - unknown status
|
| 10-165 |
579 | d->authenticator.detach();executed 165 times by 6 tests: d->authenticator.detach(); Executed 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
| 165 |
580 | priv = QAuthenticatorPrivate::getPrivate(d->authenticator); | - |
581 | | - |
582 | if (d->credentialsSent && priv->phase != QAuthenticatorPrivate::Phase2) {TRUE | evaluated 5 times by 2 testsEvaluated by:- tst_QNetworkReply
- tst_qhttpsocketengine - unknown status
| FALSE | evaluated 170 times by 7 testsEvaluated by:- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
|
TRUE | evaluated 5 times by 2 testsEvaluated by:- tst_QNetworkReply
- tst_qhttpsocketengine - unknown status
| FALSE | never evaluated |
| 0-170 |
583 | | - |
584 | | - |
585 | d->authenticator = QAuthenticator(); | - |
586 | d->authenticator.detach(); | - |
587 | priv = QAuthenticatorPrivate::getPrivate(d->authenticator); | - |
588 | priv->hasFailed = true; | - |
589 | }executed 5 times by 2 tests: end of block Executed by:- tst_QNetworkReply
- tst_qhttpsocketengine - unknown status
| 5 |
590 | | - |
591 | priv->parseHttpResponse(d->reply->header(), true); | - |
592 | | - |
593 | if (priv->phase == QAuthenticatorPrivate::Invalid) {TRUE | evaluated 2 times by 1 testEvaluated by:- tst_qhttpsocketengine - unknown status
| FALSE | evaluated 173 times by 7 testsEvaluated by:- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
|
| 2-173 |
594 | | - |
595 | d->socket->close(); | - |
596 | setState(QAbstractSocket::UnconnectedState); | - |
597 | setError(QAbstractSocket::ProxyProtocolError, tr("Error parsing authentication request from proxy")); | - |
598 | emitConnectionNotification(); | - |
599 | return;executed 2 times by 1 test: return; Executed by:- tst_qhttpsocketengine - unknown status
| 2 |
600 | } | - |
601 | | - |
602 | bool willClose; | - |
603 | QByteArray proxyConnectionHeader = d->reply->headerField("Proxy-Connection"); | - |
604 | | - |
605 | | - |
606 | if (proxyConnectionHeader.isEmpty())TRUE | evaluated 3 times by 1 testEvaluated by:- tst_qhttpsocketengine - unknown status
| FALSE | evaluated 170 times by 7 testsEvaluated by:- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
|
| 3-170 |
607 | proxyConnectionHeader = d->reply->headerField("Connection");executed 3 times by 1 test: proxyConnectionHeader = d->reply->headerField("Connection"); Executed by:- tst_qhttpsocketengine - unknown status
| 3 |
608 | proxyConnectionHeader = proxyConnectionHeader.toLower(); | - |
609 | if (proxyConnectionHeader == "close") {TRUE | evaluated 169 times by 7 testsEvaluated by:- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| FALSE | evaluated 4 times by 1 testEvaluated by:- tst_qhttpsocketengine - unknown status
|
| 4-169 |
610 | willClose = true; | - |
611 | } else if (proxyConnectionHeader == "keep-alive") {executed 169 times by 7 tests: end of block 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
TRUE | evaluated 1 time by 1 testEvaluated by:- tst_qhttpsocketengine - unknown status
| FALSE | evaluated 3 times by 1 testEvaluated by:- tst_qhttpsocketengine - unknown status
|
| 1-169 |
612 | willClose = false; | - |
613 | } else {executed 1 time by 1 test: end of block Executed by:- tst_qhttpsocketengine - unknown status
| 1 |
614 | | - |
615 | | - |
616 | | - |
617 | willClose = (d->reply->majorVersion() * 0x100 + d->reply->minorVersion()) <= 0x0100; | - |
618 | }executed 3 times by 1 test: end of block Executed by:- tst_qhttpsocketengine - unknown status
| 3 |
619 | | - |
620 | if (willClose) {TRUE | evaluated 172 times by 7 testsEvaluated by:- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| FALSE | evaluated 1 time by 1 testEvaluated by:- tst_qhttpsocketengine - unknown status
|
| 1-172 |
621 | | - |
622 | | - |
623 | d->socket->disconnectFromHost(); | - |
624 | d->socket->readAll(); | - |
625 | | - |
626 | delete d->reply; | - |
627 | d->reply = new QHttpNetworkReply; | - |
628 | }executed 172 times by 7 tests: end of block 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
| 172 |
629 | | - |
630 | if (priv->phase == QAuthenticatorPrivate::Done)TRUE | evaluated 170 times by 7 testsEvaluated by:- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| FALSE | evaluated 3 times by 1 testEvaluated by:- tst_qhttpsocketengine - unknown status
|
| 3-170 |
631 | emit proxyAuthenticationRequired(d->proxy, &d->authenticator);executed 170 times by 7 tests: proxyAuthenticationRequired(d->proxy, &d->authenticator); 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
| 170 |
632 | | - |
633 | if (priv->phase == QAuthenticatorPrivate::Done) {TRUE | evaluated 6 times by 3 testsEvaluated by:- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
| FALSE | evaluated 167 times by 7 testsEvaluated by:- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
|
| 6-167 |
634 | setError(QAbstractSocket::ProxyAuthenticationRequiredError, tr("Authentication required")); | - |
635 | d->socket->disconnectFromHost(); | - |
636 | } else {executed 6 times by 3 tests: end of block Executed by:- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
| 6 |
637 | | - |
638 | d->state = SendAuthentication; | - |
639 | if (willClose) {TRUE | evaluated 166 times by 7 testsEvaluated by:- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| FALSE | evaluated 1 time by 1 testEvaluated by:- tst_qhttpsocketengine - unknown status
|
| 1-166 |
640 | d->socket->connectToHost(d->proxy.hostName(), d->proxy.port()); | - |
641 | } else {executed 166 times by 7 tests: end of block 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
| 166 |
642 | | - |
643 | slotSocketConnected(); | - |
644 | }executed 1 time by 1 test: end of block Executed by:- tst_qhttpsocketengine - unknown status
| 1 |
645 | return;executed 167 times by 7 tests: return; 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
| 167 |
646 | } | - |
647 | } else { | - |
648 | d->socket->close(); | - |
649 | setState(QAbstractSocket::UnconnectedState); | - |
650 | if (statusCode == 403 || statusCode == 405) {TRUE | evaluated 3 times by 1 testEvaluated by:- tst_qhttpsocketengine - unknown status
| FALSE | evaluated 19 times by 2 testsEvaluated by:- tst_qhttpsocketengine - unknown status
- tst_qtcpsocket - unknown status
|
TRUE | evaluated 2 times by 1 testEvaluated by:- tst_qhttpsocketengine - unknown status
| FALSE | evaluated 17 times by 2 testsEvaluated by:- tst_qhttpsocketengine - unknown status
- tst_qtcpsocket - unknown status
|
| 2-19 |
651 | | - |
652 | | - |
653 | setError(QAbstractSocket::SocketAccessError, tr("Proxy denied connection")); | - |
654 | } else if (statusCode == 404) {executed 5 times by 1 test: end of block Executed by:- tst_qhttpsocketengine - unknown status
TRUE | evaluated 10 times by 2 testsEvaluated by:- tst_qhttpsocketengine - unknown status
- tst_qtcpsocket - unknown status
| FALSE | evaluated 7 times by 2 testsEvaluated by:- tst_qhttpsocketengine - unknown status
- tst_qtcpsocket - unknown status
|
| 5-10 |
655 | | - |
656 | setError(QAbstractSocket::HostNotFoundError, QAbstractSocket::tr("Host not found")); | - |
657 | } else if (statusCode == 503) {executed 10 times by 2 tests: end of block Executed by:- tst_qhttpsocketengine - unknown status
- tst_qtcpsocket - unknown status
TRUE | evaluated 6 times by 2 testsEvaluated by:- tst_qhttpsocketengine - unknown status
- tst_qtcpsocket - unknown status
| FALSE | evaluated 1 time by 1 testEvaluated by:- tst_qhttpsocketengine - unknown status
|
| 1-10 |
658 | | - |
659 | setError(QAbstractSocket::ConnectionRefusedError, QAbstractSocket::tr("Connection refused")); | - |
660 | } else {executed 6 times by 2 tests: end of block Executed by:- tst_qhttpsocketengine - unknown status
- tst_qtcpsocket - unknown status
| 6 |
661 | | - |
662 | | - |
663 | setError(QAbstractSocket::ProxyProtocolError, tr("Error communicating with HTTP proxy")); | - |
664 | }executed 1 time by 1 test: end of block Executed by:- tst_qhttpsocketengine - unknown status
| 1 |
665 | } | - |
666 | | - |
667 | | - |
668 | emitConnectionNotification(); | - |
669 | }executed 340 times by 7 tests: end of block 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
| 340 |
670 | | - |
671 | bool QHttpSocketEngine::readHttpHeader() | - |
672 | { | - |
673 | Q_D(QHttpSocketEngine); | - |
674 | | - |
675 | if (d->state != ReadResponseHeader)TRUE | never evaluated | FALSE | evaluated 511 times by 7 testsEvaluated by:- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
|
| 0-511 |
676 | return false; never executed: return false; | 0 |
677 | | - |
678 | bool ok = true; | - |
679 | if (d->reply->d_func()->state == QHttpNetworkReplyPrivate::NothingDoneState) {TRUE | evaluated 511 times by 7 testsEvaluated by:- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| FALSE | never evaluated |
| 0-511 |
680 | | - |
681 | d->reply->d_func()->clearHttpLayerInformation(); | - |
682 | d->reply->d_func()->state = QHttpNetworkReplyPrivate::ReadingStatusState; | - |
683 | }executed 511 times by 7 tests: end of block 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
| 511 |
684 | if (d->reply->d_func()->state == QHttpNetworkReplyPrivate::ReadingStatusState) {TRUE | evaluated 511 times by 7 testsEvaluated by:- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| FALSE | never evaluated |
| 0-511 |
685 | ok = d->reply->d_func()->readStatus(d->socket) != -1; | - |
686 | if (ok && d->reply->d_func()->state == QHttpNetworkReplyPrivate::ReadingStatusState)TRUE | evaluated 509 times by 7 testsEvaluated by:- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| FALSE | evaluated 2 times by 1 testEvaluated by:- tst_qhttpsocketengine - unknown status
|
TRUE | never evaluated | FALSE | evaluated 509 times by 7 testsEvaluated by:- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
|
| 0-509 |
687 | return true; never executed: return true; | 0 |
688 | }executed 511 times by 7 tests: end of block 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
| 511 |
689 | if (ok && d->reply->d_func()->state == QHttpNetworkReplyPrivate::ReadingHeaderState) {TRUE | evaluated 509 times by 7 testsEvaluated by:- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| FALSE | evaluated 2 times by 1 testEvaluated by:- tst_qhttpsocketengine - unknown status
|
TRUE | evaluated 509 times by 7 testsEvaluated by:- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| FALSE | never evaluated |
| 0-509 |
690 | ok = d->reply->d_func()->readHeader(d->socket) != -1; | - |
691 | if (ok && d->reply->d_func()->state == QHttpNetworkReplyPrivate::ReadingHeaderState)TRUE | evaluated 509 times by 7 testsEvaluated by:- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| FALSE | never evaluated |
TRUE | never evaluated | FALSE | evaluated 509 times by 7 testsEvaluated by:- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
|
| 0-509 |
692 | return true; never executed: return true; | 0 |
693 | }executed 509 times by 7 tests: end of block 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
| 509 |
694 | if (ok) {TRUE | evaluated 509 times by 7 testsEvaluated by:- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| FALSE | evaluated 2 times by 1 testEvaluated by:- tst_qhttpsocketengine - unknown status
|
| 2-509 |
695 | bool contentLengthOk; | - |
696 | int contentLength = d->reply->headerField("Content-Length").toInt(&contentLengthOk); | - |
697 | if (contentLengthOk && contentLength > 0)TRUE | evaluated 180 times by 7 testsEvaluated by:- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| FALSE | evaluated 329 times by 7 testsEvaluated by:- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
|
TRUE | evaluated 180 times by 7 testsEvaluated by:- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| FALSE | never evaluated |
| 0-329 |
698 | d->pendingResponseData = contentLength;executed 180 times by 7 tests: d->pendingResponseData = contentLength; 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
| 180 |
699 | d->state = ReadResponseContent; | - |
700 | }executed 509 times by 7 tests: end of block 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
| 509 |
701 | return ok;executed 511 times by 7 tests: return ok; 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
| 511 |
702 | } | - |
703 | | - |
704 | void QHttpSocketEngine::slotSocketBytesWritten() | - |
705 | { | - |
706 | Q_D(QHttpSocketEngine); | - |
707 | if (d->state == Connected && d->writeNotificationEnabled)TRUE | evaluated 392 times by 7 testsEvaluated by:- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| FALSE | evaluated 530 times by 7 testsEvaluated by:- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
|
TRUE | evaluated 390 times by 7 testsEvaluated by:- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| FALSE | evaluated 2 times by 1 testEvaluated by:- tst_qhttpsocketengine - unknown status
|
| 2-530 |
708 | emitWriteNotification();executed 390 times by 7 tests: emitWriteNotification(); 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
| 390 |
709 | }executed 922 times by 7 tests: end of block 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
| 922 |
710 | | - |
711 | void QHttpSocketEngine::slotSocketError(QAbstractSocket::SocketError error) | - |
712 | { | - |
713 | Q_D(QHttpSocketEngine); | - |
714 | | - |
715 | if (d->state != Connected) {TRUE | evaluated 18 times by 4 testsEvaluated by:- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qtcpsocket - unknown status
| FALSE | evaluated 119 times by 5 testsEvaluated by:- tst_QNetworkReply
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
|
| 18-119 |
716 | | - |
717 | if (error == QAbstractSocket::HostNotFoundError)TRUE | evaluated 5 times by 3 testsEvaluated by:- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qtcpsocket - unknown status
| FALSE | evaluated 13 times by 3 testsEvaluated by:- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qtcpsocket - unknown status
|
| 5-13 |
718 | setError(QAbstractSocket::ProxyNotFoundError, tr("Proxy server not found"));executed 5 times by 3 tests: setError(QAbstractSocket::ProxyNotFoundError, tr("Proxy server not found")); Executed by:- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qtcpsocket - unknown status
| 5 |
719 | else if (error == QAbstractSocket::ConnectionRefusedError)TRUE | evaluated 2 times by 2 testsEvaluated by:- tst_Spdy
- tst_qhttpsocketengine - unknown status
| FALSE | evaluated 11 times by 2 testsEvaluated by:- tst_qhttpsocketengine - unknown status
- tst_qtcpsocket - unknown status
|
| 2-11 |
720 | setError(QAbstractSocket::ProxyConnectionRefusedError, tr("Proxy connection refused"));executed 2 times by 2 tests: setError(QAbstractSocket::ProxyConnectionRefusedError, tr("Proxy connection refused")); Executed by:- tst_Spdy
- tst_qhttpsocketengine - unknown status
| 2 |
721 | else if (error == QAbstractSocket::SocketTimeoutError)TRUE | evaluated 8 times by 1 testEvaluated by:- tst_qtcpsocket - unknown status
| FALSE | evaluated 3 times by 2 testsEvaluated by:- tst_qhttpsocketengine - unknown status
- tst_qtcpsocket - unknown status
|
| 3-8 |
722 | setError(QAbstractSocket::ProxyConnectionTimeoutError, tr("Proxy server connection timed out"));executed 8 times by 1 test: setError(QAbstractSocket::ProxyConnectionTimeoutError, tr("Proxy server connection timed out")); Executed by:- tst_qtcpsocket - unknown status
| 8 |
723 | else if (error == QAbstractSocket::RemoteHostClosedError)TRUE | evaluated 3 times by 2 testsEvaluated by:- tst_qhttpsocketengine - unknown status
- tst_qtcpsocket - unknown status
| FALSE | never evaluated |
| 0-3 |
724 | setError(QAbstractSocket::ProxyConnectionClosedError, tr("Proxy connection closed prematurely"));executed 3 times by 2 tests: setError(QAbstractSocket::ProxyConnectionClosedError, tr("Proxy connection closed prematurely")); Executed by:- tst_qhttpsocketengine - unknown status
- tst_qtcpsocket - unknown status
| 3 |
725 | else | - |
726 | setError(error, d->socket->errorString()); never executed: setError(error, d->socket->errorString()); | 0 |
727 | emitConnectionNotification(); | - |
728 | return;executed 18 times by 4 tests: return; Executed by:- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qtcpsocket - unknown status
| 18 |
729 | } | - |
730 | | - |
731 | | - |
732 | if (error == QAbstractSocket::SocketTimeoutError)TRUE | evaluated 12 times by 3 testsEvaluated by:- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| FALSE | evaluated 107 times by 4 testsEvaluated by:- tst_QNetworkReply
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qtcpsocket - unknown status
|
| 12-107 |
733 | return; executed 12 times by 3 tests: return; Executed by:- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| 12 |
734 | | - |
735 | d->state = None; | - |
736 | setError(error, d->socket->errorString()); | - |
737 | if (error != QAbstractSocket::RemoteHostClosedError)TRUE | never evaluated | FALSE | evaluated 107 times by 4 testsEvaluated by:- tst_QNetworkReply
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qtcpsocket - unknown status
|
| 0-107 |
738 | qDebug() << "QHttpSocketEngine::slotSocketError: got weird error =" << error; never executed: QMessageLogger(__FILE__, 738, __PRETTY_FUNCTION__).debug() << "QHttpSocketEngine::slotSocketError: got weird error =" << error; | 0 |
739 | | - |
740 | emitReadNotification(); | - |
741 | }executed 107 times by 4 tests: end of block Executed by:- tst_QNetworkReply
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qtcpsocket - unknown status
| 107 |
742 | | - |
743 | void QHttpSocketEngine::slotSocketStateChanged(QAbstractSocket::SocketState state) | - |
744 | { | - |
745 | Q_UNUSED(state); | - |
746 | }executed 2673 times by 7 tests: end of block 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
| 2673 |
747 | | - |
748 | void QHttpSocketEngine::emitPendingReadNotification() | - |
749 | { | - |
750 | Q_D(QHttpSocketEngine); | - |
751 | d->readNotificationPending = false; | - |
752 | if (d->readNotificationEnabled)TRUE | evaluated 2929 times by 5 testsEvaluated by:- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qtcpsocket - unknown status
| FALSE | evaluated 2 times by 1 testEvaluated by:- tst_qtcpsocket - unknown status
|
| 2-2929 |
753 | emit readNotification();executed 2929 times by 5 tests: readNotification(); Executed by:- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qtcpsocket - unknown status
| 2929 |
754 | }executed 2931 times by 5 tests: end of block Executed by:- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qtcpsocket - unknown status
| 2931 |
755 | | - |
756 | void QHttpSocketEngine::emitPendingWriteNotification() | - |
757 | { | - |
758 | Q_D(QHttpSocketEngine); | - |
759 | d->writeNotificationPending = false; | - |
760 | if (d->writeNotificationEnabled)TRUE | evaluated 126 times by 5 testsEvaluated by:- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qtcpsocket - unknown status
| FALSE | evaluated 2 times by 1 testEvaluated by:- tst_qsslsocket - unknown status
|
| 2-126 |
761 | emit writeNotification();executed 126 times by 5 tests: writeNotification(); Executed by:- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qtcpsocket - unknown status
| 126 |
762 | }executed 128 times by 5 tests: end of block Executed by:- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qtcpsocket - unknown status
| 128 |
763 | | - |
764 | void QHttpSocketEngine::emitPendingConnectionNotification() | - |
765 | { | - |
766 | Q_D(QHttpSocketEngine); | - |
767 | d->connectionNotificationPending = false; | - |
768 | emit connectionNotification(); | - |
769 | }executed 146 times by 5 tests: end of block Executed by:- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qtcpsocket - unknown status
| 146 |
770 | | - |
771 | void QHttpSocketEngine::emitReadNotification() | - |
772 | { | - |
773 | Q_D(QHttpSocketEngine); | - |
774 | d->readNotificationActivated = true; | - |
775 | | - |
776 | | - |
777 | | - |
778 | if ((d->readNotificationEnabled && !d->readNotificationPending) || d->connectionNotificationPending) {TRUE | evaluated 3380 times by 7 testsEvaluated by:- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| FALSE | evaluated 9 times by 2 testsEvaluated by:- tst_qhttpsocketengine - unknown status
- tst_qtcpsocket - unknown status
|
TRUE | evaluated 3165 times by 7 testsEvaluated by:- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| FALSE | evaluated 215 times by 4 testsEvaluated by:- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
|
TRUE | evaluated 215 times by 5 testsEvaluated by:- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| FALSE | evaluated 9 times by 3 testsEvaluated by:- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qtcpsocket - unknown status
|
| 9-3380 |
779 | d->readNotificationPending = true; | - |
780 | QMetaObject::invokeMethod(this, "emitPendingReadNotification", Qt::QueuedConnection); | - |
781 | }executed 3380 times by 7 tests: end of block 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
| 3380 |
782 | }executed 3389 times by 7 tests: end of block 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
| 3389 |
783 | | - |
784 | void QHttpSocketEngine::emitWriteNotification() | - |
785 | { | - |
786 | Q_D(QHttpSocketEngine); | - |
787 | d->writeNotificationActivated = true; | - |
788 | if (d->writeNotificationEnabled && !d->writeNotificationPending) {TRUE | evaluated 390 times by 7 testsEvaluated by:- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| FALSE | never evaluated |
TRUE | evaluated 264 times by 7 testsEvaluated by:- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| FALSE | evaluated 126 times by 4 testsEvaluated by:- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
|
| 0-390 |
789 | d->writeNotificationPending = true; | - |
790 | QMetaObject::invokeMethod(this, "emitPendingWriteNotification", Qt::QueuedConnection); | - |
791 | }executed 264 times by 7 tests: end of block 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
| 264 |
792 | }executed 390 times by 7 tests: end of block 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
| 390 |
793 | | - |
794 | void QHttpSocketEngine::emitConnectionNotification() | - |
795 | { | - |
796 | Q_D(QHttpSocketEngine); | - |
797 | if (!d->connectionNotificationPending) {TRUE | evaluated 362 times by 7 testsEvaluated by:- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| FALSE | never evaluated |
| 0-362 |
798 | d->connectionNotificationPending = true; | - |
799 | QMetaObject::invokeMethod(this, "emitPendingConnectionNotification", Qt::QueuedConnection); | - |
800 | }executed 362 times by 7 tests: end of block 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
| 362 |
801 | }executed 362 times by 7 tests: end of block 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
| 362 |
802 | | - |
803 | QHttpSocketEnginePrivate::QHttpSocketEnginePrivate() | - |
804 | : readNotificationEnabled(false) | - |
805 | , writeNotificationEnabled(false) | - |
806 | , exceptNotificationEnabled(false) | - |
807 | , readNotificationActivated(false) | - |
808 | , writeNotificationActivated(false) | - |
809 | , readNotificationPending(false) | - |
810 | , writeNotificationPending(false) | - |
811 | , connectionNotificationPending(false) | - |
812 | , credentialsSent(false) | - |
813 | , pendingResponseData(0) | - |
814 | { | - |
815 | socket = 0; | - |
816 | reply = 0; | - |
817 | state = QHttpSocketEngine::None; | - |
818 | }executed 375 times by 7 tests: end of block 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
| 375 |
819 | | - |
820 | QHttpSocketEnginePrivate::~QHttpSocketEnginePrivate() | - |
821 | { | - |
822 | } | - |
823 | | - |
824 | QAbstractSocketEngine *QHttpSocketEngineHandler::createSocketEngine(QAbstractSocket::SocketType socketType, | - |
825 | const QNetworkProxy &proxy, | - |
826 | QObject *parent) | - |
827 | { | - |
828 | if (socketType != QAbstractSocket::TcpSocket)TRUE | evaluated 133 times by 3 testsEvaluated by:- tst_QUdpSocket
- tst_qsocketnotifier - unknown status
- tst_qsocks5socketengine - unknown status
| FALSE | evaluated 5898 times by 29 testsEvaluated by:- tst_NetworkSelfTest
- tst_QAbstractNetworkCache
- tst_QFtp
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkInterface
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QTcpServer
- tst_QUdpSocket
- tst_QXmlInputSource
- tst_Spdy
- tst_qeventloop - unknown status
- tst_qguieventloop - unknown status
- tst_qhttpsocketengine - unknown status
- tst_qimagereader - unknown status
- tst_qiodevice - unknown status
- tst_qnetworkreply - unknown status
- tst_qobject - unknown status
- tst_qsocketnotifier - unknown status
- tst_qsocks5socketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- ...
|
| 133-5898 |
829 | return 0;executed 133 times by 3 tests: return 0; Executed by:- tst_QUdpSocket
- tst_qsocketnotifier - unknown status
- tst_qsocks5socketengine - unknown status
| 133 |
830 | | - |
831 | | - |
832 | if (proxy.type() != QNetworkProxy::HttpProxy)TRUE | evaluated 5527 times by 29 testsEvaluated by:- tst_NetworkSelfTest
- tst_QAbstractNetworkCache
- tst_QFtp
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkInterface
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QTcpServer
- tst_QUdpSocket
- tst_QXmlInputSource
- tst_Spdy
- tst_qeventloop - unknown status
- tst_qguieventloop - unknown status
- tst_qhttpsocketengine - unknown status
- tst_qimagereader - unknown status
- tst_qiodevice - unknown status
- tst_qnetworkreply - unknown status
- tst_qobject - unknown status
- tst_qsocketnotifier - unknown status
- tst_qsocks5socketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- ...
| FALSE | evaluated 371 times by 7 testsEvaluated by:- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
|
| 371-5527 |
833 | return 0;executed 5527 times by 29 tests: return 0; 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_qeventloop - unknown status
- tst_qguieventloop - unknown status
- tst_qhttpsocketengine - unknown status
- tst_qimagereader - unknown status
- tst_qiodevice - unknown status
- tst_qnetworkreply - unknown status
- tst_qobject - unknown status
- tst_qsocketnotifier - unknown status
- tst_qsocks5socketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- ...
| 5527 |
834 | | - |
835 | | - |
836 | if (!qobject_cast<QAbstractSocket *>(parent))TRUE | never evaluated | FALSE | evaluated 371 times by 7 testsEvaluated by:- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
|
| 0-371 |
837 | return 0; never executed: return 0; | 0 |
838 | | - |
839 | QHttpSocketEngine *engine = new QHttpSocketEngine(parent); | - |
840 | engine->setProxy(proxy); | - |
841 | return engine;executed 371 times by 7 tests: return engine; 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
| 371 |
842 | } | - |
843 | | - |
844 | QAbstractSocketEngine *QHttpSocketEngineHandler::createSocketEngine(qintptr, QObject *) | - |
845 | { | - |
846 | return 0;executed 993 times by 18 tests: return 0; Executed by:- tst_QFtp
- tst_QHttpNetworkConnection
- tst_QNetworkDiskCache
- tst_QNetworkReply
- tst_QNetworkSession
- tst_QTcpServer
- tst_QXmlInputSource
- tst_qeventloop - unknown status
- tst_qguieventloop - unknown status
- tst_qhttpsocketengine - unknown status
- tst_qimagereader - unknown status
- tst_qlocalsocket - unknown status
- tst_qobject - unknown status
- tst_qsocketnotifier - unknown status
- tst_qsocks5socketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qtcpsocket - unknown status
- tst_qxmlsimplereader - unknown status
| 993 |
847 | } | - |
848 | | - |
849 | QT_END_NAMESPACE | - |
850 | | - |
851 | #endif | - |
| | |