Line | Source | Count |
1 | | - |
2 | | - |
3 | | - |
4 | | - |
5 | | - |
6 | | - |
7 | | - |
8 | QHttpSocketEngine::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 | | - |
13 | QHttpSocketEngine::~QHttpSocketEngine() | - |
14 | { | - |
15 | } | - |
16 | | - |
17 | bool QHttpSocketEngine::initialize(QAbstractSocket::SocketType type, QAbstractSocket::NetworkLayerProtocol protocol) | - |
18 | { | - |
19 | QHttpSocketEnginePrivate * const d = d_func(); | - |
20 | if (type != QAbstractSocket::TcpSocketTRUE | never evaluated | FALSE | evaluated 375 times by 7 testsEvaluated by:- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
|
) | 0-375 |
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 | returnexecuted 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 | | - |
58 | bool QHttpSocketEngine::initialize(qintptr, QAbstractSocket::SocketState) | - |
59 | { | - |
60 | return never executed: return false; false;never executed: return false; | 0 |
61 | } | - |
62 | | - |
63 | void 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()TRUE | evaluated 6 times by 1 testEvaluated by:- tst_qhttpsocketengine - unknown status
| FALSE | evaluated 368 times by 7 testsEvaluated by:- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
|
) | 6-368 |
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()TRUE | evaluated 6 times by 1 testEvaluated by:- tst_qhttpsocketengine - unknown status
| FALSE | evaluated 368 times by 7 testsEvaluated by:- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
|
) | 6-368 |
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 | | - |
75 | qintptr QHttpSocketEngine::socketDescriptor() const | - |
76 | { | - |
77 | const QHttpSocketEnginePrivate * const d = d_func(); | - |
78 | returnexecuted 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 | | - |
81 | bool QHttpSocketEngine::isValid() const | - |
82 | { | - |
83 | const QHttpSocketEnginePrivate * const d = d_func(); | - |
84 | returnexecuted 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 | | - |
87 | bool QHttpSocketEngine::connectInternal() | - |
88 | { | - |
89 | QHttpSocketEnginePrivate * const d = d_func(); | - |
90 | | - |
91 | d->credentialsSent = false; | - |
92 | | - |
93 | | - |
94 | if (d->state == ConnectedTRUE | never evaluated | FALSE | evaluated 374 times by 7 testsEvaluated by:- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
|
) { | 0-374 |
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 == ConnectSentTRUE | never evaluated | FALSE | evaluated 374 times by 7 testsEvaluated by:- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
|
&& d->socketState != QAbstractSocket::ConnectedStateTRUE | never evaluated | FALSE | never evaluated |
) | 0-374 |
101 | setState(QAbstractSocket::UnconnectedState); never executed: setState(QAbstractSocket::UnconnectedState); | 0 |
102 | | - |
103 | | - |
104 | if (d->state == NoneTRUE | evaluated 374 times by 7 testsEvaluated by:- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| FALSE | never evaluated |
&& d->socket->state() == QAbstractSocket::UnconnectedStateTRUE | evaluated 374 times by 7 testsEvaluated by:- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| FALSE | never evaluated |
) { | 0-374 |
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()TRUE | never evaluated | FALSE | evaluated 374 times by 7 testsEvaluated by:- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
|
) | 0-374 |
114 | slotSocketReadNotification(); never executed: slotSocketReadNotification(); | 0 |
115 | | - |
116 | returnexecuted 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 | | - |
119 | bool 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 | returnexecuted 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 | | - |
130 | bool 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 | returnexecuted 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 | | - |
141 | bool 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 | | - |
149 | bool 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 | | - |
157 | int 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 | | - |
165 | void QHttpSocketEngine::close() | - |
166 | { | - |
167 | QHttpSocketEnginePrivate * const d = d_func(); | - |
168 | if (d->socketTRUE | evaluated 339 times by 7 testsEvaluated by:- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| FALSE | evaluated 89 times by 3 testsEvaluated by:- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qtcpsocket - unknown status
|
) { | 89-339 |
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 | | - |
175 | qint64 QHttpSocketEngine::bytesAvailable() const | - |
176 | { | - |
177 | const QHttpSocketEnginePrivate * const d = d_func(); | - |
178 | returnexecuted 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 | | - |
181 | qint64 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::UnconnectedStateTRUE | evaluated 91 times by 3 testsEvaluated by:- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qtcpsocket - unknown status
| FALSE | evaluated 3178 times by 7 testsEvaluated by:- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
|
| 91-3178 |
187 | && d->socket->bytesAvailable() == 0TRUE | evaluated 91 times by 3 testsEvaluated by:- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qtcpsocket - unknown status
| FALSE | never 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 == -1TRUE | evaluated 91 times by 3 testsEvaluated by:- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qtcpsocket - unknown status
| FALSE | evaluated 3178 times by 7 testsEvaluated by:- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
|
) { | 91-3178 |
192 | | - |
193 | | - |
194 | | - |
195 | close(); | - |
196 | setError(QAbstractSocket::RemoteHostClosedError, | - |
197 | QLatin1String("Remote host closed")); | - |
198 | setState(QAbstractSocket::UnconnectedState); | - |
199 | returnexecuted 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 | returnexecuted 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 | | - |
204 | qint64 QHttpSocketEngine::write(const char *data, qint64 len) | - |
205 | { | - |
206 | QHttpSocketEnginePrivate * const d = d_func(); | - |
207 | returnexecuted 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 | | - |
212 | bool 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 | | - |
221 | bool 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 | | - |
230 | QNetworkInterface QHttpSocketEngine::multicastInterface() const | - |
231 | { | - |
232 | return never executed: return QNetworkInterface(); QNetworkInterface();never executed: return QNetworkInterface(); | 0 |
233 | } | - |
234 | | - |
235 | bool 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 | | - |
244 | qint64 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 | | - |
252 | qint64 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 | | - |
260 | bool QHttpSocketEngine::hasPendingDatagrams() const | - |
261 | { | - |
262 | QMessageLogger(__FILE__, 310, __PRETTY_FUNCTION__).warning("Operation is not supported"); | - |
263 | returnexecuted 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 | | - |
266 | qint64 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 | | - |
273 | qint64 QHttpSocketEngine::bytesToWrite() const | - |
274 | { | - |
275 | const QHttpSocketEnginePrivate * const d = d_func(); | - |
276 | if (d->socketTRUE | evaluated 4305 times by 7 testsEvaluated by:- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| FALSE | never evaluated |
) { | 0-4305 |
277 | returnexecuted 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 | | - |
283 | int QHttpSocketEngine::option(SocketOption option) const | - |
284 | { | - |
285 | const QHttpSocketEnginePrivate * const d = d_func(); | - |
286 | if (d->socketTRUE | never evaluated | FALSE | never evaluated |
) { | 0 |
287 | | - |
288 | if (option == QAbstractSocketEngine::LowDelayOptionTRUE | never evaluated | FALSE | never 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::KeepAliveOptionTRUE | never evaluated | FALSE | never 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 | | - |
296 | bool QHttpSocketEngine::setOption(SocketOption option, int value) | - |
297 | { | - |
298 | QHttpSocketEnginePrivate * const d = d_func(); | - |
299 | if (d->socketTRUE | evaluated 19 times by 2 testsEvaluated by:- tst_QNetworkReply
- tst_Spdy
| FALSE | never evaluated |
) { | 0-19 |
300 | | - |
301 | if (option == QAbstractSocketEngine::LowDelayOptionTRUE | never evaluated | FALSE | evaluated 19 times by 2 testsEvaluated 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::KeepAliveOptionTRUE | evaluated 19 times by 2 testsEvaluated by:- tst_QNetworkReply
- tst_Spdy
| FALSE | never 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 | returnexecuted 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 | | - |
310 | bool QHttpSocketEngine::waitForRead(int msecs, bool *timedOut) | - |
311 | { | - |
312 | const QHttpSocketEnginePrivate * const d = d_func(); | - |
313 | | - |
314 | if (!d->socketTRUE | never evaluated | FALSE | evaluated 387 times by 5 testsEvaluated by:- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
|
|| d->socket->state() == QAbstractSocket::UnconnectedStateTRUE | never evaluated | FALSE | evaluated 387 times by 5 testsEvaluated by:- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
|
) | 0-387 |
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()TRUE | evaluated 374 times by 5 testsEvaluated by:- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| FALSE | evaluated 13 times by 2 testsEvaluated by:- tst_qhttpsocketengine - unknown status
- tst_qtcpsocket - unknown status
|
) { | 13-374 |
322 | if (!d->socket->waitForReadyRead(qt_subtract_from_timeout(msecs, stopWatch.elapsed()))TRUE | evaluated 54 times by 4 testsEvaluated by:- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| FALSE | evaluated 320 times by 5 testsEvaluated by:- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
|
) { | 54-320 |
323 | if (d->socket->state() == QAbstractSocket::UnconnectedStateTRUE | evaluated 42 times by 3 testsEvaluated by:- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qtcpsocket - unknown status
| FALSE | evaluated 12 times by 3 testsEvaluated by:- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
|
) | 12-42 |
324 | returnexecuted 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 (timedOutTRUE | never evaluated | FALSE | evaluated 12 times by 3 testsEvaluated by:- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
|
&& d->socket->error() == QAbstractSocket::SocketTimeoutErrorTRUE | never evaluated | FALSE | never evaluated |
) | 0-12 |
327 | * never executed: *timedOut = true; timedOut = true;never executed: *timedOut = true; | 0 |
328 | returnexecuted 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 != ConnectedTRUE | never evaluated | FALSE | evaluated 333 times by 5 testsEvaluated by:- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
|
&& d->socket->waitForReadyRead(qt_subtract_from_timeout(msecs, stopWatch.elapsed()))TRUE | never evaluated | FALSE | never evaluated |
) { | 0-333 |
335 | | - |
336 | } never executed: end of block | 0 |
337 | | - |
338 | | - |
339 | if (d->state != ConnectedTRUE | never evaluated | FALSE | evaluated 333 times by 5 testsEvaluated by:- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
|
) { | 0-333 |
340 | setError(d->socket->error(), d->socket->errorString()); | - |
341 | if (timedOutTRUE | never evaluated | FALSE | never evaluated |
&& d->socket->error() == QAbstractSocket::SocketTimeoutErrorTRUE | never evaluated | FALSE | never 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 | returnexecuted 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 | | - |
348 | bool QHttpSocketEngine::waitForWrite(int msecs, bool *timedOut) | - |
349 | { | - |
350 | const QHttpSocketEnginePrivate * const d = d_func(); | - |
351 | | - |
352 | | - |
353 | if (d->state == ConnectedTRUE | evaluated 272 times by 4 testsEvaluated by:- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| FALSE | evaluated 223 times by 5 testsEvaluated by:- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
|
) { | 223-272 |
354 | if (d->socket->bytesToWrite()TRUE | evaluated 4 times by 1 testEvaluated by:- tst_qsslsocket - unknown status
| FALSE | evaluated 268 times by 4 testsEvaluated by:- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
|
) { | 4-268 |
355 | if (!d->socket->waitForBytesWritten(msecs)TRUE | never evaluated | FALSE | evaluated 4 times by 1 testEvaluated by:- tst_qsslsocket - unknown status
|
) { | 0-4 |
356 | if (d->socket->error() == QAbstractSocket::SocketTimeoutErrorTRUE | never evaluated | FALSE | never evaluated |
&& timedOutTRUE | never evaluated | FALSE | never 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 | returnexecuted 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 != ConnectedTRUE | evaluated 413 times by 5 testsEvaluated by:- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| FALSE | evaluated 204 times by 5 testsEvaluated by:- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
|
&& d->socket->waitForReadyRead(qt_subtract_from_timeout(msecs, stopWatch.elapsed()))TRUE | evaluated 394 times by 5 testsEvaluated by:- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| FALSE | evaluated 19 times by 3 testsEvaluated by:- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qtcpsocket - unknown status
|
) { | 19-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 != ConnectedTRUE | evaluated 19 times by 3 testsEvaluated by:- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qtcpsocket - unknown status
| FALSE | evaluated 204 times by 5 testsEvaluated by:- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
|
) { | 19-204 |
376 | | - |
377 | if (timedOutTRUE | evaluated 18 times by 2 testsEvaluated by:- tst_qsslsocket - unknown status
- tst_qtcpsocket - unknown status
| FALSE | evaluated 1 time by 1 testEvaluated by:- tst_qhttpsocketengine - unknown status
|
&& d->socket->error() == QAbstractSocket::SocketTimeoutErrorTRUE | evaluated 8 times by 1 testEvaluated by:- tst_qtcpsocket - unknown status
| FALSE | evaluated 10 times by 2 testsEvaluated by:- tst_qsslsocket - unknown status
- tst_qtcpsocket - unknown status
|
) | 1-18 |
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 | returnexecuted 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 | | - |
384 | bool QHttpSocketEngine::waitForReadOrWrite(bool *readyToRead, bool *readyToWrite, | - |
385 | bool checkRead, bool checkWrite, | - |
386 | int msecs, bool *timedOut) | - |
387 | { | - |
388 | (void)checkRead;; | - |
389 | | - |
390 | if (!checkWriteTRUE | evaluated 381 times by 4 testsEvaluated by:- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| FALSE | evaluated 272 times by 4 testsEvaluated by:- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
|
) { | 272-381 |
391 | | - |
392 | bool canRead = waitForRead(msecs, timedOut); | - |
393 | if (readyToReadTRUE | evaluated 381 times by 4 testsEvaluated by:- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| FALSE | never evaluated |
) | 0-381 |
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 | returnexecuted 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 (readyToWriteTRUE | evaluated 272 times by 4 testsEvaluated by:- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| FALSE | never evaluated |
) | 0-272 |
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 | returnexecuted 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 | | - |
405 | bool QHttpSocketEngine::isReadNotificationEnabled() const | - |
406 | { | - |
407 | const QHttpSocketEnginePrivate * const d = d_func(); | - |
408 | returnexecuted 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 | | - |
411 | void QHttpSocketEngine::setReadNotificationEnabled(bool enable) | - |
412 | { | - |
413 | QHttpSocketEnginePrivate * const d = d_func(); | - |
414 | if (d->readNotificationEnabled == enableTRUE | evaluated 3784 times by 7 testsEvaluated by:- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| FALSE | evaluated 605 times by 7 testsEvaluated by:- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
|
) | 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 (enableTRUE | evaluated 338 times by 7 testsEvaluated by:- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| FALSE | evaluated 267 times by 7 testsEvaluated by:- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
|
) { | 267-338 |
419 | | - |
420 | if (bytesAvailable()TRUE | evaluated 30 times by 1 testEvaluated by:- tst_qtcpsocket - unknown status
| FALSE | evaluated 308 times by 7 testsEvaluated by:- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
|
) { | 30-308 |
421 | slotSocketReadNotification(); | - |
422 | }executed 30 times by 1 test: end of block Executed by:- tst_qtcpsocket - unknown status
else if (d->socketTRUE | evaluated 308 times by 7 testsEvaluated by:- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| FALSE | never evaluated |
&& d->socket->state() == QAbstractSocket::UnconnectedStateTRUE | evaluated 1 time by 1 testEvaluated by:- tst_qhttpsocketengine - unknown status
| FALSE | evaluated 307 times by 7 testsEvaluated by:- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
|
) { | 0-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 | | - |
428 | bool QHttpSocketEngine::isWriteNotificationEnabled() const | - |
429 | { | - |
430 | const QHttpSocketEnginePrivate * const d = d_func(); | - |
431 | returnexecuted 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 | | - |
434 | void QHttpSocketEngine::setWriteNotificationEnabled(bool enable) | - |
435 | { | - |
436 | QHttpSocketEnginePrivate * const d = d_func(); | - |
437 | d->writeNotificationEnabled = enable; | - |
438 | if (enableTRUE | evaluated 1446 times by 7 testsEvaluated by:- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| FALSE | evaluated 222 times by 5 testsEvaluated by:- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qtcpsocket - unknown status
|
&& d->state == ConnectedTRUE | evaluated 1332 times by 7 testsEvaluated by:- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| FALSE | evaluated 114 times by 4 testsEvaluated by:- tst_QNetworkReply
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qtcpsocket - unknown status
|
&& d->socket->state() == QAbstractSocket::ConnectedStateTRUE | evaluated 1332 times by 7 testsEvaluated by:- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| FALSE | never evaluated |
) | 0-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 | | - |
442 | bool QHttpSocketEngine::isExceptionNotificationEnabled() const | - |
443 | { | - |
444 | const QHttpSocketEnginePrivate * const d = d_func(); | - |
445 | returnexecuted 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 | | - |
448 | void 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 | | - |
454 | void QHttpSocketEngine::slotSocketConnected() | - |
455 | { | - |
456 | QHttpSocketEnginePrivate * const d = d_func(); | - |
457 | | - |
458 | | - |
459 | const char method[] = "CONNECT"; | - |
460 | QByteArray peerAddress = d->peerName.isEmpty()TRUE | evaluated 49 times by 4 testsEvaluated by:- tst_QNetworkReply
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qtcpsocket - unknown status
| FALSE | evaluated 482 times by 6 testsEvaluated by:- tst_QNetworkReply
- tst_Spdy
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
|
? | 49-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")TRUE | evaluated 518 times by 7 testsEvaluated by:- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| FALSE | evaluated 13 times by 1 test |
) | 13-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"; | 13 |
475 | QAuthenticatorPrivate *priv = QAuthenticatorPrivate::getPrivate(d->authenticator); | - |
476 | | - |
477 | if (privTRUE | evaluated 174 times by 7 testsEvaluated by:- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| FALSE | evaluated 357 times by 7 testsEvaluated by:- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
|
&& priv->method != QAuthenticatorPrivate::NoneTRUE | evaluated 168 times by 7 testsEvaluated by:- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| FALSE | evaluated 6 times by 1 testEvaluated by:- tst_qhttpsocketengine - unknown status
|
) { | 6-357 |
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 | | - |
490 | void QHttpSocketEngine::slotSocketDisconnected() | - |
491 | { | - |
492 | } | - |
493 | | - |
494 | void QHttpSocketEngine::slotSocketReadNotification() | - |
495 | { | - |
496 | QHttpSocketEnginePrivate * const d = d_func(); | - |
497 | if (d->state != ConnectedTRUE | evaluated 628 times by 7 testsEvaluated by:- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| FALSE | evaluated 3183 times by 7 testsEvaluated by:- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
|
&& d->socket->bytesAvailable() == 0TRUE | never evaluated | FALSE | evaluated 628 times by 7 testsEvaluated by:- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
|
) | 0-3183 |
498 | return; never executed: return; | 0 |
499 | | - |
500 | if (d->state == ConnectedTRUE | evaluated 3183 times by 7 testsEvaluated by:- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| FALSE | evaluated 628 times by 7 testsEvaluated by:- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
|
) { | 628-3183 |
501 | | - |
502 | if (d->readNotificationEnabledTRUE | evaluated 3155 times by 7 testsEvaluated by:- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| FALSE | evaluated 28 times by 3 testsEvaluated 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 == ConnectSentTRUE | evaluated 512 times by 7 testsEvaluated by:- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| FALSE | evaluated 116 times by 7 testsEvaluated by:- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
|
) { | 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 == ReadResponseHeaderTRUE | evaluated 512 times by 7 testsEvaluated by:- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| FALSE | evaluated 116 times by 7 testsEvaluated by:- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
|
) { | 116-512 |
513 | bool ok = readHttpHeader(); | - |
514 | if (!okTRUE | evaluated 2 times by 1 testEvaluated by:- tst_qhttpsocketengine - unknown status
| FALSE | evaluated 510 times by 7 testsEvaluated by:- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
|
) { | 2-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 == ReadResponseHeaderTRUE | never evaluated | FALSE | evaluated 510 times by 7 testsEvaluated by:- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
|
) | 0-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 == ReadResponseContentTRUE | evaluated 626 times by 7 testsEvaluated by:- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| FALSE | never evaluated |
) { | 0-626 |
527 | char dummybuffer[4096]; | - |
528 | while (d->pendingResponseDataTRUE | evaluated 413 times by 7 testsEvaluated by:- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| FALSE | evaluated 510 times by 7 testsEvaluated by:- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
|
) { | 413-510 |
529 | int read = d->socket->read(dummybuffer, qMin(sizeof(dummybuffer), (size_t)d->pendingResponseData)); | - |
530 | if (read == 0TRUE | evaluated 116 times by 7 testsEvaluated by:- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| FALSE | evaluated 297 times by 7 testsEvaluated by:- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
|
) | 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 == -1TRUE | never evaluated | FALSE | evaluated 297 times by 7 testsEvaluated by:- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
|
) { | 0-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 > 0TRUE | never evaluated | FALSE | evaluated 510 times by 7 testsEvaluated by:- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
|
) | 0-510 |
540 | return; never executed: return; | 0 |
541 | if (d->reply->d_func()->statusCode == 407TRUE | evaluated 176 times by 7 testsEvaluated by:- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| FALSE | evaluated 334 times by 7 testsEvaluated by:- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
|
) | 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 == 200TRUE | evaluated 312 times by 7 testsEvaluated by:- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| FALSE | evaluated 198 times by 7 testsEvaluated by:- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
|
) { | 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 == 407TRUE | evaluated 176 times by 7 testsEvaluated by:- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| FALSE | evaluated 22 times by 2 testsEvaluated by:- tst_qhttpsocketengine - unknown status
- tst_qtcpsocket - unknown status
|
) { | 22-312 |
557 | if (d->authenticator.isNull()TRUE | evaluated 166 times by 6 testsEvaluated by:- tst_QNetworkReply
- tst_Spdy
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| FALSE | evaluated 10 times by 2 testsEvaluated by:- tst_QNetworkReply
- tst_qhttpsocketengine - unknown status
|
) | 10-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->credentialsSentTRUE | evaluated 5 times by 2 testsEvaluated by:- tst_QNetworkReply
- tst_qhttpsocketengine - unknown status
| FALSE | evaluated 171 times by 7 testsEvaluated by:- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
|
&& priv->phase != QAuthenticatorPrivate::Phase2TRUE | evaluated 5 times by 2 testsEvaluated by:- tst_QNetworkReply
- tst_qhttpsocketengine - unknown status
| FALSE | never 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::InvalidTRUE | evaluated 2 times by 1 testEvaluated by:- tst_qhttpsocketengine - unknown status
| FALSE | evaluated 174 times by 7 testsEvaluated by:- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
|
) { | 2-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()TRUE | evaluated 3 times by 1 testEvaluated by:- tst_qhttpsocketengine - unknown status
| FALSE | evaluated 171 times by 7 testsEvaluated by:- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
|
) | 3-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"TRUE | evaluated 170 times by 7 testsEvaluated by:- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| FALSE | evaluated 4 times by 1 testEvaluated 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"TRUE | evaluated 1 time by 1 testEvaluated by:- tst_qhttpsocketengine - unknown status
| FALSE | evaluated 3 times by 1 testEvaluated by:- tst_qhttpsocketengine - unknown status
|
) { | 1-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 (willCloseTRUE | evaluated 173 times by 7 testsEvaluated by:- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| FALSE | evaluated 1 time by 1 testEvaluated 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::DoneTRUE | evaluated 171 times by 7 testsEvaluated by:- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| FALSE | evaluated 3 times by 1 testEvaluated by:- tst_qhttpsocketengine - unknown status
|
) | 3-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::DoneTRUE | evaluated 6 times by 3 testsEvaluated by:- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
| FALSE | evaluated 168 times by 7 testsEvaluated by:- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
|
) { | 6-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 (willCloseTRUE | evaluated 167 times by 7 testsEvaluated by:- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| FALSE | evaluated 1 time by 1 testEvaluated 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 == 403TRUE | evaluated 3 times by 1 testEvaluated by:- tst_qhttpsocketengine - unknown status
| FALSE | evaluated 19 times by 2 testsEvaluated by:- tst_qhttpsocketengine - unknown status
- tst_qtcpsocket - unknown status
|
|| statusCode == 405TRUE | evaluated 2 times by 1 testEvaluated by:- tst_qhttpsocketengine - unknown status
| FALSE | evaluated 17 times by 2 testsEvaluated by:- tst_qhttpsocketengine - unknown status
- tst_qtcpsocket - unknown status
|
) { | 2-19 |
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 == 404TRUE | evaluated 10 times by 2 testsEvaluated by:- tst_qhttpsocketengine - unknown status
- tst_qtcpsocket - unknown status
| FALSE | evaluated 7 times by 2 testsEvaluated by:- tst_qhttpsocketengine - unknown status
- tst_qtcpsocket - unknown status
|
) { | 5-10 |
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 == 503TRUE | evaluated 6 times by 2 testsEvaluated by:- tst_qhttpsocketengine - unknown status
- tst_qtcpsocket - unknown status
| FALSE | evaluated 1 time by 1 testEvaluated by:- tst_qhttpsocketengine - unknown status
|
) { | 1-10 |
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 | | - |
650 | bool QHttpSocketEngine::readHttpHeader() | - |
651 | { | - |
652 | QHttpSocketEnginePrivate * const d = d_func(); | - |
653 | | - |
654 | if (d->state != ReadResponseHeaderTRUE | never evaluated | FALSE | evaluated 512 times by 7 testsEvaluated by:- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
|
) | 0-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::NothingDoneStateTRUE | evaluated 512 times by 7 testsEvaluated by:- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| FALSE | never evaluated |
) { | 0-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::ReadingStatusStateTRUE | evaluated 512 times by 7 testsEvaluated by:- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| FALSE | never evaluated |
) { | 0-512 |
664 | ok = d->reply->d_func()->readStatus(d->socket) != -1; | - |
665 | if (okTRUE | evaluated 510 times by 7 testsEvaluated by:- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| FALSE | evaluated 2 times by 1 testEvaluated by:- tst_qhttpsocketengine - unknown status
|
&& d->reply->d_func()->state == QHttpNetworkReplyPrivate::ReadingStatusStateTRUE | never evaluated | FALSE | evaluated 510 times by 7 testsEvaluated by:- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
|
) | 0-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 (okTRUE | evaluated 510 times by 7 testsEvaluated by:- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| FALSE | evaluated 2 times by 1 testEvaluated by:- tst_qhttpsocketengine - unknown status
|
&& d->reply->d_func()->state == QHttpNetworkReplyPrivate::ReadingHeaderStateTRUE | evaluated 510 times by 7 testsEvaluated by:- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| FALSE | never evaluated |
) { | 0-510 |
669 | ok = d->reply->d_func()->readHeader(d->socket) != -1; | - |
670 | if (okTRUE | evaluated 510 times by 7 testsEvaluated by:- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| FALSE | never evaluated |
&& d->reply->d_func()->state == QHttpNetworkReplyPrivate::ReadingHeaderStateTRUE | never evaluated | FALSE | evaluated 510 times by 7 testsEvaluated by:- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
|
) | 0-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 (okTRUE | evaluated 510 times by 7 testsEvaluated by:- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| FALSE | evaluated 2 times by 1 testEvaluated by:- tst_qhttpsocketengine - unknown status
|
) { | 2-510 |
674 | bool contentLengthOk; | - |
675 | int contentLength = d->reply->headerField("Content-Length").toInt(&contentLengthOk); | - |
676 | if (contentLengthOkTRUE | evaluated 181 times by 7 testsEvaluated by:- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| FALSE | evaluated 329 times by 7 testsEvaluated by:- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
|
&& contentLength > 0TRUE | evaluated 181 times by 7 testsEvaluated by:- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| FALSE | never evaluated |
) | 0-329 |
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 | returnexecuted 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 | | - |
683 | void QHttpSocketEngine::slotSocketBytesWritten() | - |
684 | { | - |
685 | QHttpSocketEnginePrivate * const d = d_func(); | - |
686 | if (d->state == ConnectedTRUE | evaluated 392 times by 7 testsEvaluated by:- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| FALSE | evaluated 531 times by 7 testsEvaluated by:- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
|
&& d->writeNotificationEnabledTRUE | evaluated 390 times by 7 testsEvaluated by:- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| FALSE | evaluated 2 times by 1 testEvaluated by:- tst_qhttpsocketengine - unknown status
|
) | 2-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 | | - |
690 | void QHttpSocketEngine::slotSocketError(QAbstractSocket::SocketError error) | - |
691 | { | - |
692 | QHttpSocketEnginePrivate * const d = d_func(); | - |
693 | | - |
694 | if (d->state != ConnectedTRUE | evaluated 18 times by 4 testsEvaluated by:- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qtcpsocket - unknown status
| FALSE | evaluated 119 times by 5 testsEvaluated by:- tst_QNetworkReply
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
|
) { | 18-119 |
695 | | - |
696 | if (error == QAbstractSocket::HostNotFoundErrorTRUE | evaluated 5 times by 3 testsEvaluated by:- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qtcpsocket - unknown status
| FALSE | evaluated 13 times by 3 testsEvaluated by:- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qtcpsocket - unknown status
|
) | 5-13 |
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::ConnectionRefusedErrorTRUE | evaluated 2 times by 2 testsEvaluated by:- tst_Spdy
- tst_qhttpsocketengine - unknown status
| FALSE | evaluated 11 times by 2 testsEvaluated by:- tst_qhttpsocketengine - unknown status
- tst_qtcpsocket - unknown status
|
) | 2-11 |
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::SocketTimeoutErrorTRUE | evaluated 8 times by 1 testEvaluated by:- tst_qtcpsocket - unknown status
| FALSE | evaluated 3 times by 2 testsEvaluated by:- tst_qhttpsocketengine - unknown status
- tst_qtcpsocket - unknown status
|
) | 3-8 |
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::RemoteHostClosedErrorTRUE | evaluated 3 times by 2 testsEvaluated by:- tst_qhttpsocketengine - unknown status
- tst_qtcpsocket - unknown status
| FALSE | never 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::SocketTimeoutErrorTRUE | evaluated 12 times by 3 testsEvaluated by:- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| FALSE | evaluated 107 times by 4 testsEvaluated by:- tst_QNetworkReply
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qtcpsocket - unknown status
|
) | 12-107 |
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::RemoteHostClosedErrorTRUE | never evaluated | FALSE | evaluated 107 times by 4 testsEvaluated by:- tst_QNetworkReply
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qtcpsocket - unknown status
|
) | 0-107 |
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 | | - |
722 | void 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 | | - |
727 | void QHttpSocketEngine::emitPendingReadNotification() | - |
728 | { | - |
729 | QHttpSocketEnginePrivate * const d = d_func(); | - |
730 | d->readNotificationPending = false; | - |
731 | if (d->readNotificationEnabledTRUE | evaluated 2894 times by 5 testsEvaluated by:- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qtcpsocket - unknown status
| FALSE | evaluated 1 time by 1 testEvaluated 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 | | - |
735 | void QHttpSocketEngine::emitPendingWriteNotification() | - |
736 | { | - |
737 | QHttpSocketEnginePrivate * const d = d_func(); | - |
738 | d->writeNotificationPending = false; | - |
739 | if (d->writeNotificationEnabledTRUE | evaluated 126 times by 5 testsEvaluated by:- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qtcpsocket - unknown status
| FALSE | evaluated 2 times by 1 testEvaluated by:- tst_qsslsocket - unknown status
|
) | 2-126 |
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 | | - |
743 | void 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 | | - |
750 | void QHttpSocketEngine::emitReadNotification() | - |
751 | { | - |
752 | QHttpSocketEnginePrivate * const d = d_func(); | - |
753 | | - |
754 | | - |
755 | | - |
756 | if ((d->readNotificationEnabledTRUE | evaluated 3309 times by 7 testsEvaluated by:- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| FALSE | evaluated 45 times by 3 testsEvaluated by:- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qtcpsocket - unknown status
|
&& !d->readNotificationPendingTRUE | evaluated 3127 times by 7 testsEvaluated by:- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| FALSE | evaluated 182 times by 4 testsEvaluated by:- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
|
) || d->connectionNotificationPendingTRUE | evaluated 214 times by 5 testsEvaluated by:- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| FALSE | evaluated 13 times by 3 testsEvaluated 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 | | - |
762 | void QHttpSocketEngine::emitWriteNotification() | - |
763 | { | - |
764 | QHttpSocketEnginePrivate * const d = d_func(); | - |
765 | if (d->writeNotificationEnabledTRUE | evaluated 390 times by 7 testsEvaluated by:- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| FALSE | never evaluated |
&& !d->writeNotificationPendingTRUE | evaluated 264 times by 7 testsEvaluated by:- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| FALSE | evaluated 126 times by 4 testsEvaluated by:- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
|
) { | 0-390 |
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 | | - |
771 | void QHttpSocketEngine::emitConnectionNotification() | - |
772 | { | - |
773 | QHttpSocketEnginePrivate * const d = d_func(); | - |
774 | if (!d->connectionNotificationPendingTRUE | evaluated 362 times by 7 testsEvaluated by:- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
| FALSE | never evaluated |
) { | 0-362 |
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 | | - |
780 | QHttpSocketEnginePrivate::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 | | - |
795 | QHttpSocketEnginePrivate::~QHttpSocketEnginePrivate() | - |
796 | { | - |
797 | } | - |
798 | | - |
799 | QAbstractSocketEngine *QHttpSocketEngineHandler::createSocketEngine(QAbstractSocket::SocketType socketType, | - |
800 | const QNetworkProxy &proxy, | - |
801 | QObject *parent) | - |
802 | { | - |
803 | if (socketType != QAbstractSocket::TcpSocketTRUE | evaluated 133 times by 3 testsEvaluated by:- tst_QUdpSocket
- tst_qsocketnotifier - unknown status
- tst_qsocks5socketengine - unknown status
| FALSE | evaluated 5692 times by 28 testsEvaluated by:- tst_NetworkSelfTest
- tst_QAbstractNetworkCache
- tst_QFtp
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkInterface
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QTcpServer
- tst_QUdpSocket
- tst_QXmlInputSource
- tst_Spdy
- tst_qeventloop - unknown status
- tst_qguieventloop - unknown status
- tst_qhttpsocketengine - unknown status
- tst_qimagereader - unknown status
- tst_qiodevice - unknown status
- tst_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 | returnexecuted 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::HttpProxyTRUE | evaluated 5321 times by 28 testsEvaluated by:- tst_NetworkSelfTest
- tst_QAbstractNetworkCache
- tst_QFtp
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkInterface
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QTcpServer
- tst_QUdpSocket
- tst_QXmlInputSource
- tst_Spdy
- tst_qeventloop - unknown status
- tst_qguieventloop - unknown status
- tst_qhttpsocketengine - unknown status
- tst_qimagereader - unknown status
- tst_qiodevice - unknown status
- tst_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
- ...
| FALSE | evaluated 371 times by 7 testsEvaluated by:- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
|
) | 371-5321 |
808 | returnexecuted 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)TRUE | never evaluated | FALSE | evaluated 371 times by 7 testsEvaluated by:- tst_QNetworkReply
- tst_Spdy
- tst_qhttpsocketengine - unknown status
- tst_qsslsocket - unknown status
- tst_qsslsocket_onDemandCertificates_member - unknown status
- tst_qsslsocket_onDemandCertificates_static - unknown status
- tst_qtcpsocket - unknown status
|
) | 0-371 |
812 | return never executed: return 0; 0;never executed: return 0; | 0 |
813 | | - |
814 | QHttpSocketEngine *engine = new QHttpSocketEngine(parent); | - |
815 | engine->setProxy(proxy); | - |
816 | returnexecuted 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 | | - |
819 | QAbstractSocketEngine *QHttpSocketEngineHandler::createSocketEngine(qintptr, QObject *) | - |
820 | { | - |
821 | returnexecuted 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 | | - |
| | |