summaryrefslogtreecommitdiff
path: root/test/style/source.cpp
diff options
context:
space:
mode:
authorJohn Firebaugh <john.firebaugh@gmail.com>2016-06-14 10:39:40 -0700
committerJohn Firebaugh <john.firebaugh@gmail.com>2016-06-14 11:25:45 -0700
commitb222689de835a8b83c387aff5e5f500ce17768e5 (patch)
tree2d2d381b11f6e69aa0659a6cbab36e3d878d8b22 /test/style/source.cpp
parent9b0093e32dece62abc6fd7add789613871252a58 (diff)
downloadqtlocation-mapboxgl-b222689de835a8b83c387aff5e5f500ce17768e5.tar.gz
[core] Pass geojsonvt only to GeoJSONSource
Diffstat (limited to 'test/style/source.cpp')
-rw-r--r--test/style/source.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/test/style/source.cpp b/test/style/source.cpp
index 6828042c6a..8b74042837 100644
--- a/test/style/source.cpp
+++ b/test/style/source.cpp
@@ -86,7 +86,7 @@ TEST(Source, LoadingFail) {
test.end();
};
- VectorSource source("source", "url", 512, nullptr, nullptr);
+ VectorSource source("source", "url", 512, nullptr);
source.setObserver(&test.observer);
source.load(test.fileSource);
@@ -109,7 +109,7 @@ TEST(Source, LoadingCorrupt) {
test.end();
};
- VectorSource source("source", "url", 512, nullptr, nullptr);
+ VectorSource source("source", "url", 512, nullptr);
source.setObserver(&test.observer);
source.load(test.fileSource);
@@ -137,7 +137,7 @@ TEST(Source, RasterTileEmpty) {
auto tileset = std::make_unique<Tileset>();
tileset->tiles = { "tiles" };
- RasterSource source("source", "", 512, std::move(tileset), nullptr);
+ RasterSource source("source", "", 512, std::move(tileset));
source.setObserver(&test.observer);
source.load(test.fileSource);
source.update(test.updateParameters);
@@ -166,7 +166,7 @@ TEST(Source, VectorTileEmpty) {
auto tileset = std::make_unique<Tileset>();
tileset->tiles = { "tiles" };
- VectorSource source("source", "", 512, std::move(tileset), nullptr);
+ VectorSource source("source", "", 512, std::move(tileset));
source.setObserver(&test.observer);
source.load(test.fileSource);
source.update(test.updateParameters);
@@ -195,7 +195,7 @@ TEST(Source, RasterTileFail) {
auto tileset = std::make_unique<Tileset>();
tileset->tiles = { "tiles" };
- RasterSource source("source", "", 512, std::move(tileset), nullptr);
+ RasterSource source("source", "", 512, std::move(tileset));
source.setObserver(&test.observer);
source.load(test.fileSource);
source.update(test.updateParameters);
@@ -224,7 +224,7 @@ TEST(Source, VectorTileFail) {
auto tileset = std::make_unique<Tileset>();
tileset->tiles = { "tiles" };
- VectorSource source("source", "", 512, std::move(tileset), nullptr);
+ VectorSource source("source", "", 512, std::move(tileset));
source.setObserver(&test.observer);
source.load(test.fileSource);
source.update(test.updateParameters);
@@ -252,7 +252,7 @@ TEST(Source, RasterTileCorrupt) {
auto tileset = std::make_unique<Tileset>();
tileset->tiles = { "tiles" };
- RasterSource source("source", "", 512, std::move(tileset), nullptr);
+ RasterSource source("source", "", 512, std::move(tileset));
source.setObserver(&test.observer);
source.load(test.fileSource);
source.update(test.updateParameters);
@@ -284,7 +284,7 @@ TEST(Source, VectorTileCorrupt) {
auto tileset = std::make_unique<Tileset>();
tileset->tiles = { "tiles" };
- VectorSource source("source", "", 512, std::move(tileset), nullptr);
+ VectorSource source("source", "", 512, std::move(tileset));
source.setObserver(&test.observer);
source.load(test.fileSource);
source.update(test.updateParameters);
@@ -311,7 +311,7 @@ TEST(Source, RasterTileCancel) {
auto tileset = std::make_unique<Tileset>();
tileset->tiles = { "tiles" };
- RasterSource source("source", "", 512, std::move(tileset), nullptr);
+ RasterSource source("source", "", 512, std::move(tileset));
source.setObserver(&test.observer);
source.load(test.fileSource);
source.update(test.updateParameters);
@@ -338,7 +338,7 @@ TEST(Source, VectorTileCancel) {
auto tileset = std::make_unique<Tileset>();
tileset->tiles = { "tiles" };
- VectorSource source("source", "", 512, std::move(tileset), nullptr);
+ VectorSource source("source", "", 512, std::move(tileset));
source.setObserver(&test.observer);
source.load(test.fileSource);
source.update(test.updateParameters);