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