summaryrefslogtreecommitdiff
path: root/test/sprite
diff options
context:
space:
mode:
Diffstat (limited to 'test/sprite')
-rw-r--r--test/sprite/sprite_atlas.test.cpp10
-rw-r--r--test/sprite/sprite_image_collection.test.cpp6
-rw-r--r--test/sprite/sprite_loader.test.cpp12
-rw-r--r--test/sprite/sprite_parser.test.cpp22
4 files changed, 25 insertions, 25 deletions
diff --git a/test/sprite/sprite_atlas.test.cpp b/test/sprite/sprite_atlas.test.cpp
index 0cbd211de8..6318d91a28 100644
--- a/test/sprite/sprite_atlas.test.cpp
+++ b/test/sprite/sprite_atlas.test.cpp
@@ -15,7 +15,7 @@
using namespace mbgl;
-TEST(SpriteAtlas, Basic) {
+TEST(SpriteAtlas, Basic) { // NOLINT
FixtureLog log;
SpriteAtlas atlas({ 63, 112 }, 1);
@@ -73,7 +73,7 @@ TEST(SpriteAtlas, Basic) {
test::checkImage("test/fixtures/sprite_atlas/basic", atlas.getAtlasImage());
}
-TEST(SpriteAtlas, Size) {
+TEST(SpriteAtlas, Size) { // NOLINT
SpriteAtlas atlas({ 63, 112 }, 1.4);
auto images = parseSprite(util::read_file("test/fixtures/annotations/emerald.png"),
@@ -105,7 +105,7 @@ TEST(SpriteAtlas, Size) {
test::checkImage("test/fixtures/sprite_atlas/size", atlas.getAtlasImage());
}
-TEST(SpriteAtlas, Updates) {
+TEST(SpriteAtlas, Updates) { // NOLINT
SpriteAtlas atlas({ 32, 32 }, 1);
EXPECT_EQ(1.0f, atlas.getPixelRatio());
@@ -141,7 +141,7 @@ TEST(SpriteAtlas, Updates) {
test::checkImage("test/fixtures/sprite_atlas/updates_after", atlas.getAtlasImage());
}
-TEST(SpriteAtlas, AddRemove) {
+TEST(SpriteAtlas, AddRemove) { // NOLINT
FixtureLog log;
SpriteAtlas atlas({ 32, 32 }, 1);
@@ -170,7 +170,7 @@ TEST(SpriteAtlas, AddRemove) {
}));
}
-TEST(SpriteAtlas, RemoveReleasesBinPackRect) {
+TEST(SpriteAtlas, RemoveReleasesBinPackRect) { // NOLINT
FixtureLog log;
SpriteAtlas atlas({ 36, 36 }, 1);
diff --git a/test/sprite/sprite_image_collection.test.cpp b/test/sprite/sprite_image_collection.test.cpp
index 51ea20fdf3..00626b8617 100644
--- a/test/sprite/sprite_image_collection.test.cpp
+++ b/test/sprite/sprite_image_collection.test.cpp
@@ -9,7 +9,7 @@
using namespace mbgl;
-TEST(SpriteImageCollection, OtherPixelRatio) {
+TEST(SpriteImageCollection, OtherPixelRatio) { // NOLINT
FixtureLog log;
Images images;
@@ -17,7 +17,7 @@ TEST(SpriteImageCollection, OtherPixelRatio) {
addSpriteImage(images, "one", std::make_unique<style::Image>(PremultipliedImage({ 8, 8 }), 2));
}
-TEST(SpriteImageCollection, Replace) {
+TEST(SpriteImageCollection, Replace) { // NOLINT
FixtureLog log;
Images images;
@@ -27,7 +27,7 @@ TEST(SpriteImageCollection, Replace) {
EXPECT_NE(image, images.find("sprite")->second.get());
}
-TEST(SpriteImageCollection, ReplaceWithDifferentDimensions) {
+TEST(SpriteImageCollection, ReplaceWithDifferentDimensions) { // NOLINT
FixtureLog log;
Images images;
diff --git a/test/sprite/sprite_loader.test.cpp b/test/sprite/sprite_loader.test.cpp
index 99f44e57e4..4667d0fcc8 100644
--- a/test/sprite/sprite_loader.test.cpp
+++ b/test/sprite/sprite_loader.test.cpp
@@ -83,7 +83,7 @@ Response corruptSpriteResponse(const Resource&) {
return response;
}
-TEST(SpriteLoader, LoadingSuccess) {
+TEST(SpriteLoader, LoadingSuccess) { // NOLINT
SpriteLoaderTest test;
test.fileSource.spriteImageResponse = successfulSpriteImageResponse;
@@ -102,7 +102,7 @@ TEST(SpriteLoader, LoadingSuccess) {
test.run();
}
-TEST(SpriteLoader, JSONLoadingFail) {
+TEST(SpriteLoader, JSONLoadingFail) { // NOLINT
SpriteLoaderTest test;
test.fileSource.spriteImageResponse = successfulSpriteImageResponse;
@@ -117,7 +117,7 @@ TEST(SpriteLoader, JSONLoadingFail) {
test.run();
}
-TEST(SpriteLoader, ImageLoadingFail) {
+TEST(SpriteLoader, ImageLoadingFail) { // NOLINT
SpriteLoaderTest test;
test.fileSource.spriteImageResponse = failedSpriteResponse;
@@ -132,7 +132,7 @@ TEST(SpriteLoader, ImageLoadingFail) {
test.run();
}
-TEST(SpriteLoader, JSONLoadingCorrupted) {
+TEST(SpriteLoader, JSONLoadingCorrupted) { // NOLINT
SpriteLoaderTest test;
test.fileSource.spriteImageResponse = successfulSpriteImageResponse;
@@ -147,7 +147,7 @@ TEST(SpriteLoader, JSONLoadingCorrupted) {
test.run();
}
-TEST(SpriteLoader, ImageLoadingCorrupted) {
+TEST(SpriteLoader, ImageLoadingCorrupted) { // NOLINT
SpriteLoaderTest test;
test.fileSource.spriteImageResponse = corruptSpriteResponse;
@@ -162,7 +162,7 @@ TEST(SpriteLoader, ImageLoadingCorrupted) {
test.run();
}
-TEST(SpriteLoader, LoadingCancel) {
+TEST(SpriteLoader, LoadingCancel) { // NOLINT
SpriteLoaderTest test;
test.fileSource.spriteImageResponse =
diff --git a/test/sprite/sprite_parser.test.cpp b/test/sprite/sprite_parser.test.cpp
index 19c6b914a8..decba2d7aa 100644
--- a/test/sprite/sprite_parser.test.cpp
+++ b/test/sprite/sprite_parser.test.cpp
@@ -19,7 +19,7 @@ auto readImage(const std::string& name) {
} // namespace
-TEST(Sprite, SpriteImageCreationInvalid) {
+TEST(Sprite, SpriteImageCreationInvalid) { // NOLINT
FixtureLog log;
const PremultipliedImage image_1x = decodeImage(util::read_file("test/fixtures/annotations/emerald.png"));
@@ -134,7 +134,7 @@ TEST(Sprite, SpriteImageCreationInvalid) {
}
-TEST(Sprite, SpriteImageCreation1x) {
+TEST(Sprite, SpriteImageCreation1x) { // NOLINT
const PremultipliedImage image_1x = decodeImage(util::read_file("test/fixtures/annotations/emerald.png"));
ASSERT_EQ(200u, image_1x.size.width);
@@ -153,7 +153,7 @@ TEST(Sprite, SpriteImageCreation1x) {
}
}
-TEST(Sprite, SpriteImageCreation2x) {
+TEST(Sprite, SpriteImageCreation2x) { // NOLINT
const PremultipliedImage image_2x = decodeImage(util::read_file("test/fixtures/annotations/emerald@2x.png"));
// "museum_icon":{"x":354,"y":374,"width":36,"height":36,"pixelRatio":2,"sdf":false}
@@ -168,7 +168,7 @@ TEST(Sprite, SpriteImageCreation2x) {
sprite->getImage());
}
-TEST(Sprite, SpriteImageCreation1_5x) {
+TEST(Sprite, SpriteImageCreation1_5x) { // NOLINT
const PremultipliedImage image_2x = decodeImage(util::read_file("test/fixtures/annotations/emerald@2x.png"));
// "museum_icon":{"x":354,"y":374,"width":36,"height":36,"pixelRatio":2,"sdf":false}
@@ -194,7 +194,7 @@ TEST(Sprite, SpriteImageCreation1_5x) {
sprite2->getImage());
}
-TEST(Sprite, SpriteParsing) {
+TEST(Sprite, SpriteParsing) { // NOLINT
const auto image_1x = util::read_file("test/fixtures/annotations/emerald.png");
const auto json_1x = util::read_file("test/fixtures/annotations/emerald.json");
@@ -290,7 +290,7 @@ TEST(Sprite, SpriteParsing) {
}
}
-TEST(Sprite, SpriteParsingInvalidJSON) {
+TEST(Sprite, SpriteParsingInvalidJSON) { // NOLINT
const auto image_1x = util::read_file("test/fixtures/annotations/emerald.png");
const auto json_1x = R"JSON({ "image": " })JSON";
@@ -304,7 +304,7 @@ TEST(Sprite, SpriteParsingInvalidJSON) {
}
}
-TEST(Sprite, SpriteParsingEmptyImage) {
+TEST(Sprite, SpriteParsingEmptyImage) { // NOLINT
FixtureLog log;
const auto image_1x = util::read_file("test/fixtures/annotations/emerald.png");
@@ -321,7 +321,7 @@ TEST(Sprite, SpriteParsingEmptyImage) {
}));
}
-TEST(Sprite, SpriteParsingSimpleWidthHeight) {
+TEST(Sprite, SpriteParsingSimpleWidthHeight) { // NOLINT
FixtureLog log;
const auto image_1x = util::read_file("test/fixtures/annotations/emerald.png");
@@ -331,7 +331,7 @@ TEST(Sprite, SpriteParsingSimpleWidthHeight) {
EXPECT_EQ(1u, images.size());
}
-TEST(Sprite, SpriteParsingWidthTooBig) {
+TEST(Sprite, SpriteParsingWidthTooBig) { // NOLINT
FixtureLog log;
const auto image_1x = util::read_file("test/fixtures/annotations/emerald.png");
@@ -354,7 +354,7 @@ TEST(Sprite, SpriteParsingWidthTooBig) {
}));
}
-TEST(Sprite, SpriteParsingNegativeWidth) {
+TEST(Sprite, SpriteParsingNegativeWidth) { // NOLINT
FixtureLog log;
const auto image_1x = util::read_file("test/fixtures/annotations/emerald.png");
@@ -377,7 +377,7 @@ TEST(Sprite, SpriteParsingNegativeWidth) {
}));
}
-TEST(Sprite, SpriteParsingNullRatio) {
+TEST(Sprite, SpriteParsingNullRatio) { // NOLINT
FixtureLog log;
const auto image_1x = util::read_file("test/fixtures/annotations/emerald.png");