diff options
author | Aaron McCarthy <aaron.mccarthy@nokia.com> | 2010-03-23 00:01:49 (GMT) |
---|---|---|
committer | Aaron McCarthy <aaron.mccarthy@nokia.com> | 2010-03-23 00:01:49 (GMT) |
commit | 5e3e89bff7699c9a0c1bb43a331b2982eceb8682 (patch) | |
tree | f480d26a91a29d227bc17cc52abb6ba373693100 /tests/auto/qnetworkaccessmanager | |
parent | 1fdd15b650f291ee63a8ebeb90e8965f95bdea90 (diff) | |
download | Qt-5e3e89bff7699c9a0c1bb43a331b2982eceb8682.zip Qt-5e3e89bff7699c9a0c1bb43a331b2982eceb8682.tar.gz Qt-5e3e89bff7699c9a0c1bb43a331b2982eceb8682.tar.bz2 |
Rename getter function used in test also.
Diffstat (limited to 'tests/auto/qnetworkaccessmanager')
-rw-r--r-- | tests/auto/qnetworkaccessmanager/tst_qnetworkaccessmanager.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/auto/qnetworkaccessmanager/tst_qnetworkaccessmanager.cpp b/tests/auto/qnetworkaccessmanager/tst_qnetworkaccessmanager.cpp index 9267389..375c839 100644 --- a/tests/auto/qnetworkaccessmanager/tst_qnetworkaccessmanager.cpp +++ b/tests/auto/qnetworkaccessmanager/tst_qnetworkaccessmanager.cpp @@ -72,21 +72,21 @@ void tst_QNetworkAccessManager::networkAccessible() QSignalSpy spy(&manager, SIGNAL(networkAccessibleChanged(QNetworkAccessManager::NetworkAccessibility))); - QCOMPARE(manager.isNetworkAccessible(), QNetworkAccessManager::UnknownAccessibility); + QCOMPARE(manager.networkAccessible(), QNetworkAccessManager::UnknownAccessibility); manager.setNetworkAccessible(QNetworkAccessManager::NotAccessible); QCOMPARE(spy.count(), 1); QCOMPARE(spy.takeFirst().at(0).value<QNetworkAccessManager::NetworkAccessibility>(), QNetworkAccessManager::NotAccessible); - QCOMPARE(manager.isNetworkAccessible(), QNetworkAccessManager::NotAccessible); + QCOMPARE(manager.networkAccessible(), QNetworkAccessManager::NotAccessible); manager.setNetworkAccessible(QNetworkAccessManager::Accessible); QCOMPARE(spy.count(), 1); QCOMPARE(spy.takeFirst().at(0).value<QNetworkAccessManager::NetworkAccessibility>(), QNetworkAccessManager::UnknownAccessibility); - QCOMPARE(manager.isNetworkAccessible(), QNetworkAccessManager::UnknownAccessibility); + QCOMPARE(manager.networkAccessible(), QNetworkAccessManager::UnknownAccessibility); QNetworkConfigurationManager configManager; QNetworkConfiguration defaultConfig = configManager.defaultConfiguration(); @@ -96,14 +96,14 @@ void tst_QNetworkAccessManager::networkAccessible() QCOMPARE(spy.count(), 1); QCOMPARE(spy.takeFirst().at(0).value<QNetworkAccessManager::NetworkAccessibility>(), QNetworkAccessManager::Accessible); - QCOMPARE(manager.isNetworkAccessible(), QNetworkAccessManager::Accessible); + QCOMPARE(manager.networkAccessible(), QNetworkAccessManager::Accessible); manager.setNetworkAccessible(QNetworkAccessManager::NotAccessible); QCOMPARE(spy.count(), 1); QCOMPARE(QNetworkAccessManager::NetworkAccessibility(spy.takeFirst().at(0).toInt()), QNetworkAccessManager::NotAccessible); - QCOMPARE(manager.isNetworkAccessible(), QNetworkAccessManager::NotAccessible); + QCOMPARE(manager.networkAccessible(), QNetworkAccessManager::NotAccessible); } } |