qhttpsocketengine.cpp

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

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