diff options
author | Aaron McCarthy <aaron.mccarthy@jollamobile.com> | 2014-02-19 14:52:07 +1000 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-03-14 12:30:09 +0100 |
commit | d2628aeb6ed1ab30d1a825122dc80cfebb5093d2 (patch) | |
tree | 00cec128c5d264346c871ba9bfcdc9a920dfa52b /tests/auto/nokia_services/routing/tst_routing.cpp | |
parent | 3f4a3acab163fa6675a1513ab1fccdbda7723dd6 (diff) | |
download | qtlocation-d2628aeb6ed1ab30d1a825122dc80cfebb5093d2.tar.gz |
Parse Nokia route response in helper thread.
Complex and really long routes can take multiple seconds to parse. Use
a helper thread to parse route responses to prevent blocking the main
thread.
Change-Id: I4130510ff15752427f31b429e53d2ab87fa1b84a
Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
Diffstat (limited to 'tests/auto/nokia_services/routing/tst_routing.cpp')
-rw-r--r-- | tests/auto/nokia_services/routing/tst_routing.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/auto/nokia_services/routing/tst_routing.cpp b/tests/auto/nokia_services/routing/tst_routing.cpp index 95d034da..dc77ba6c 100644 --- a/tests/auto/nokia_services/routing/tst_routing.cpp +++ b/tests/auto/nokia_services/routing/tst_routing.cpp @@ -521,11 +521,10 @@ void tst_nokia_routing::foobar_data() QTest::newRow("QNetworkReply::UnknownNetworkError") << int(QNetworkReply::UnknownNetworkError); QTest::newRow("QNetworkReply::UnknownProxyError") << int(QNetworkReply::UnknownProxyError); QTest::newRow("QNetworkReply::ProxyAuthenticationRequiredError") << int(QNetworkReply::ProxyAuthenticationRequiredError); - QTest::newRow("QNetworkReply::UnknownContentError") << int(QNetworkReply::UnknownContentError); QTest::newRow("QNetworkReply::ProtocolFailure") << int(QNetworkReply::ProtocolFailure); } -QTEST_APPLESS_MAIN(tst_nokia_routing) +QTEST_MAIN(tst_nokia_routing) #include "tst_routing.moc" |