summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorGuillaume Belz <gbelz@esri.com>2016-08-17 23:49:22 +0100
committerPaolo Angelelli <paolo.angelelli@theqtcompany.com>2016-08-31 08:10:57 +0000
commitd999495a01cf6b6cb206a968944b889ab29e3450 (patch)
tree04c92d06b33d4a11e8fc52938ad46ab1f6542ce2 /tests
parentee4bbb765e9a3ccfc9f5943d253290e3fc24484c (diff)
downloadqtlocation-d999495a01cf6b6cb206a968944b889ab29e3450.tar.gz
Add geoservices plugin to support ESRI mapping servicesv5.8.0-alpha1
[ChangeLog] Add geoservices plugin to support ESRI mapping services. Change-Id: I96fdfd9af77dc51166a9ded268bbcf0d66016fda Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/qgeoserviceprovider/tst_qgeoserviceprovider.cpp12
1 files changed, 10 insertions, 2 deletions
diff --git a/tests/auto/qgeoserviceprovider/tst_qgeoserviceprovider.cpp b/tests/auto/qgeoserviceprovider/tst_qgeoserviceprovider.cpp
index f6fe2d71..121253fa 100644
--- a/tests/auto/qgeoserviceprovider/tst_qgeoserviceprovider.cpp
+++ b/tests/auto/qgeoserviceprovider/tst_qgeoserviceprovider.cpp
@@ -65,13 +65,14 @@ void tst_QGeoServiceProvider::tst_availableServiceProvider()
const QStringList provider = QGeoServiceProvider::availableServiceProviders();
// Currently provided plugins
- if (provider.count() != 7)
+ if (provider.count() != 8)
qWarning() << provider;
- QCOMPARE(provider.count(), 7);
+ QCOMPARE(provider.count(), 8);
// these providers are deployed
QVERIFY(provider.contains(QStringLiteral("mapbox")));
QVERIFY(provider.contains(QStringLiteral("here")));
QVERIFY(provider.contains(QStringLiteral("osm")));
+ QVERIFY(provider.contains(QStringLiteral("esri")));
// these providers exist for unit tests only
QVERIFY(provider.contains(QStringLiteral("geocode.test.plugin")));
QVERIFY(provider.contains(QStringLiteral("georoute.test.plugin")));
@@ -124,6 +125,13 @@ void tst_QGeoServiceProvider::tst_features_data()
| QGeoServiceProvider::ReverseGeocodingFeature)
<< QGeoServiceProvider::RoutingFeatures(QGeoServiceProvider::OnlineRoutingFeature)
<< QGeoServiceProvider::PlacesFeatures(QGeoServiceProvider::OnlinePlacesFeature);
+
+ QTest::newRow("esri") << QString("esri")
+ << QGeoServiceProvider::MappingFeatures(QGeoServiceProvider::OnlineMappingFeature)
+ << QGeoServiceProvider::GeocodingFeatures(QGeoServiceProvider::OnlineGeocodingFeature
+ | QGeoServiceProvider::ReverseGeocodingFeature)
+ << QGeoServiceProvider::RoutingFeatures(QGeoServiceProvider::OnlineRoutingFeature)
+ << QGeoServiceProvider::PlacesFeatures(QGeoServiceProvider::NoPlacesFeatures);
}
void tst_QGeoServiceProvider::tst_features()