summaryrefslogtreecommitdiff
path: root/Tests/LibGL/TestRender.cpp
diff options
context:
space:
mode:
authorsin-ack <sin-ack@users.noreply.github.com>2022-07-11 17:32:29 +0000
committerAndreas Kling <kling@serenityos.org>2022-07-12 23:11:35 +0200
commit3f3f45580ab7266258e97cb3cecf1e24716d61c5 (patch)
tree152c7a187c98184d58bf91a326357e0af435edcf /Tests/LibGL/TestRender.cpp
parente5f09ea1703bacfbb79a4ad3c587a7d5d3d7bb13 (diff)
downloadserenity-3f3f45580ab7266258e97cb3cecf1e24716d61c5.zip
Everywhere: Add sv suffix to strings relying on StringView(char const*)
Each of these strings would previously rely on StringView's char const* constructor overload, which would call __builtin_strlen on the string. Since we now have operator ""sv, we can replace these with much simpler versions. This opens the door to being able to remove StringView(char const*). No functional changes.
Diffstat (limited to 'Tests/LibGL/TestRender.cpp')
-rw-r--r--Tests/LibGL/TestRender.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/Tests/LibGL/TestRender.cpp b/Tests/LibGL/TestRender.cpp
index 85604fae6a..4d5448bb49 100644
--- a/Tests/LibGL/TestRender.cpp
+++ b/Tests/LibGL/TestRender.cpp
@@ -70,7 +70,7 @@ TEST_CASE(0001_simple_triangle)
EXPECT_EQ(glGetError(), 0u);
context->present();
- expect_bitmap_equals_reference(context->frontbuffer(), "0001_simple_triangle");
+ expect_bitmap_equals_reference(context->frontbuffer(), "0001_simple_triangle"sv);
}
TEST_CASE(0002_quad_color_interpolation)
@@ -92,7 +92,7 @@ TEST_CASE(0002_quad_color_interpolation)
EXPECT_EQ(glGetError(), 0u);
context->present();
- expect_bitmap_equals_reference(context->frontbuffer(), "0002_quad_color_interpolation");
+ expect_bitmap_equals_reference(context->frontbuffer(), "0002_quad_color_interpolation"sv);
}
TEST_CASE(0003_rect_w_coordinate_regression)
@@ -115,7 +115,7 @@ TEST_CASE(0003_rect_w_coordinate_regression)
EXPECT_EQ(glGetError(), 0u);
context->present();
- expect_bitmap_equals_reference(context->frontbuffer(), "0003_rect_w_coordinate_regression");
+ expect_bitmap_equals_reference(context->frontbuffer(), "0003_rect_w_coordinate_regression"sv);
}
TEST_CASE(0004_points)
@@ -145,7 +145,7 @@ TEST_CASE(0004_points)
EXPECT_EQ(glGetError(), 0u);
context->present();
- expect_bitmap_equals_reference(context->frontbuffer(), "0004_points");
+ expect_bitmap_equals_reference(context->frontbuffer(), "0004_points"sv);
}
TEST_CASE(0005_lines_antialiased)
@@ -167,5 +167,5 @@ TEST_CASE(0005_lines_antialiased)
EXPECT_EQ(glGetError(), 0u);
context->present();
- expect_bitmap_equals_reference(context->frontbuffer(), "0005_lines");
+ expect_bitmap_equals_reference(context->frontbuffer(), "0005_lines"sv);
}