Line | Source | Count |
1 | | - |
2 | | - |
3 | | - |
4 | | - |
5 | | - |
6 | | - |
7 | | - |
8 | | - |
9 | | - |
10 | | - |
11 | | - |
12 | | - |
13 | | - |
14 | | - |
15 | | - |
16 | | - |
17 | | - |
18 | | - |
19 | | - |
20 | | - |
21 | | - |
22 | | - |
23 | | - |
24 | | - |
25 | | - |
26 | | - |
27 | | - |
28 | | - |
29 | | - |
30 | | - |
31 | | - |
32 | | - |
33 | | - |
34 | | - |
35 | | - |
36 | | - |
37 | | - |
38 | | - |
39 | | - |
40 | #include "qnetworkconfigmanager_p.h" | - |
41 | #include "qbearerplugin_p.h" | - |
42 | | - |
43 | #include <QtCore/private/qfactoryloader_p.h> | - |
44 | | - |
45 | #include <QtCore/qdebug.h> | - |
46 | #include <QtCore/qtimer.h> | - |
47 | #include <QtCore/qstringlist.h> | - |
48 | #include <QtCore/qthread.h> | - |
49 | #include <QtCore/private/qcoreapplication_p.h> | - |
50 | #include <QtCore/private/qthread_p.h> | - |
51 | | - |
52 | #include <QtCore/qbytearray.h> | - |
53 | #include <QtCore/qglobal.h> | - |
54 | | - |
55 | #include <utility> | - |
56 | | - |
57 | | - |
58 | #ifndef QT_NO_BEARERMANAGEMENT | - |
59 | | - |
60 | QT_BEGIN_NAMESPACE | - |
61 | | - |
62 | QNetworkConfigurationManagerPrivate::QNetworkConfigurationManagerPrivate() | - |
63 | : QObject(), pollTimer(0), mutex(QMutex::Recursive), forcedPolling(0), firstUpdate(true) | - |
64 | { | - |
65 | qRegisterMetaType<QNetworkConfiguration>(); | - |
66 | qRegisterMetaType<QNetworkConfigurationPrivatePointer>(); | - |
67 | }executed 18 times by 16 tests: end of block Executed by:- tst_NetworkSelfTest
- tst_QAbstractNetworkCache
- tst_QFtp
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkConfiguration
- tst_QNetworkConfigurationManager
- tst_QNetworkDiskCache
- tst_QNetworkInterface
- tst_QNetworkProxyFactory
- tst_QTcpServer
- tst_QUdpSocket
- tst_QXmlInputSource
- tst_QXmlStream
| 18 |
68 | | - |
69 | void QNetworkConfigurationManagerPrivate::initialize() | - |
70 | { | - |
71 | | - |
72 | bearerThread = new QDaemonThread(); | - |
73 | bearerThread->setObjectName(QStringLiteral("Qt bearer thread"));executed 18 times by 16 tests: return qstring_literal_temp; Executed by:- tst_NetworkSelfTest
- tst_QAbstractNetworkCache
- tst_QFtp
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkConfiguration
- tst_QNetworkConfigurationManager
- tst_QNetworkDiskCache
- tst_QNetworkInterface
- tst_QNetworkProxyFactory
- tst_QTcpServer
- tst_QUdpSocket
- tst_QXmlInputSource
- tst_QXmlStream
| 18 |
74 | | - |
75 | bearerThread->moveToThread(QCoreApplicationPrivate::mainThread()); | - |
76 | moveToThread(bearerThread); | - |
77 | bearerThread->start(); | - |
78 | updateConfigurations(); | - |
79 | }executed 18 times by 16 tests: end of block Executed by:- tst_NetworkSelfTest
- tst_QAbstractNetworkCache
- tst_QFtp
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkConfiguration
- tst_QNetworkConfigurationManager
- tst_QNetworkDiskCache
- tst_QNetworkInterface
- tst_QNetworkProxyFactory
- tst_QTcpServer
- tst_QUdpSocket
- tst_QXmlInputSource
- tst_QXmlStream
| 18 |
80 | | - |
81 | QNetworkConfigurationManagerPrivate::~QNetworkConfigurationManagerPrivate() | - |
82 | { | - |
83 | QMutexLocker locker(&mutex); | - |
84 | | - |
85 | qDeleteAll(sessionEngines); | - |
86 | sessionEngines.clear(); | - |
87 | if (bearerThread)TRUE | evaluated 20 times by 19 testsEvaluated by:- tst_QNetworkConfigurationManager
- tst_networkselftest - unknown status
- tst_qabstractnetworkcache - unknown status
- tst_qftp - unknown status
- tst_qhostinfo - unknown status
- tst_qhttpnetworkconnection - unknown status
- tst_qnetworkaccessmanager - unknown status
- tst_qnetworkaccessmanager_and_qprogressdialog - unknown status
- tst_qnetworkconfiguration - unknown status
- tst_qnetworkconfigurationmanager - unknown status
- tst_qnetworkdiskcache - unknown status
- tst_qnetworkinterface - unknown status
- tst_qnetworkproxyfactory - unknown status
- tst_qnetworksession - unknown status
- tst_qtcpserver - unknown status
- tst_qudpsocket - unknown status
- tst_qxmlinputsource - unknown status
- tst_qxmlstream - unknown status
- tst_spdy - unknown status
| FALSE | never evaluated |
| 0-20 |
88 | bearerThread->quit();executed 20 times by 19 tests: bearerThread->quit(); Executed by:- tst_QNetworkConfigurationManager
- tst_networkselftest - unknown status
- tst_qabstractnetworkcache - unknown status
- tst_qftp - unknown status
- tst_qhostinfo - unknown status
- tst_qhttpnetworkconnection - unknown status
- tst_qnetworkaccessmanager - unknown status
- tst_qnetworkaccessmanager_and_qprogressdialog - unknown status
- tst_qnetworkconfiguration - unknown status
- tst_qnetworkconfigurationmanager - unknown status
- tst_qnetworkdiskcache - unknown status
- tst_qnetworkinterface - unknown status
- tst_qnetworkproxyfactory - unknown status
- tst_qnetworksession - unknown status
- tst_qtcpserver - unknown status
- tst_qudpsocket - unknown status
- tst_qxmlinputsource - unknown status
- tst_qxmlstream - unknown status
- tst_spdy - unknown status
| 20 |
89 | }executed 20 times by 19 tests: end of block Executed by:- tst_QNetworkConfigurationManager
- tst_networkselftest - unknown status
- tst_qabstractnetworkcache - unknown status
- tst_qftp - unknown status
- tst_qhostinfo - unknown status
- tst_qhttpnetworkconnection - unknown status
- tst_qnetworkaccessmanager - unknown status
- tst_qnetworkaccessmanager_and_qprogressdialog - unknown status
- tst_qnetworkconfiguration - unknown status
- tst_qnetworkconfigurationmanager - unknown status
- tst_qnetworkdiskcache - unknown status
- tst_qnetworkinterface - unknown status
- tst_qnetworkproxyfactory - unknown status
- tst_qnetworksession - unknown status
- tst_qtcpserver - unknown status
- tst_qudpsocket - unknown status
- tst_qxmlinputsource - unknown status
- tst_qxmlstream - unknown status
- tst_spdy - unknown status
| 20 |
90 | | - |
91 | void QNetworkConfigurationManagerPrivate::cleanup() | - |
92 | { | - |
93 | QThread* thread = bearerThread; | - |
94 | deleteLater(); | - |
95 | if (thread->wait(5000))TRUE | evaluated 20 times by 19 testsEvaluated by:- tst_QNetworkConfigurationManager
- tst_networkselftest - unknown status
- tst_qabstractnetworkcache - unknown status
- tst_qftp - unknown status
- tst_qhostinfo - unknown status
- tst_qhttpnetworkconnection - unknown status
- tst_qnetworkaccessmanager - unknown status
- tst_qnetworkaccessmanager_and_qprogressdialog - unknown status
- tst_qnetworkconfiguration - unknown status
- tst_qnetworkconfigurationmanager - unknown status
- tst_qnetworkdiskcache - unknown status
- tst_qnetworkinterface - unknown status
- tst_qnetworkproxyfactory - unknown status
- tst_qnetworksession - unknown status
- tst_qtcpserver - unknown status
- tst_qudpsocket - unknown status
- tst_qxmlinputsource - unknown status
- tst_qxmlstream - unknown status
- tst_spdy - unknown status
| FALSE | never evaluated |
| 0-20 |
96 | delete thread;executed 20 times by 19 tests: delete thread; Executed by:- tst_QNetworkConfigurationManager
- tst_networkselftest - unknown status
- tst_qabstractnetworkcache - unknown status
- tst_qftp - unknown status
- tst_qhostinfo - unknown status
- tst_qhttpnetworkconnection - unknown status
- tst_qnetworkaccessmanager - unknown status
- tst_qnetworkaccessmanager_and_qprogressdialog - unknown status
- tst_qnetworkconfiguration - unknown status
- tst_qnetworkconfigurationmanager - unknown status
- tst_qnetworkdiskcache - unknown status
- tst_qnetworkinterface - unknown status
- tst_qnetworkproxyfactory - unknown status
- tst_qnetworksession - unknown status
- tst_qtcpserver - unknown status
- tst_qudpsocket - unknown status
- tst_qxmlinputsource - unknown status
- tst_qxmlstream - unknown status
- tst_spdy - unknown status
| 20 |
97 | }executed 20 times by 19 tests: end of block Executed by:- tst_QNetworkConfigurationManager
- tst_networkselftest - unknown status
- tst_qabstractnetworkcache - unknown status
- tst_qftp - unknown status
- tst_qhostinfo - unknown status
- tst_qhttpnetworkconnection - unknown status
- tst_qnetworkaccessmanager - unknown status
- tst_qnetworkaccessmanager_and_qprogressdialog - unknown status
- tst_qnetworkconfiguration - unknown status
- tst_qnetworkconfigurationmanager - unknown status
- tst_qnetworkdiskcache - unknown status
- tst_qnetworkinterface - unknown status
- tst_qnetworkproxyfactory - unknown status
- tst_qnetworksession - unknown status
- tst_qtcpserver - unknown status
- tst_qudpsocket - unknown status
- tst_qxmlinputsource - unknown status
- tst_qxmlstream - unknown status
- tst_spdy - unknown status
| 20 |
98 | | - |
99 | QNetworkConfiguration QNetworkConfigurationManagerPrivate::defaultConfiguration() const | - |
100 | { | - |
101 | QMutexLocker locker(&mutex); | - |
102 | | - |
103 | for (QBearerEngine *engine : sessionEngines) { | - |
104 | QNetworkConfigurationPrivatePointer ptr = engine->defaultConfiguration(); | - |
105 | if (ptr) {TRUE | evaluated 301 times by 18 testsEvaluated by:- tst_NetworkSelfTest
- tst_QAbstractNetworkCache
- tst_QFtp
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkConfiguration
- tst_QNetworkConfigurationManager
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QNetworkSession
- tst_QTcpServer
- tst_QUdpSocket
- tst_QXmlInputSource
- tst_QXmlStream
- tst_Spdy
| FALSE | never evaluated |
| 0-301 |
106 | QNetworkConfiguration config; | - |
107 | config.d = ptr; | - |
108 | return config;executed 301 times by 18 tests: return config; Executed by:- tst_NetworkSelfTest
- tst_QAbstractNetworkCache
- tst_QFtp
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkConfiguration
- tst_QNetworkConfigurationManager
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QNetworkSession
- tst_QTcpServer
- tst_QUdpSocket
- tst_QXmlInputSource
- tst_QXmlStream
- tst_Spdy
| 301 |
109 | } | - |
110 | } never executed: end of block | 0 |
111 | | - |
112 | | - |
113 | | - |
114 | | - |
115 | QNetworkConfigurationPrivatePointer defaultConfiguration; | - |
116 | | - |
117 | for (QBearerEngine *engine : sessionEngines) { | - |
118 | QMutexLocker locker(&engine->mutex); | - |
119 | | - |
120 | for (const auto &ptr : qAsConst(engine->snapConfigurations)) { | - |
121 | QMutexLocker configLocker(&ptr->mutex); | - |
122 | | - |
123 | if ((ptr->state & QNetworkConfiguration::Active) == QNetworkConfiguration::Active) {TRUE | never evaluated | FALSE | never evaluated |
| 0 |
124 | QNetworkConfiguration config; | - |
125 | config.d = ptr; | - |
126 | return config; never executed: return config; | 0 |
127 | } else if (!defaultConfiguration) {TRUE | never evaluated | FALSE | never evaluated |
| 0 |
128 | if ((ptr->state & QNetworkConfiguration::Discovered) == QNetworkConfiguration::Discovered)TRUE | never evaluated | FALSE | never evaluated |
| 0 |
129 | defaultConfiguration = ptr; never executed: defaultConfiguration = ptr; | 0 |
130 | } never executed: end of block | 0 |
131 | } never executed: end of block | 0 |
132 | } never executed: end of block | 0 |
133 | | - |
134 | | - |
135 | if (defaultConfiguration) {TRUE | never evaluated | FALSE | never evaluated |
| 0 |
136 | QNetworkConfiguration config; | - |
137 | config.d = defaultConfiguration; | - |
138 | return config; never executed: return config; | 0 |
139 | } | - |
140 | | - |
141 | | - |
142 | | - |
143 | | - |
144 | | - |
145 | | - |
146 | | - |
147 | | - |
148 | | - |
149 | | - |
150 | | - |
151 | | - |
152 | | - |
153 | for (QBearerEngine *engine : sessionEngines) { | - |
154 | | - |
155 | QMutexLocker locker(&engine->mutex); | - |
156 | | - |
157 | for (const auto &ptr : qAsConst(engine->accessPointConfigurations)) { | - |
158 | | - |
159 | QMutexLocker configLocker(&ptr->mutex); | - |
160 | QNetworkConfiguration::BearerType bearerType = ptr->bearerType; | - |
161 | | - |
162 | if ((ptr->state & QNetworkConfiguration::Discovered) == QNetworkConfiguration::Discovered) {TRUE | never evaluated | FALSE | never evaluated |
| 0 |
163 | if (!defaultConfiguration) {TRUE | never evaluated | FALSE | never evaluated |
| 0 |
164 | defaultConfiguration = ptr; | - |
165 | } else { never executed: end of block | 0 |
166 | QMutexLocker defaultConfigLocker(&defaultConfiguration->mutex); | - |
167 | | - |
168 | if (defaultConfiguration->state == ptr->state) {TRUE | never evaluated | FALSE | never evaluated |
| 0 |
169 | switch (defaultConfiguration->bearerType) { | - |
170 | case QNetworkConfiguration::BearerEthernet: never executed: case QNetworkConfiguration::BearerEthernet: | 0 |
171 | | - |
172 | break; never executed: break; | 0 |
173 | case QNetworkConfiguration::BearerWLAN: never executed: case QNetworkConfiguration::BearerWLAN: | 0 |
174 | | - |
175 | defaultConfiguration = ptr; | - |
176 | break; never executed: break; | 0 |
177 | default: never executed: default: | 0 |
178 | | - |
179 | if (bearerType == QNetworkConfiguration::BearerEthernet ||TRUE | never evaluated | FALSE | never evaluated |
| 0 |
180 | bearerType == QNetworkConfiguration::BearerWLAN) {TRUE | never evaluated | FALSE | never evaluated |
| 0 |
181 | defaultConfiguration = ptr; | - |
182 | } never executed: end of block | 0 |
183 | } never executed: end of block | 0 |
184 | } else { | - |
185 | | - |
186 | if ((defaultConfiguration->state & QNetworkConfiguration::Active) !=TRUE | never evaluated | FALSE | never evaluated |
| 0 |
187 | QNetworkConfiguration::Active) {TRUE | never evaluated | FALSE | never evaluated |
| 0 |
188 | defaultConfiguration = ptr; | - |
189 | } never executed: end of block | 0 |
190 | } never executed: end of block | 0 |
191 | } | - |
192 | } | - |
193 | } never executed: end of block | 0 |
194 | } never executed: end of block | 0 |
195 | | - |
196 | | - |
197 | if (defaultConfiguration) {TRUE | never evaluated | FALSE | never evaluated |
| 0 |
198 | QNetworkConfiguration config; | - |
199 | config.d = defaultConfiguration; | - |
200 | return config; never executed: return config; | 0 |
201 | } | - |
202 | | - |
203 | return QNetworkConfiguration(); never executed: return QNetworkConfiguration(); | 0 |
204 | } | - |
205 | | - |
206 | QList<QNetworkConfiguration> QNetworkConfigurationManagerPrivate::allConfigurations(QNetworkConfiguration::StateFlags filter) const | - |
207 | { | - |
208 | QList<QNetworkConfiguration> result; | - |
209 | | - |
210 | QMutexLocker locker(&mutex); | - |
211 | | - |
212 | for (QBearerEngine *engine : sessionEngines) { | - |
213 | | - |
214 | QMutexLocker locker(&engine->mutex); | - |
215 | | - |
216 | | - |
217 | for (const auto &ptr : qAsConst(engine->accessPointConfigurations)) { | - |
218 | QMutexLocker configLocker(&ptr->mutex); | - |
219 | | - |
220 | if ((ptr->state & filter) == filter) {TRUE | evaluated 81 times by 4 testsEvaluated by:- tst_QNetworkConfiguration
- tst_QNetworkConfigurationManager
- tst_QNetworkProxyFactory
- tst_QNetworkSession
| FALSE | evaluated 3 times by 1 testEvaluated by:- tst_QNetworkConfigurationManager
|
| 3-81 |
221 | QNetworkConfiguration pt; | - |
222 | pt.d = ptr; | - |
223 | result << pt; | - |
224 | }executed 81 times by 4 tests: end of block Executed by:- tst_QNetworkConfiguration
- tst_QNetworkConfigurationManager
- tst_QNetworkProxyFactory
- tst_QNetworkSession
| 81 |
225 | }executed 84 times by 4 tests: end of block Executed by:- tst_QNetworkConfiguration
- tst_QNetworkConfigurationManager
- tst_QNetworkProxyFactory
- tst_QNetworkSession
| 84 |
226 | | - |
227 | | - |
228 | for (const auto &ptr : qAsConst(engine->snapConfigurations)) { | - |
229 | QMutexLocker configLocker(&ptr->mutex); | - |
230 | | - |
231 | if ((ptr->state & filter) == filter) {TRUE | never evaluated | FALSE | never evaluated |
| 0 |
232 | QNetworkConfiguration pt; | - |
233 | pt.d = ptr; | - |
234 | result << pt; | - |
235 | } never executed: end of block | 0 |
236 | } never executed: end of block | 0 |
237 | }executed 56 times by 4 tests: end of block Executed by:- tst_QNetworkConfiguration
- tst_QNetworkConfigurationManager
- tst_QNetworkProxyFactory
- tst_QNetworkSession
| 56 |
238 | | - |
239 | return result;executed 28 times by 4 tests: return result; Executed by:- tst_QNetworkConfiguration
- tst_QNetworkConfigurationManager
- tst_QNetworkProxyFactory
- tst_QNetworkSession
| 28 |
240 | } | - |
241 | | - |
242 | QNetworkConfiguration QNetworkConfigurationManagerPrivate::configurationFromIdentifier(const QString &identifier) const | - |
243 | { | - |
244 | QNetworkConfiguration item; | - |
245 | | - |
246 | QMutexLocker locker(&mutex); | - |
247 | | - |
248 | for (QBearerEngine *engine : sessionEngines) { | - |
249 | QMutexLocker locker(&engine->mutex); | - |
250 | if (auto ptr = engine->accessPointConfigurations.value(identifier)) {TRUE | evaluated 119 times by 3 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QNetworkConfigurationManager
- tst_QNetworkReply
| FALSE | evaluated 4 times by 1 testEvaluated by:- tst_QNetworkConfigurationManager
|
| 4-119 |
251 | item.d = std::move(ptr); | - |
252 | break;executed 119 times by 3 tests: break; Executed by:- tst_QAbstractNetworkCache
- tst_QNetworkConfigurationManager
- tst_QNetworkReply
| 119 |
253 | } | - |
254 | if (auto ptr = engine->snapConfigurations.value(identifier)) {TRUE | never evaluated | FALSE | evaluated 4 times by 1 testEvaluated by:- tst_QNetworkConfigurationManager
|
| 0-4 |
255 | item.d = std::move(ptr); | - |
256 | break; never executed: break; | 0 |
257 | } | - |
258 | if (auto ptr = engine->userChoiceConfigurations.value(identifier)) {TRUE | never evaluated | FALSE | evaluated 4 times by 1 testEvaluated by:- tst_QNetworkConfigurationManager
|
| 0-4 |
259 | item.d = std::move(ptr); | - |
260 | break; never executed: break; | 0 |
261 | } | - |
262 | }executed 4 times by 1 test: end of block Executed by:- tst_QNetworkConfigurationManager
| 4 |
263 | | - |
264 | return item;executed 120 times by 3 tests: return item; Executed by:- tst_QAbstractNetworkCache
- tst_QNetworkConfigurationManager
- tst_QNetworkReply
| 120 |
265 | } | - |
266 | | - |
267 | bool QNetworkConfigurationManagerPrivate::isOnline() const | - |
268 | { | - |
269 | QMutexLocker locker(&mutex); | - |
270 | | - |
271 | | - |
272 | | - |
273 | return !allConfigurations(QNetworkConfiguration::Active).isEmpty();executed 1 time by 1 test: return !allConfigurations(QNetworkConfiguration::Active).isEmpty(); Executed by:- tst_QNetworkConfigurationManager
| 1 |
274 | } | - |
275 | | - |
276 | QNetworkConfigurationManager::Capabilities QNetworkConfigurationManagerPrivate::capabilities() const | - |
277 | { | - |
278 | QMutexLocker locker(&mutex); | - |
279 | | - |
280 | QNetworkConfigurationManager::Capabilities capFlags; | - |
281 | | - |
282 | for (QBearerEngine *engine : sessionEngines) | - |
283 | capFlags |= engine->capabilities();executed 188 times by 12 tests: capFlags |= engine->capabilities(); Executed by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkConfigurationManager
- tst_QNetworkDiskCache
- tst_QNetworkInterface
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QNetworkSession
- tst_QXmlInputSource
- tst_QXmlStream
| 188 |
284 | | - |
285 | return capFlags;executed 94 times by 12 tests: return capFlags; Executed by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkConfigurationManager
- tst_QNetworkDiskCache
- tst_QNetworkInterface
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QNetworkSession
- tst_QXmlInputSource
- tst_QXmlStream
| 94 |
286 | } | - |
287 | | - |
288 | void QNetworkConfigurationManagerPrivate::configurationAdded(QNetworkConfigurationPrivatePointer ptr) | - |
289 | { | - |
290 | QMutexLocker locker(&mutex); | - |
291 | | - |
292 | if (!firstUpdate) {TRUE | evaluated 56 times by 17 testsEvaluated by:- tst_NetworkSelfTest
- tst_QAbstractNetworkCache
- tst_QFtp
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkConfiguration
- tst_QNetworkConfigurationManager
- tst_QNetworkDiskCache
- tst_QNetworkInterface
- tst_QNetworkProxyFactory
- tst_QNetworkSession
- tst_QTcpServer
- tst_QUdpSocket
- tst_QXmlInputSource
- tst_QXmlStream
| FALSE | never evaluated |
| 0-56 |
293 | QNetworkConfiguration item; | - |
294 | item.d = ptr; | - |
295 | emit configurationAdded(item); | - |
296 | }executed 56 times by 17 tests: end of block Executed by:- tst_NetworkSelfTest
- tst_QAbstractNetworkCache
- tst_QFtp
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkConfiguration
- tst_QNetworkConfigurationManager
- tst_QNetworkDiskCache
- tst_QNetworkInterface
- tst_QNetworkProxyFactory
- tst_QNetworkSession
- tst_QTcpServer
- tst_QUdpSocket
- tst_QXmlInputSource
- tst_QXmlStream
| 56 |
297 | | - |
298 | ptr->mutex.lock(); | - |
299 | if (ptr->state == QNetworkConfiguration::Active) {TRUE | evaluated 56 times by 17 testsEvaluated by:- tst_NetworkSelfTest
- tst_QAbstractNetworkCache
- tst_QFtp
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkConfiguration
- tst_QNetworkConfigurationManager
- tst_QNetworkDiskCache
- tst_QNetworkInterface
- tst_QNetworkProxyFactory
- tst_QNetworkSession
- tst_QTcpServer
- tst_QUdpSocket
- tst_QXmlInputSource
- tst_QXmlStream
| FALSE | never evaluated |
| 0-56 |
300 | ptr->mutex.unlock(); | - |
301 | onlineConfigurations.insert(ptr->id); | - |
302 | if (!firstUpdate && onlineConfigurations.count() == 1)TRUE | evaluated 56 times by 17 testsEvaluated by:- tst_NetworkSelfTest
- tst_QAbstractNetworkCache
- tst_QFtp
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkConfiguration
- tst_QNetworkConfigurationManager
- tst_QNetworkDiskCache
- tst_QNetworkInterface
- tst_QNetworkProxyFactory
- tst_QNetworkSession
- tst_QTcpServer
- tst_QUdpSocket
- tst_QXmlInputSource
- tst_QXmlStream
| FALSE | never evaluated |
TRUE | evaluated 18 times by 16 testsEvaluated by:- tst_NetworkSelfTest
- tst_QAbstractNetworkCache
- tst_QFtp
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkConfiguration
- tst_QNetworkConfigurationManager
- tst_QNetworkDiskCache
- tst_QNetworkInterface
- tst_QNetworkProxyFactory
- tst_QTcpServer
- tst_QUdpSocket
- tst_QXmlInputSource
- tst_QXmlStream
| FALSE | evaluated 38 times by 17 testsEvaluated by:- tst_NetworkSelfTest
- tst_QAbstractNetworkCache
- tst_QFtp
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkConfiguration
- tst_QNetworkConfigurationManager
- tst_QNetworkDiskCache
- tst_QNetworkInterface
- tst_QNetworkProxyFactory
- tst_QNetworkSession
- tst_QTcpServer
- tst_QUdpSocket
- tst_QXmlInputSource
- tst_QXmlStream
|
| 0-56 |
303 | emit onlineStateChanged(true);executed 18 times by 16 tests: onlineStateChanged(true); Executed by:- tst_NetworkSelfTest
- tst_QAbstractNetworkCache
- tst_QFtp
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkConfiguration
- tst_QNetworkConfigurationManager
- tst_QNetworkDiskCache
- tst_QNetworkInterface
- tst_QNetworkProxyFactory
- tst_QTcpServer
- tst_QUdpSocket
- tst_QXmlInputSource
- tst_QXmlStream
| 18 |
304 | } else {executed 56 times by 17 tests: end of block Executed by:- tst_NetworkSelfTest
- tst_QAbstractNetworkCache
- tst_QFtp
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkConfiguration
- tst_QNetworkConfigurationManager
- tst_QNetworkDiskCache
- tst_QNetworkInterface
- tst_QNetworkProxyFactory
- tst_QNetworkSession
- tst_QTcpServer
- tst_QUdpSocket
- tst_QXmlInputSource
- tst_QXmlStream
| 56 |
305 | ptr->mutex.unlock(); | - |
306 | } never executed: end of block | 0 |
307 | } | - |
308 | | - |
309 | void QNetworkConfigurationManagerPrivate::configurationRemoved(QNetworkConfigurationPrivatePointer ptr) | - |
310 | { | - |
311 | QMutexLocker locker(&mutex); | - |
312 | | - |
313 | ptr->mutex.lock(); | - |
314 | ptr->isValid = false; | - |
315 | ptr->mutex.unlock(); | - |
316 | | - |
317 | if (!firstUpdate) {TRUE | never evaluated | FALSE | never evaluated |
| 0 |
318 | QNetworkConfiguration item; | - |
319 | item.d = ptr; | - |
320 | emit configurationRemoved(item); | - |
321 | } never executed: end of block | 0 |
322 | | - |
323 | onlineConfigurations.remove(ptr->id); | - |
324 | if (!firstUpdate && onlineConfigurations.isEmpty())TRUE | never evaluated | FALSE | never evaluated |
TRUE | never evaluated | FALSE | never evaluated |
| 0 |
325 | emit onlineStateChanged(false); never executed: onlineStateChanged(false); | 0 |
326 | } never executed: end of block | 0 |
327 | | - |
328 | void QNetworkConfigurationManagerPrivate::configurationChanged(QNetworkConfigurationPrivatePointer ptr) | - |
329 | { | - |
330 | QMutexLocker locker(&mutex); | - |
331 | | - |
332 | if (!firstUpdate) {TRUE | never evaluated | FALSE | never evaluated |
| 0 |
333 | QNetworkConfiguration item; | - |
334 | item.d = ptr; | - |
335 | emit configurationChanged(item); | - |
336 | } never executed: end of block | 0 |
337 | | - |
338 | bool previous = !onlineConfigurations.isEmpty(); | - |
339 | | - |
340 | ptr->mutex.lock(); | - |
341 | if (ptr->state == QNetworkConfiguration::Active)TRUE | never evaluated | FALSE | never evaluated |
| 0 |
342 | onlineConfigurations.insert(ptr->id); never executed: onlineConfigurations.insert(ptr->id); | 0 |
343 | else | - |
344 | onlineConfigurations.remove(ptr->id); never executed: onlineConfigurations.remove(ptr->id); | 0 |
345 | ptr->mutex.unlock(); | - |
346 | | - |
347 | bool online = !onlineConfigurations.isEmpty(); | - |
348 | | - |
349 | if (!firstUpdate && online != previous)TRUE | never evaluated | FALSE | never evaluated |
TRUE | never evaluated | FALSE | never evaluated |
| 0 |
350 | emit onlineStateChanged(online); never executed: onlineStateChanged(online); | 0 |
351 | } never executed: end of block | 0 |
352 | | - |
353 | void QNetworkConfigurationManagerPrivate::updateConfigurations() | - |
354 | { | - |
355 | typedef QMultiMap<int, QString> PluginKeyMap; | - |
356 | typedef PluginKeyMap::const_iterator PluginKeyMapConstIterator; | - |
357 | QMutexLocker locker(&mutex); | - |
358 | | - |
359 | if (firstUpdate) {TRUE | evaluated 18 times by 16 testsEvaluated by:- tst_NetworkSelfTest
- tst_QAbstractNetworkCache
- tst_QFtp
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkConfiguration
- tst_QNetworkConfigurationManager
- tst_QNetworkDiskCache
- tst_QNetworkInterface
- tst_QNetworkProxyFactory
- tst_QTcpServer
- tst_QUdpSocket
- tst_QXmlInputSource
- tst_QXmlStream
| FALSE | evaluated 274 times by 18 testsEvaluated by:- tst_NetworkSelfTest
- tst_QAbstractNetworkCache
- tst_QFtp
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkConfiguration
- tst_QNetworkConfigurationManager
- tst_QNetworkDiskCache
- tst_QNetworkInterface
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QNetworkSession
- tst_QTcpServer
- tst_QUdpSocket
- tst_QXmlInputSource
- tst_QXmlStream
|
| 18-274 |
360 | if (qobject_cast<QBearerEngine *>(sender()))TRUE | never evaluated | FALSE | evaluated 18 times by 16 testsEvaluated by:- tst_NetworkSelfTest
- tst_QAbstractNetworkCache
- tst_QFtp
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkConfiguration
- tst_QNetworkConfigurationManager
- tst_QNetworkDiskCache
- tst_QNetworkInterface
- tst_QNetworkProxyFactory
- tst_QTcpServer
- tst_QUdpSocket
- tst_QXmlInputSource
- tst_QXmlStream
|
| 0-18 |
361 | return; never executed: return; | 0 |
362 | | - |
363 | updating = false; | - |
364 | | - |
365 | bool envOK = false; | - |
366 | const int skipGeneric = qEnvironmentVariableIntValue("QT_EXCLUDE_GENERIC_BEARER", &envOK); | - |
367 | QBearerEngine *generic = 0; | - |
368 | static QFactoryLoader loader(QBearerEngineFactoryInterface_iid, QLatin1String("/bearer")); | - |
369 | QFactoryLoader *l = &loader; | - |
370 | const PluginKeyMap keyMap = l->keyMap(); | - |
371 | const PluginKeyMapConstIterator cend = keyMap.constEnd(); | - |
372 | QStringList addedEngines; | - |
373 | for (PluginKeyMapConstIterator it = keyMap.constBegin(); it != cend; ++it) {TRUE | evaluated 54 times by 16 testsEvaluated by:- tst_NetworkSelfTest
- tst_QAbstractNetworkCache
- tst_QFtp
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkConfiguration
- tst_QNetworkConfigurationManager
- tst_QNetworkDiskCache
- tst_QNetworkInterface
- tst_QNetworkProxyFactory
- tst_QTcpServer
- tst_QUdpSocket
- tst_QXmlInputSource
- tst_QXmlStream
| FALSE | evaluated 18 times by 16 testsEvaluated by:- tst_NetworkSelfTest
- tst_QAbstractNetworkCache
- tst_QFtp
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkConfiguration
- tst_QNetworkConfigurationManager
- tst_QNetworkDiskCache
- tst_QNetworkInterface
- tst_QNetworkProxyFactory
- tst_QTcpServer
- tst_QUdpSocket
- tst_QXmlInputSource
- tst_QXmlStream
|
| 18-54 |
374 | const QString &key = it.value(); | - |
375 | if (addedEngines.contains(key))TRUE | never evaluated | FALSE | evaluated 54 times by 16 testsEvaluated by:- tst_NetworkSelfTest
- tst_QAbstractNetworkCache
- tst_QFtp
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkConfiguration
- tst_QNetworkConfigurationManager
- tst_QNetworkDiskCache
- tst_QNetworkInterface
- tst_QNetworkProxyFactory
- tst_QTcpServer
- tst_QUdpSocket
- tst_QXmlInputSource
- tst_QXmlStream
|
| 0-54 |
376 | continue; never executed: continue; | 0 |
377 | | - |
378 | addedEngines.append(key); | - |
379 | if (QBearerEngine *engine = qLoadPlugin<QBearerEngine, QBearerEnginePlugin>(l, key)) {TRUE | evaluated 36 times by 16 testsEvaluated by:- tst_NetworkSelfTest
- tst_QAbstractNetworkCache
- tst_QFtp
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkConfiguration
- tst_QNetworkConfigurationManager
- tst_QNetworkDiskCache
- tst_QNetworkInterface
- tst_QNetworkProxyFactory
- tst_QTcpServer
- tst_QUdpSocket
- tst_QXmlInputSource
- tst_QXmlStream
| FALSE | evaluated 18 times by 16 testsEvaluated by:- tst_NetworkSelfTest
- tst_QAbstractNetworkCache
- tst_QFtp
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkConfiguration
- tst_QNetworkConfigurationManager
- tst_QNetworkDiskCache
- tst_QNetworkInterface
- tst_QNetworkProxyFactory
- tst_QTcpServer
- tst_QUdpSocket
- tst_QXmlInputSource
- tst_QXmlStream
|
| 18-36 |
380 | if (key == QLatin1String("generic"))TRUE | evaluated 18 times by 16 testsEvaluated by:- tst_NetworkSelfTest
- tst_QAbstractNetworkCache
- tst_QFtp
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkConfiguration
- tst_QNetworkConfigurationManager
- tst_QNetworkDiskCache
- tst_QNetworkInterface
- tst_QNetworkProxyFactory
- tst_QTcpServer
- tst_QUdpSocket
- tst_QXmlInputSource
- tst_QXmlStream
| FALSE | evaluated 18 times by 16 testsEvaluated by:- tst_NetworkSelfTest
- tst_QAbstractNetworkCache
- tst_QFtp
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkConfiguration
- tst_QNetworkConfigurationManager
- tst_QNetworkDiskCache
- tst_QNetworkInterface
- tst_QNetworkProxyFactory
- tst_QTcpServer
- tst_QUdpSocket
- tst_QXmlInputSource
- tst_QXmlStream
|
| 18 |
381 | generic = engine;executed 18 times by 16 tests: generic = engine; Executed by:- tst_NetworkSelfTest
- tst_QAbstractNetworkCache
- tst_QFtp
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkConfiguration
- tst_QNetworkConfigurationManager
- tst_QNetworkDiskCache
- tst_QNetworkInterface
- tst_QNetworkProxyFactory
- tst_QTcpServer
- tst_QUdpSocket
- tst_QXmlInputSource
- tst_QXmlStream
| 18 |
382 | else | - |
383 | sessionEngines.append(engine);executed 18 times by 16 tests: sessionEngines.append(engine); Executed by:- tst_NetworkSelfTest
- tst_QAbstractNetworkCache
- tst_QFtp
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkConfiguration
- tst_QNetworkConfigurationManager
- tst_QNetworkDiskCache
- tst_QNetworkInterface
- tst_QNetworkProxyFactory
- tst_QTcpServer
- tst_QUdpSocket
- tst_QXmlInputSource
- tst_QXmlStream
| 18 |
384 | | - |
385 | engine->moveToThread(bearerThread); | - |
386 | | - |
387 | connect(engine, SIGNAL(updateCompleted()), | - |
388 | this, SLOT(updateConfigurations()), | - |
389 | Qt::QueuedConnection); | - |
390 | connect(engine, SIGNAL(configurationAdded(QNetworkConfigurationPrivatePointer)), | - |
391 | this, SLOT(configurationAdded(QNetworkConfigurationPrivatePointer)), | - |
392 | Qt::QueuedConnection); | - |
393 | connect(engine, SIGNAL(configurationRemoved(QNetworkConfigurationPrivatePointer)), | - |
394 | this, SLOT(configurationRemoved(QNetworkConfigurationPrivatePointer)), | - |
395 | Qt::QueuedConnection); | - |
396 | connect(engine, SIGNAL(configurationChanged(QNetworkConfigurationPrivatePointer)), | - |
397 | this, SLOT(configurationChanged(QNetworkConfigurationPrivatePointer)), | - |
398 | Qt::QueuedConnection); | - |
399 | }executed 36 times by 16 tests: end of block Executed by:- tst_NetworkSelfTest
- tst_QAbstractNetworkCache
- tst_QFtp
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkConfiguration
- tst_QNetworkConfigurationManager
- tst_QNetworkDiskCache
- tst_QNetworkInterface
- tst_QNetworkProxyFactory
- tst_QTcpServer
- tst_QUdpSocket
- tst_QXmlInputSource
- tst_QXmlStream
| 36 |
400 | }executed 54 times by 16 tests: end of block Executed by:- tst_NetworkSelfTest
- tst_QAbstractNetworkCache
- tst_QFtp
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkConfiguration
- tst_QNetworkConfigurationManager
- tst_QNetworkDiskCache
- tst_QNetworkInterface
- tst_QNetworkProxyFactory
- tst_QTcpServer
- tst_QUdpSocket
- tst_QXmlInputSource
- tst_QXmlStream
| 54 |
401 | | - |
402 | if (generic) {TRUE | evaluated 18 times by 16 testsEvaluated by:- tst_NetworkSelfTest
- tst_QAbstractNetworkCache
- tst_QFtp
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkConfiguration
- tst_QNetworkConfigurationManager
- tst_QNetworkDiskCache
- tst_QNetworkInterface
- tst_QNetworkProxyFactory
- tst_QTcpServer
- tst_QUdpSocket
- tst_QXmlInputSource
- tst_QXmlStream
| FALSE | never evaluated |
| 0-18 |
403 | if (!envOK || skipGeneric <= 0)TRUE | evaluated 18 times by 16 testsEvaluated by:- tst_NetworkSelfTest
- tst_QAbstractNetworkCache
- tst_QFtp
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkConfiguration
- tst_QNetworkConfigurationManager
- tst_QNetworkDiskCache
- tst_QNetworkInterface
- tst_QNetworkProxyFactory
- tst_QTcpServer
- tst_QUdpSocket
- tst_QXmlInputSource
- tst_QXmlStream
| FALSE | never evaluated |
TRUE | never evaluated | FALSE | never evaluated |
| 0-18 |
404 | sessionEngines.append(generic);executed 18 times by 16 tests: sessionEngines.append(generic); Executed by:- tst_NetworkSelfTest
- tst_QAbstractNetworkCache
- tst_QFtp
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkConfiguration
- tst_QNetworkConfigurationManager
- tst_QNetworkDiskCache
- tst_QNetworkInterface
- tst_QNetworkProxyFactory
- tst_QTcpServer
- tst_QUdpSocket
- tst_QXmlInputSource
- tst_QXmlStream
| 18 |
405 | else | - |
406 | delete generic; never executed: delete generic; | 0 |
407 | } | - |
408 | }executed 18 times by 16 tests: end of block Executed by:- tst_NetworkSelfTest
- tst_QAbstractNetworkCache
- tst_QFtp
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkConfiguration
- tst_QNetworkConfigurationManager
- tst_QNetworkDiskCache
- tst_QNetworkInterface
- tst_QNetworkProxyFactory
- tst_QTcpServer
- tst_QUdpSocket
- tst_QXmlInputSource
- tst_QXmlStream
| 18 |
409 | | - |
410 | QBearerEngine *engine = qobject_cast<QBearerEngine *>(sender()); | - |
411 | if (engine && !updatingEngines.isEmpty())TRUE | evaluated 274 times by 18 testsEvaluated by:- tst_NetworkSelfTest
- tst_QAbstractNetworkCache
- tst_QFtp
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkConfiguration
- tst_QNetworkConfigurationManager
- tst_QNetworkDiskCache
- tst_QNetworkInterface
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QNetworkSession
- tst_QTcpServer
- tst_QUdpSocket
- tst_QXmlInputSource
- tst_QXmlStream
| FALSE | evaluated 18 times by 16 testsEvaluated by:- tst_NetworkSelfTest
- tst_QAbstractNetworkCache
- tst_QFtp
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkConfiguration
- tst_QNetworkConfigurationManager
- tst_QNetworkDiskCache
- tst_QNetworkInterface
- tst_QNetworkProxyFactory
- tst_QTcpServer
- tst_QUdpSocket
- tst_QXmlInputSource
- tst_QXmlStream
|
TRUE | evaluated 168 times by 18 testsEvaluated by:- tst_NetworkSelfTest
- tst_QAbstractNetworkCache
- tst_QFtp
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkConfiguration
- tst_QNetworkConfigurationManager
- tst_QNetworkDiskCache
- tst_QNetworkInterface
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QNetworkSession
- tst_QTcpServer
- tst_QUdpSocket
- tst_QXmlInputSource
- tst_QXmlStream
| FALSE | evaluated 106 times by 18 testsEvaluated by:- tst_NetworkSelfTest
- tst_QAbstractNetworkCache
- tst_QFtp
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkConfiguration
- tst_QNetworkConfigurationManager
- tst_QNetworkDiskCache
- tst_QNetworkInterface
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QNetworkSession
- tst_QTcpServer
- tst_QUdpSocket
- tst_QXmlInputSource
- tst_QXmlStream
|
| 18-274 |
412 | updatingEngines.remove(engine);executed 168 times by 18 tests: updatingEngines.remove(engine); Executed by:- tst_NetworkSelfTest
- tst_QAbstractNetworkCache
- tst_QFtp
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkConfiguration
- tst_QNetworkConfigurationManager
- tst_QNetworkDiskCache
- tst_QNetworkInterface
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QNetworkSession
- tst_QTcpServer
- tst_QUdpSocket
- tst_QXmlInputSource
- tst_QXmlStream
| 168 |
413 | | - |
414 | if (updating && updatingEngines.isEmpty()) {TRUE | evaluated 168 times by 18 testsEvaluated by:- tst_NetworkSelfTest
- tst_QAbstractNetworkCache
- tst_QFtp
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkConfiguration
- tst_QNetworkConfigurationManager
- tst_QNetworkDiskCache
- tst_QNetworkInterface
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QNetworkSession
- tst_QTcpServer
- tst_QUdpSocket
- tst_QXmlInputSource
- tst_QXmlStream
| FALSE | evaluated 124 times by 18 testsEvaluated by:- tst_NetworkSelfTest
- tst_QAbstractNetworkCache
- tst_QFtp
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkConfiguration
- tst_QNetworkConfigurationManager
- tst_QNetworkDiskCache
- tst_QNetworkInterface
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QNetworkSession
- tst_QTcpServer
- tst_QUdpSocket
- tst_QXmlInputSource
- tst_QXmlStream
|
TRUE | evaluated 82 times by 18 testsEvaluated by:- tst_NetworkSelfTest
- tst_QAbstractNetworkCache
- tst_QFtp
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkConfiguration
- tst_QNetworkConfigurationManager
- tst_QNetworkDiskCache
- tst_QNetworkInterface
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QNetworkSession
- tst_QTcpServer
- tst_QUdpSocket
- tst_QXmlInputSource
- tst_QXmlStream
| FALSE | evaluated 86 times by 18 testsEvaluated by:- tst_NetworkSelfTest
- tst_QAbstractNetworkCache
- tst_QFtp
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkConfiguration
- tst_QNetworkConfigurationManager
- tst_QNetworkDiskCache
- tst_QNetworkInterface
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QNetworkSession
- tst_QTcpServer
- tst_QUdpSocket
- tst_QXmlInputSource
- tst_QXmlStream
|
| 82-168 |
415 | updating = false; | - |
416 | emit configurationUpdateComplete(); | - |
417 | }executed 82 times by 18 tests: end of block Executed by:- tst_NetworkSelfTest
- tst_QAbstractNetworkCache
- tst_QFtp
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkConfiguration
- tst_QNetworkConfigurationManager
- tst_QNetworkDiskCache
- tst_QNetworkInterface
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QNetworkSession
- tst_QTcpServer
- tst_QUdpSocket
- tst_QXmlInputSource
- tst_QXmlStream
| 82 |
418 | | - |
419 | if (engine && !pollingEngines.isEmpty()) {TRUE | evaluated 274 times by 18 testsEvaluated by:- tst_NetworkSelfTest
- tst_QAbstractNetworkCache
- tst_QFtp
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkConfiguration
- tst_QNetworkConfigurationManager
- tst_QNetworkDiskCache
- tst_QNetworkInterface
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QNetworkSession
- tst_QTcpServer
- tst_QUdpSocket
- tst_QXmlInputSource
- tst_QXmlStream
| FALSE | evaluated 18 times by 16 testsEvaluated by:- tst_NetworkSelfTest
- tst_QAbstractNetworkCache
- tst_QFtp
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkConfiguration
- tst_QNetworkConfigurationManager
- tst_QNetworkDiskCache
- tst_QNetworkInterface
- tst_QNetworkProxyFactory
- tst_QTcpServer
- tst_QUdpSocket
- tst_QXmlInputSource
- tst_QXmlStream
|
TRUE | evaluated 51 times by 4 testsEvaluated by:- tst_QHostInfo
- tst_QNetworkReply
- tst_QNetworkSession
- tst_QUdpSocket
| FALSE | evaluated 223 times by 18 testsEvaluated by:- tst_NetworkSelfTest
- tst_QAbstractNetworkCache
- tst_QFtp
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkConfiguration
- tst_QNetworkConfigurationManager
- tst_QNetworkDiskCache
- tst_QNetworkInterface
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QNetworkSession
- tst_QTcpServer
- tst_QUdpSocket
- tst_QXmlInputSource
- tst_QXmlStream
|
| 18-274 |
420 | pollingEngines.remove(engine); | - |
421 | if (pollingEngines.isEmpty())TRUE | evaluated 51 times by 4 testsEvaluated by:- tst_QHostInfo
- tst_QNetworkReply
- tst_QNetworkSession
- tst_QUdpSocket
| FALSE | never evaluated |
| 0-51 |
422 | startPolling();executed 51 times by 4 tests: startPolling(); Executed by:- tst_QHostInfo
- tst_QNetworkReply
- tst_QNetworkSession
- tst_QUdpSocket
| 51 |
423 | }executed 51 times by 4 tests: end of block Executed by:- tst_QHostInfo
- tst_QNetworkReply
- tst_QNetworkSession
- tst_QUdpSocket
| 51 |
424 | | - |
425 | if (firstUpdate) {TRUE | evaluated 18 times by 16 testsEvaluated by:- tst_NetworkSelfTest
- tst_QAbstractNetworkCache
- tst_QFtp
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkConfiguration
- tst_QNetworkConfigurationManager
- tst_QNetworkDiskCache
- tst_QNetworkInterface
- tst_QNetworkProxyFactory
- tst_QTcpServer
- tst_QUdpSocket
- tst_QXmlInputSource
- tst_QXmlStream
| FALSE | evaluated 274 times by 18 testsEvaluated by:- tst_NetworkSelfTest
- tst_QAbstractNetworkCache
- tst_QFtp
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkConfiguration
- tst_QNetworkConfigurationManager
- tst_QNetworkDiskCache
- tst_QNetworkInterface
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QNetworkSession
- tst_QTcpServer
- tst_QUdpSocket
- tst_QXmlInputSource
- tst_QXmlStream
|
| 18-274 |
426 | firstUpdate = false; | - |
427 | const QList<QBearerEngine*> enginesToInitialize = sessionEngines; | - |
428 | locker.unlock(); | - |
429 | for (QBearerEngine* engine : enginesToInitialize) | - |
430 | QMetaObject::invokeMethod(engine, "initialize", Qt::BlockingQueuedConnection);executed 36 times by 16 tests: QMetaObject::invokeMethod(engine, "initialize", Qt::BlockingQueuedConnection); Executed by:- tst_NetworkSelfTest
- tst_QAbstractNetworkCache
- tst_QFtp
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkConfiguration
- tst_QNetworkConfigurationManager
- tst_QNetworkDiskCache
- tst_QNetworkInterface
- tst_QNetworkProxyFactory
- tst_QTcpServer
- tst_QUdpSocket
- tst_QXmlInputSource
- tst_QXmlStream
| 36 |
431 | }executed 18 times by 16 tests: end of block Executed by:- tst_NetworkSelfTest
- tst_QAbstractNetworkCache
- tst_QFtp
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkConfiguration
- tst_QNetworkConfigurationManager
- tst_QNetworkDiskCache
- tst_QNetworkInterface
- tst_QNetworkProxyFactory
- tst_QTcpServer
- tst_QUdpSocket
- tst_QXmlInputSource
- tst_QXmlStream
| 18 |
432 | }executed 292 times by 18 tests: end of block Executed by:- tst_NetworkSelfTest
- tst_QAbstractNetworkCache
- tst_QFtp
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkConfiguration
- tst_QNetworkConfigurationManager
- tst_QNetworkDiskCache
- tst_QNetworkInterface
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QNetworkSession
- tst_QTcpServer
- tst_QUdpSocket
- tst_QXmlInputSource
- tst_QXmlStream
| 292 |
433 | | - |
434 | void QNetworkConfigurationManagerPrivate::performAsyncConfigurationUpdate() | - |
435 | { | - |
436 | QMutexLocker locker(&mutex); | - |
437 | | - |
438 | if (sessionEngines.isEmpty()) {TRUE | never evaluated | FALSE | evaluated 86 times by 18 testsEvaluated by:- tst_NetworkSelfTest
- tst_QAbstractNetworkCache
- tst_QFtp
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkConfiguration
- tst_QNetworkConfigurationManager
- tst_QNetworkDiskCache
- tst_QNetworkInterface
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QNetworkSession
- tst_QTcpServer
- tst_QUdpSocket
- tst_QXmlInputSource
- tst_QXmlStream
|
| 0-86 |
439 | emit configurationUpdateComplete(); | - |
440 | return; never executed: return; | 0 |
441 | } | - |
442 | | - |
443 | updating = true; | - |
444 | | - |
445 | for (QBearerEngine *engine : qAsConst(sessionEngines)) { | - |
446 | updatingEngines.insert(engine); | - |
447 | QMetaObject::invokeMethod(engine, "requestUpdate"); | - |
448 | }executed 172 times by 18 tests: end of block Executed by:- tst_NetworkSelfTest
- tst_QAbstractNetworkCache
- tst_QFtp
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkConfiguration
- tst_QNetworkConfigurationManager
- tst_QNetworkDiskCache
- tst_QNetworkInterface
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QNetworkSession
- tst_QTcpServer
- tst_QUdpSocket
- tst_QXmlInputSource
- tst_QXmlStream
| 172 |
449 | }executed 86 times by 18 tests: end of block Executed by:- tst_NetworkSelfTest
- tst_QAbstractNetworkCache
- tst_QFtp
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkConfiguration
- tst_QNetworkConfigurationManager
- tst_QNetworkDiskCache
- tst_QNetworkInterface
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QNetworkSession
- tst_QTcpServer
- tst_QUdpSocket
- tst_QXmlInputSource
- tst_QXmlStream
| 86 |
450 | | - |
451 | QList<QBearerEngine *> QNetworkConfigurationManagerPrivate::engines() const | - |
452 | { | - |
453 | QMutexLocker locker(&mutex); | - |
454 | | - |
455 | return sessionEngines;executed 156 times by 15 tests: return sessionEngines; Executed by:- tst_NetworkSelfTest
- tst_QAbstractNetworkCache
- tst_QFtp
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QNetworkSession
- tst_QTcpServer
- tst_QUdpSocket
- tst_QXmlInputSource
- tst_Spdy
| 156 |
456 | } | - |
457 | | - |
458 | void QNetworkConfigurationManagerPrivate::startPolling() | - |
459 | { | - |
460 | QMutexLocker locker(&mutex); | - |
461 | if (!pollTimer) {TRUE | evaluated 19 times by 17 testsEvaluated by:- tst_NetworkSelfTest
- tst_QAbstractNetworkCache
- tst_QFtp
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkConfiguration
- tst_QNetworkConfigurationManager
- tst_QNetworkDiskCache
- tst_QNetworkInterface
- tst_QNetworkProxyFactory
- tst_QNetworkSession
- tst_QTcpServer
- tst_QUdpSocket
- tst_QXmlInputSource
- tst_QXmlStream
| FALSE | evaluated 64 times by 10 testsEvaluated by:- tst_QHostInfo
- tst_QNetworkAccessManager
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkConfiguration
- tst_QNetworkConfigurationManager
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QNetworkSession
- tst_QUdpSocket
|
| 19-64 |
462 | pollTimer = new QTimer(this); | - |
463 | bool ok; | - |
464 | int interval = qEnvironmentVariableIntValue("QT_BEARER_POLL_TIMEOUT", &ok); | - |
465 | if (!ok)TRUE | evaluated 19 times by 17 testsEvaluated by:- tst_NetworkSelfTest
- tst_QAbstractNetworkCache
- tst_QFtp
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkConfiguration
- tst_QNetworkConfigurationManager
- tst_QNetworkDiskCache
- tst_QNetworkInterface
- tst_QNetworkProxyFactory
- tst_QNetworkSession
- tst_QTcpServer
- tst_QUdpSocket
- tst_QXmlInputSource
- tst_QXmlStream
| FALSE | never evaluated |
| 0-19 |
466 | interval = 10000;executed 19 times by 17 tests: interval = 10000; Executed by:- tst_NetworkSelfTest
- tst_QAbstractNetworkCache
- tst_QFtp
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkConfiguration
- tst_QNetworkConfigurationManager
- tst_QNetworkDiskCache
- tst_QNetworkInterface
- tst_QNetworkProxyFactory
- tst_QNetworkSession
- tst_QTcpServer
- tst_QUdpSocket
- tst_QXmlInputSource
- tst_QXmlStream
| 19 |
467 | pollTimer->setInterval(interval); | - |
468 | pollTimer->setSingleShot(true); | - |
469 | connect(pollTimer, SIGNAL(timeout()), this, SLOT(pollEngines())); | - |
470 | }executed 19 times by 17 tests: end of block Executed by:- tst_NetworkSelfTest
- tst_QAbstractNetworkCache
- tst_QFtp
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkConfiguration
- tst_QNetworkConfigurationManager
- tst_QNetworkDiskCache
- tst_QNetworkInterface
- tst_QNetworkProxyFactory
- tst_QNetworkSession
- tst_QTcpServer
- tst_QUdpSocket
- tst_QXmlInputSource
- tst_QXmlStream
| 19 |
471 | | - |
472 | if (pollTimer->isActive())TRUE | evaluated 13 times by 6 testsEvaluated by:- tst_QNetworkAccessManager
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkConfiguration
- tst_QNetworkConfigurationManager
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
| FALSE | evaluated 70 times by 18 testsEvaluated by:- tst_NetworkSelfTest
- tst_QAbstractNetworkCache
- tst_QFtp
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkConfiguration
- tst_QNetworkConfigurationManager
- tst_QNetworkDiskCache
- tst_QNetworkInterface
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QNetworkSession
- tst_QTcpServer
- tst_QUdpSocket
- tst_QXmlInputSource
- tst_QXmlStream
|
| 13-70 |
473 | return;executed 13 times by 6 tests: return; Executed by:- tst_QNetworkAccessManager
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkConfiguration
- tst_QNetworkConfigurationManager
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
| 13 |
474 | | - |
475 | for (QBearerEngine *engine : qAsConst(sessionEngines)) { | - |
476 | if (engine->requiresPolling() && (forcedPolling || engine->configurationsInUse())) {TRUE | evaluated 70 times by 18 testsEvaluated by:- tst_NetworkSelfTest
- tst_QAbstractNetworkCache
- tst_QFtp
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkConfiguration
- tst_QNetworkConfigurationManager
- tst_QNetworkDiskCache
- tst_QNetworkInterface
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QNetworkSession
- tst_QTcpServer
- tst_QUdpSocket
- tst_QXmlInputSource
- tst_QXmlStream
| FALSE | evaluated 70 times by 18 testsEvaluated by:- tst_NetworkSelfTest
- tst_QAbstractNetworkCache
- tst_QFtp
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkConfiguration
- tst_QNetworkConfigurationManager
- tst_QNetworkDiskCache
- tst_QNetworkInterface
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QNetworkSession
- tst_QTcpServer
- tst_QUdpSocket
- tst_QXmlInputSource
- tst_QXmlStream
|
TRUE | evaluated 66 times by 16 testsEvaluated by:- tst_NetworkSelfTest
- tst_QAbstractNetworkCache
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkConfiguration
- tst_QNetworkConfigurationManager
- tst_QNetworkDiskCache
- tst_QNetworkInterface
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QNetworkSession
- tst_QUdpSocket
- tst_QXmlInputSource
- tst_QXmlStream
| FALSE | evaluated 4 times by 3 testsEvaluated by:- tst_QFtp
- tst_QNetworkConfigurationManager
- tst_QTcpServer
|
TRUE | never evaluated | FALSE | evaluated 4 times by 3 testsEvaluated by:- tst_QFtp
- tst_QNetworkConfigurationManager
- tst_QTcpServer
|
| 0-70 |
477 | pollTimer->start(); | - |
478 | break;executed 66 times by 16 tests: break; Executed by:- tst_NetworkSelfTest
- tst_QAbstractNetworkCache
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkConfiguration
- tst_QNetworkConfigurationManager
- tst_QNetworkDiskCache
- tst_QNetworkInterface
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QNetworkSession
- tst_QUdpSocket
- tst_QXmlInputSource
- tst_QXmlStream
| 66 |
479 | } | - |
480 | }executed 74 times by 18 tests: end of block Executed by:- tst_NetworkSelfTest
- tst_QAbstractNetworkCache
- tst_QFtp
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkConfiguration
- tst_QNetworkConfigurationManager
- tst_QNetworkDiskCache
- tst_QNetworkInterface
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QNetworkSession
- tst_QTcpServer
- tst_QUdpSocket
- tst_QXmlInputSource
- tst_QXmlStream
| 74 |
481 | performAsyncConfigurationUpdate(); | - |
482 | }executed 70 times by 18 tests: end of block Executed by:- tst_NetworkSelfTest
- tst_QAbstractNetworkCache
- tst_QFtp
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkConfiguration
- tst_QNetworkConfigurationManager
- tst_QNetworkDiskCache
- tst_QNetworkInterface
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QNetworkSession
- tst_QTcpServer
- tst_QUdpSocket
- tst_QXmlInputSource
- tst_QXmlStream
| 70 |
483 | | - |
484 | void QNetworkConfigurationManagerPrivate::pollEngines() | - |
485 | { | - |
486 | QMutexLocker locker(&mutex); | - |
487 | | - |
488 | for (QBearerEngine *engine : qAsConst(sessionEngines)) { | - |
489 | if (engine->requiresPolling() && (forcedPolling || engine->configurationsInUse())) {TRUE | evaluated 51 times by 4 testsEvaluated by:- tst_QHostInfo
- tst_QNetworkReply
- tst_QNetworkSession
- tst_QUdpSocket
| FALSE | evaluated 51 times by 4 testsEvaluated by:- tst_QHostInfo
- tst_QNetworkReply
- tst_QNetworkSession
- tst_QUdpSocket
|
TRUE | evaluated 51 times by 4 testsEvaluated by:- tst_QHostInfo
- tst_QNetworkReply
- tst_QNetworkSession
- tst_QUdpSocket
| FALSE | never evaluated |
TRUE | never evaluated | FALSE | never evaluated |
| 0-51 |
490 | pollingEngines.insert(engine); | - |
491 | QMetaObject::invokeMethod(engine, "requestUpdate"); | - |
492 | }executed 51 times by 4 tests: end of block Executed by:- tst_QHostInfo
- tst_QNetworkReply
- tst_QNetworkSession
- tst_QUdpSocket
| 51 |
493 | }executed 102 times by 4 tests: end of block Executed by:- tst_QHostInfo
- tst_QNetworkReply
- tst_QNetworkSession
- tst_QUdpSocket
| 102 |
494 | }executed 51 times by 4 tests: end of block Executed by:- tst_QHostInfo
- tst_QNetworkReply
- tst_QNetworkSession
- tst_QUdpSocket
| 51 |
495 | | - |
496 | void QNetworkConfigurationManagerPrivate::enablePolling() | - |
497 | { | - |
498 | QMutexLocker locker(&mutex); | - |
499 | | - |
500 | ++forcedPolling; | - |
501 | | - |
502 | if (forcedPolling == 1)TRUE | evaluated 31 times by 16 testsEvaluated by:- tst_NetworkSelfTest
- tst_QAbstractNetworkCache
- tst_QFtp
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkConfiguration
- tst_QNetworkConfigurationManager
- tst_QNetworkDiskCache
- tst_QNetworkInterface
- tst_QNetworkProxyFactory
- tst_QTcpServer
- tst_QUdpSocket
- tst_QXmlInputSource
- tst_QXmlStream
| FALSE | evaluated 401 times by 9 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkReply
- tst_QNetworkSession
- tst_QXmlInputSource
- tst_Spdy
|
| 31-401 |
503 | QMetaObject::invokeMethod(this, "startPolling");executed 31 times by 16 tests: QMetaObject::invokeMethod(this, "startPolling"); Executed by:- tst_NetworkSelfTest
- tst_QAbstractNetworkCache
- tst_QFtp
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkConfiguration
- tst_QNetworkConfigurationManager
- tst_QNetworkDiskCache
- tst_QNetworkInterface
- tst_QNetworkProxyFactory
- tst_QTcpServer
- tst_QUdpSocket
- tst_QXmlInputSource
- tst_QXmlStream
| 31 |
504 | }executed 432 times by 19 tests: end of block Executed by:- tst_NetworkSelfTest
- tst_QAbstractNetworkCache
- tst_QFtp
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkConfiguration
- tst_QNetworkConfigurationManager
- tst_QNetworkDiskCache
- tst_QNetworkInterface
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QNetworkSession
- tst_QTcpServer
- tst_QUdpSocket
- tst_QXmlInputSource
- tst_QXmlStream
- tst_Spdy
| 432 |
505 | | - |
506 | void QNetworkConfigurationManagerPrivate::disablePolling() | - |
507 | { | - |
508 | QMutexLocker locker(&mutex); | - |
509 | | - |
510 | --forcedPolling; | - |
511 | }executed 433 times by 22 tests: end of block Executed by:- tst_QAbstractNetworkCache
- tst_QFtp
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkConfiguration
- tst_QNetworkConfigurationManager
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QNetworkSession
- tst_QTcpServer
- tst_QXmlInputSource
- tst_QXmlStream
- tst_Spdy
- tst_networkselftest - unknown status
- tst_qabstractnetworkcache - unknown status
- tst_qhostinfo - unknown status
- tst_qnetworkinterface - unknown status
- tst_qnetworksession - unknown status
- tst_qudpsocket - unknown status
- tst_spdy - unknown status
| 433 |
512 | | - |
513 | QT_END_NAMESPACE | - |
514 | | - |
515 | #endif // QT_NO_BEARERMANAGEMENT | - |
| | |