summaryrefslogtreecommitdiff
path: root/Tests
diff options
context:
space:
mode:
authorLucas CHOLLET <lucas.chollet@free.fr>2023-02-18 16:09:16 -0500
committerAndreas Kling <kling@serenityos.org>2023-02-18 23:56:24 +0100
commit856d0202f2fb32df47a45844775c1dbba08c24a7 (patch)
treedb86ff86ee8c07fce4e44d3bac2e6abdf8a59472 /Tests
parentab298ca106e0d2aba871cf8dae164e8fcfd7f90b (diff)
downloadserenity-856d0202f2fb32df47a45844775c1dbba08c24a7.zip
LibGfx: Rename `JPGLoader` to `JPEGLoader`
The patch also contains modifications on several classes, functions or files that are related to the `JPGLoader`. Renaming include: - JPGLoader{.h, .cpp} - JPGImageDecoderPlugin - JPGLoadingContext - JPG_DEBUG - decode_jpg - FuzzJPGLoader.cpp - Few string literals or texts
Diffstat (limited to 'Tests')
-rw-r--r--Tests/LibGfx/TestICCProfile.cpp4
-rw-r--r--Tests/LibGfx/TestImageDecoder.cpp6
2 files changed, 5 insertions, 5 deletions
diff --git a/Tests/LibGfx/TestICCProfile.cpp b/Tests/LibGfx/TestICCProfile.cpp
index 1ad04195cf..4db30ac133 100644
--- a/Tests/LibGfx/TestICCProfile.cpp
+++ b/Tests/LibGfx/TestICCProfile.cpp
@@ -6,7 +6,7 @@
#include <LibCore/MappedFile.h>
#include <LibGfx/ICC/Profile.h>
-#include <LibGfx/JPGLoader.h>
+#include <LibGfx/JPEGLoader.h>
#include <LibGfx/PNGLoader.h>
#include <LibTest/TestCase.h>
@@ -31,7 +31,7 @@ TEST_CASE(png)
TEST_CASE(jpg)
{
auto file = MUST(Core::MappedFile::map(TEST_INPUT("icc-v4.jpg"sv)));
- auto jpg = MUST(Gfx::JPGImageDecoderPlugin::create(file->bytes()));
+ auto jpg = MUST(Gfx::JPEGImageDecoderPlugin::create(file->bytes()));
EXPECT(jpg->initialize());
auto icc_bytes = MUST(jpg->icc_data());
EXPECT(icc_bytes.has_value());
diff --git a/Tests/LibGfx/TestImageDecoder.cpp b/Tests/LibGfx/TestImageDecoder.cpp
index 58dc750e3e..b47fc2d5b2 100644
--- a/Tests/LibGfx/TestImageDecoder.cpp
+++ b/Tests/LibGfx/TestImageDecoder.cpp
@@ -11,7 +11,7 @@
#include <LibGfx/GIFLoader.h>
#include <LibGfx/ICOLoader.h>
#include <LibGfx/ImageDecoder.h>
-#include <LibGfx/JPGLoader.h>
+#include <LibGfx/JPEGLoader.h>
#include <LibGfx/PBMLoader.h>
#include <LibGfx/PGMLoader.h>
#include <LibGfx/PNGLoader.h>
@@ -88,8 +88,8 @@ TEST_CASE(test_bmp_embedded_in_ico)
TEST_CASE(test_jpg)
{
auto file = MUST(Core::MappedFile::map(TEST_INPUT("rgb24.jpg"sv)));
- EXPECT(MUST(Gfx::JPGImageDecoderPlugin::sniff(file->bytes())));
- auto plugin_decoder = MUST(Gfx::JPGImageDecoderPlugin::create(file->bytes()));
+ EXPECT(MUST(Gfx::JPEGImageDecoderPlugin::sniff(file->bytes())));
+ auto plugin_decoder = MUST(Gfx::JPEGImageDecoderPlugin::create(file->bytes()));
EXPECT(plugin_decoder->initialize());
EXPECT(plugin_decoder->frame_count());