summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJohn Firebaugh <john.firebaugh@gmail.com>2015-11-30 12:48:30 -0800
committerJohn Firebaugh <john@Johns-MacBook-Pro.local>2015-12-01 09:07:03 -0800
commitf27c28b6c4a4796eded7984d7bb3c62f30ba594f (patch)
tree1223ea7fd6a50e34143982d646bb325665b434b6 /test
parent60b0e78e0ef7357cf6ef260a6df4241b2c5503db (diff)
downloadqtlocation-mapboxgl-f27c28b6c4a4796eded7984d7bb3c62f30ba594f.tar.gz
Partially revert "[core] Source should receive a ref to MapData just once"
This partially reverts commit d55aa7929cb10d40a58b6b7a8ed73bddd4f0a407.
Diffstat (limited to 'test')
-rw-r--r--test/miscellaneous/style_parser.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/test/miscellaneous/style_parser.cpp b/test/miscellaneous/style_parser.cpp
index 6646ba82db..7a38ba054d 100644
--- a/test/miscellaneous/style_parser.cpp
+++ b/test/miscellaneous/style_parser.cpp
@@ -1,6 +1,5 @@
#include "../fixtures/util.hpp"
-#include <mbgl/map/map_data.hpp>
#include <mbgl/style/style_parser.hpp>
#include <mbgl/util/io.hpp>
@@ -36,9 +35,7 @@ TEST_P(StyleParserTest, ParseStyle) {
FixtureLogObserver* observer = new FixtureLogObserver();
Log::setObserver(std::unique_ptr<Log::Observer>(observer));
- double fakePixelRatio = 1.0;
- MapData data(MapMode::Continuous, GLContextMode::Unique, fakePixelRatio);
- StyleParser parser(data);
+ StyleParser parser;
parser.parse(styleDoc);
for (auto it = infoDoc.MemberBegin(), end = infoDoc.MemberEnd(); it != end; it++) {