summaryrefslogtreecommitdiff
path: root/tests/auto/nokia_services
Commit message (Collapse)AuthorAgeFilesLines
* QtLocation: get rid of now unneeded qOverloadsTimur Pocheptsov2020-03-231-1/+1
| | | | | | | | | | | In a preparation for final cleanup in dev/Qt6. This amends the recent change in QtNetwork where we deprecated ambiguous signal overload. Also, fix old SIGNAL to use the proper name. Task-number: QTBUG-82605 Change-Id: Ifc92ce4569ba15ac5429fe379f134a6dbe3a5f73 Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
* Revert "qtlocation: remove uses of the deprecated member-function"Timur Pocheptsov2020-02-251-2/+2
| | | | | | | | This reverts commit b482674e51c097fccffa1e1cc32b4843ad393894. Reason for revert: naming in QProcess is considered to be the correct one. Change-Id: I6722adfc06b351c76fb432628a678c4ce887d594 Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
* qtlocation: remove uses of the deprecated member-functionTimur Pocheptsov2020-01-151-2/+2
| | | | | | | | | Which is QNetworkReply::error(). Use QNetworkReply::networkError() instead. Task-number: QTBUG-80369 Change-Id: Id41166a72c0d14bc77d9ec853db2f665617195ee Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
* Eradicate Java-style iterators and mark the module free of themMarc Mutz2019-08-031-3/+1
| | | | | | | | | | | | | | | ... and of QLinkedList Java-style iterators are going to be deprecated, or at the very least banned from use in Qt code. Ditto QLinkedList. Unfortunately, the module contains more than 120 uses of Q_FOREACH, even though, according to my sources, its use was banned in Qt implementation from the get-go. So QT_NO_FOREACH is currently not an option. Change-Id: I0f05e9c78dda259b0eac1bcdfc7dddfcddc4b908 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Enable tests for boot2qtSami Nurmenniemi2017-08-151-1/+2
| | | | | | | | | | | | | | The tests for boot2qt were disabled with commit cc7fb64d321c4884caee0cfd29bd2de0b1b3eaeb. The tests can be enabled since qtdeclarative now fallbacks to software renderer if OpenGL is not supported. Also some timings needed to be relaxed for the tests to pass when running on Qemu. Task-number: QTBUG-60268 Change-Id: I8f933511c956b728a76870231a58ed89398a75ba Reviewed-by: Paolo Angelelli <paolo.angelelli@qt.io>
* Make tst_places compile with -no-feature-processUlf Hermann2017-03-021-1/+3
| | | | | | | | We already had a guard for QT_NO_PROCESS in place. Change that to the safe form QT_CONFIG(process) and also guard the header inclusion. Change-Id: I9c62024bd315a91da44e0492f0c8aa095de76dab Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
* Updated license headersAntti Kokko2016-01-202-34/+24
| | | | | | | | | | | From Qt 5.7 -> tools & applications are lisenced under GPL v3 with some exceptions, see http://blog.qt.io/blog/2016/01/13/new-agreement-with-the-kde-free-qt-foundation/ Updated license headers to use new GPL-EXCEPT header instead of LGPL21 one (in those files which will be under GPL 3 with exceptions) Change-Id: Ic9ed595cc04b1fbbefb8ec8cac20c1480681857a Reviewed-by: Lars Knoll <lars.knoll@theqtcompany.com>
* Remove QT_DISABLE_DEPRECATED_BEFORE=0 from tests not using deprecated API.Friedemann Kleint2015-08-282-2/+0
| | | | | Change-Id: I1eb987fdd48e33bd1d71da7f9efb9f02e05de3c9 Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
* Add "here" prefix to all Here geoservices parametersAlex Blasche2015-05-272-5/+5
| | | | | | | Task-number: QTBUG-42151 Change-Id: I3d71ee77327478dfdda23af709bee489f83bb9f6 Reviewed-by: Michal Klocek <michal.klocek@theqtcompany.com> Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
* Fix incomplete category hierarchy in Here pluginAlex Blasche2015-04-171-3/+10
| | | | | | | | | The recent addition of a second level of categories failed to set the parent cat id for each child. Change-Id: Ib30050463b84c2f62972082c0a883bb96bc89c52 Reviewed-by: Michal Klocek <michal.klocek@theqtcompany.com> Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
* Changes key of "nokia" geoservices plugin to "here"Alex Blasche2015-03-252-7/+7
| | | | | | | | | | | | The old name is not advertised anymore but the plugin can still be loaded using the "nokia" key. This will be removed by later versions of Qt. Adds a QGeoServiceProvider unit tests Change-Id: I01f36f1bb19d31e0855e90c1605b99e61ee4450b Reviewed-by: Michal Klocek <michal.klocek@theqtcompany.com> Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com> Reviewed-by: Aaron McCarthy <mccarthy.aaron@gmail.com>
* Make Nokia/Here specific place test passAlex Blasche2015-03-181-1/+9
| | | | | | | | | | | Retrieving of detailed place information is currently broken. This may be caused by an API or policy change on the here server. Further investigation is required. Change-Id: I43837c9a611f77cc70725cf42667a130136774e4 Task-number: QTBUG-44837 Reviewed-by: Michal Klocek <michal.klocek@theqtcompany.com> Reviewed-by: Aaron McCarthy <mccarthy.aaron@gmail.com>
* Update contact URL in all license headers to qt.ioAlex Blasche2015-02-182-2/+2
| | | | | Change-Id: Ia1e333be7fec8898de609d9b9303b1ad7687632e Reviewed-by: Maurice Kalinowski <maurice.kalinowski@theqtcompany.com>
* Update BSD and LGPLv2.1 licensesAlex Blasche2015-02-182-6/+6
| | | | | | | | - Removes subsidiary extension from Qt Company - Replaces remaining occurrences of Digia in BSD and LGPLv2.1 Change-Id: I7467a6744af7d1c3aef3c29118f219399162a18c Reviewed-by: Maurice Kalinowski <maurice.kalinowski@theqtcompany.com>
* Update all LGPLv2.1 license headers in source to latest versionAlex Blasche2015-02-152-8/+8
| | | | | | | | | | | This affects all QtPositioning related code and the test code in the entire repository. The Qt Company is set as new copyright owner and the copyright year is bumped to 2015. Change-Id: Iee0e990680683c20f5920e49cc1063ea9349e2cd Reviewed-by: Lars Knoll <lars.knoll@digia.com>
* Update license headers and add new license filesAntti Kokko2014-08-242-38/+22
| | | | | | | | | - Renamed LICENSE.LGPL to LICENSE.LGPLv21 - Added LICENSE.LGPLv3 & LICENSE.GPLv2 - Removed LICENSE.GPL Change-Id: Iedee2507ab1bd46788409a98505d7be510253110 Reviewed-by: Jani Heikkinen <jani.heikkinen@digia.com>
* Compile fix for platforms without process supportMaurice Kalinowski2014-07-071-1/+4
| | | | | Change-Id: Iaf15ecd49524a787198d091399454c3daeeeb51b Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
* Use QStringLiteral whereever possibleAlex Blasche2014-05-151-2/+2
| | | | | | | This replaces a lot of old QLatin1String cases Change-Id: I47aec711f5e00de68bde6c2c8ee09506f577cfd4 Reviewed-by: Kai Koehne <kai.koehne@digia.com>
* Parse Nokia route response in helper thread.Aaron McCarthy2014-03-141-2/+1
| | | | | | | | | 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>
* Remove offset attribute from place content requests.Aaron McCarthy2014-01-221-26/+5
| | | | | | | | | | | | This complements 1d0966c6924876655c52725e779a7aa24866ff60 Not all service providers support arbitrary offsets when requesting place content. The offset attribute has been removed, instead service providers can supply a previous and next content request query in the form of a QPlaceContentRequest. Change-Id: I6239b42c31bed5dcd6645d86d5a48d7e6a667f46 Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
* Remove offset attribute from place search requests.Aaron McCarthy2014-01-201-9/+1
| | | | | | | | | Not all service providers support arbitrary search offsets. The offset attribute has been removed, instead service providers can supply a previous and next search query in the form of a QPlaceSearchRequest. Change-Id: If68e969b06f909f3fa62718656cbef70d1bf84a6 Reviewed-by: Aaron McCarthy <mccarthy.aaron@gmail.com>
* Fix Nokia place recommendation search parsing.Aaron McCarthy2014-01-201-15/+18
| | | | | | | | Place recommendations are no longer wrapped in a "results" object like other search requests. Change-Id: Idef11bf08818e07192657ffbadca0e0d610b6137 Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
* Use QVariantMap instead of QMap<QString, QVariant>.Aaron McCarthy2014-01-081-1/+1
| | | | | | | | It is shorter, easier to read, easier to type and it doesn't affect the ABI. Change-Id: Ic4d8a371d00b434ac84382dd75d8d82a963089cb Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
* Upgraded Nokia Route API from 6.2 to 7.2Erik Mattsson2013-11-113-809/+1
| | | | | | | | | | | | | | | | | | | Since the 7.2 API supports many more lanugages(23 compared to 4) and is the only version that supports China it was necessary to upgrade the nokia route plugin to 7.2. The major change is that 7.2 does not support multiple mode parameters which 6.2 did. Now if the user selects multiple route optimizations multiple requests will be made, one for each optimization. Nokia has also reduced the amount of different route modes, only fastest and shortest are supported now. In the response part noting has changed, so no parsing fixes were necessary. Task-number: QTBUG-24808 Change-Id: I256079f9a1e91e11c961849c95b95b712021ace0 Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
* Split QtLocation into QtPositioning and QtLocationAlex Blasche2013-09-022-2/+2
| | | | | | | | | | | | QtPositioning is not dependent on any gui component and mostly covers everything around the retrieval of position information. QtLocation covers place, map and navigation APIs. Several documentation issues were fixed during the process. Change-Id: I98e2a53065549a2fc43f93a75b4f65b5bc884c92 Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
* Fix autotests while shadow building with install pathAlex Blasche2013-07-111-1/+1
| | | | | | | | | | | | | | These tests require test plugins which must be installed. However the CI does not run "make install" when shadow building with install path. Subsequently the plugins are not found. We add the plugin path of the shadow build dir to the library path enabling the various plugin loader cases to find the required plugin binaries. Change-Id: I4df21278f3e28db01b3062b27ccc317ccbab3142 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com> Reviewed-by: Alex <alexander.blasche@digia.com>
* Update copyright year to 2013Sergio Ahumada2013-06-132-2/+2
| | | | | Change-Id: I5b0cb7d56997ad7b91c073b3e02b31d0368fdcfa Reviewed-by: Alex <alexander.blasche@digia.com>
* Rename namespace QtLocation -> QLocationSze Howe Koh2013-02-051-1/+1
| | | | | | | | | | | | | | Main code, tests and docs updated. For consistency (with minimal disruption to the Qt 5.0.0 release), namespaces with a "Qt" prefix were renamed. Part of the Header Consistency Project (http://lists.qt-project.org/pipermail/development/2012-October/007570.html) Change-Id: Ic728cbbe39e0140dca1cdee24257dda095c9a478 Reviewed-by: Laszlo Papp <lpapp@kde.org> Reviewed-by: Aaron McCarthy <mccarthy.aaron@gmail.com>
* Change copyrights from Nokia to DigiaIikka Eklund2012-09-242-48/+48
| | | | | | | | Change copyrights and license headers from Nokia to Digia Change-Id: Ic1390da64a219642fa1e1482a7677a4c2db15cbc Reviewed-by: Janne Anttila <janne.anttila@digia.com> Reviewed-by: Lars Knoll <lars.knoll@digia.com>
* Fix incorrect error code during details fetch for nokia pluginabcd2012-08-061-1/+1
| | | | | | | | | | | Previously a CommunicationError was returned if the id did not exist, this was because an incorrect id would result in a non-existent URL being used. Now we make the assumption if the URL content is not found, then it must be because the id did not exist. In such a case we can return a PlaceDoesNotExistError. Change-Id: Ibfc21b826e0514fd694cb69d0372ef99e46e768e Reviewed-by: Aaron McCarthy <aaron.mccarthy@nokia.com>
* Fix incorrect error code during recommendation searchabcd2012-08-021-1/+1
| | | | | | | | | | | Previously a CommunicationError was returned if the id did not exist, this was because an incorrect id would result in a non-esistent URL being used. Now we make the assumption that if the URL content is not found, then it must be because the id did not exist. In such a case we can return a PlaceDoesNotExistError. Change-Id: I50ddacb2341639dd6e227e795cefc5e92eea3d6e Reviewed-by: Alex <alex.blasche@nokia.com>
* Fix compilation with GCC 4.7 (C++11 mode)Thiago Macieira2012-08-021-2/+2
| | | | | | | | | | | The Q_DECLARE_METATYPE macro must appear before the use of the type in QFETCH. The error was: error: static assertion failed: Type is not registered, please use Q_DECLARE_METATYPE macro to make it know to Qt's meta-object system Change-Id: Iaf2ecbcca194d0abea6623ff200493b44d0e266b Reviewed-by: Alex <alex.blasche@nokia.com>
* Set the Qt API level to compatibility mode in all tests.Thiago Macieira2012-08-012-0/+2
| | | | | | | | | | Qt 5.0 beta requires changing the default to the 5.0 API, disabling the deprecated code. However, tests should test (and often do) the compatibility API too, so turn it back on. Task-number: QTBUG-25053 Change-Id: Ie0f96417cf765796e5288769563df7845086546a Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
* Add semi-automated test for nokia plugin.abcd2012-07-133-1/+777
| | | | | | | | | | Note that in order to run the test, a valid app id and token must be set as NOKIA_APP_ID and NOKIA_TOKEN environment variables Change-Id: I4b18fee14db2eb23a2728224f3b501a018d22d3d Reviewed-by: Aaron McCarthy <aaron.mccarthy@nokia.com>
* Rename QGeoBoundingArea and related classes to QGeoShape.Aaron McCarthy2012-06-211-2/+2
| | | | | | | | | | | | | | | | | | | | | QGeoBoundingArea is used for describing more than just a bounding area. Renaming it to a more appropriate name, QGeoShape. The same is done for subclasses and QML equivalents. In C++: QGeoBoundingArea -> QGeoShape QGeoBoundingCircle -> QGeoCircle QGeoBoundingBox -> QGeoRectangle In QML: BoundingArea -> GeoShape BoundingCircle -> GeoCircle BoundingBox -> GeoRectangle Change-Id: I93c6df8f1b6c5179ed52fd8354a05f709063b1cf Reviewed-by: abcd <amos.choy@nokia.com>
* Populate error information if required parameters (app_id and token) are absent.Vladimir Bezkorovainyi2012-06-041-0/+2
| | | | | Change-Id: Ia110416b1cd64425abcb3ebcf79209b635050b0b Reviewed-by: Jean Gressmann <jean.gressmann@nokia.com>
* QtLocation: Fix dependencies, remove network.Friedemann Kleint2012-05-291-1/+1
| | | | | | | | - The library does not seem to depend on network. - Remove unneeded dependencies on QtWidgets. Change-Id: Icdbe8a00c746a1ec0d7512f74e0f2566148fdb6e Reviewed-by: Jean Gressmann <jean.gressmann@nokia.com>
* Rename nokia_services routing test.Aaron McCarthy2012-05-032-25/+25
| | | | | | | | Test names need to be unique. There is already a test called tst_routing. Change-Id: I56d50b54b8f04062994c543a740665f85f1926cd Reviewed-by: Alex Wilson <alex.wilson@nokia.com>
* QtLocation/Nokia plugin: Added initial routing tests with mocked network.Jean Gressmann2012-04-3017-0/+4569
These tests test the server reply is properly processed and the values are what we expect in the end. Also tested: - trash reponses, - no route errors, - network errors, - backward compatible responses (those with tags the implementation doesn't (yet) understand) are tested. Change-Id: I3407e1b7f256f7af967a1f6b42f14b012e8a2909 Reviewed-by: Cristian Adam <cristian.adam@nokia.com> Reviewed-by: Alex Wilson <alex.wilson@nokia.com>