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