diff options
Diffstat (limited to 'test/style/style.test.cpp')
-rw-r--r-- | test/style/style.test.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/test/style/style.test.cpp b/test/style/style.test.cpp index 2c9cdb5792..d968998165 100644 --- a/test/style/style.test.cpp +++ b/test/style/style.test.cpp @@ -19,7 +19,7 @@ TEST(Style, Properties) { util::RunLoop loop; auto fileSource = std::make_shared<StubFileSource>(); - Style::Impl style { fileSource, 1.0 }; + StyleImpl style { fileSource, 1.0 }; style.loadJSON(R"STYLE({"name": "Test"})STYLE"); ASSERT_EQ("Test", style.getName()); @@ -61,7 +61,7 @@ TEST(Style, DuplicateSource) { util::RunLoop loop; auto fileSource = std::make_shared<StubFileSource>(); - Style::Impl style { fileSource, 1.0 }; + StyleImpl style { fileSource, 1.0 }; style.loadJSON(util::read_file("test/fixtures/resources/style-unused-sources.json")); @@ -82,7 +82,7 @@ TEST(Style, RemoveSourceInUse) { Log::setObserver(std::unique_ptr<Log::Observer>(log)); auto fileSource = std::make_shared<StubFileSource>(); - Style::Impl style { fileSource, 1.0 }; + StyleImpl style { fileSource, 1.0 }; style.loadJSON(util::read_file("test/fixtures/resources/style-unused-sources.json")); @@ -107,7 +107,7 @@ TEST(Style, RemoveSourceInUse) { TEST(Style, SourceImplsOrder) { util::RunLoop loop; auto fileSource = std::make_shared<StubFileSource>(); - Style::Impl style{fileSource, 1.0}; + StyleImpl style{fileSource, 1.0}; style.addSource(std::make_unique<VectorSource>("c", "mapbox://mapbox.mapbox-terrain-v2")); style.addSource(std::make_unique<VectorSource>("b", "mapbox://mapbox.mapbox-terrain-v2")); @@ -129,7 +129,7 @@ TEST(Style, SourceImplsOrder) { TEST(Style, AddRemoveImage) { util::RunLoop loop; auto fileSource = std::make_shared<StubFileSource>(); - Style::Impl style{fileSource, 1.0}; + StyleImpl style{fileSource, 1.0}; style.addImage(std::make_unique<style::Image>("one", PremultipliedImage({16, 16}), 2)); style.addImage(std::make_unique<style::Image>("two", PremultipliedImage({16, 16}), 2)); style.addImage(std::make_unique<style::Image>("three", PremultipliedImage({16, 16}), 2)); @@ -140,4 +140,4 @@ TEST(Style, AddRemoveImage) { EXPECT_TRUE(!!style.getImage("three")); EXPECT_FALSE(!!style.getImage("two")); EXPECT_FALSE(!!style.getImage("four")); -}
\ No newline at end of file +} |