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