summaryrefslogtreecommitdiff
path: root/Tests/LibCompress
diff options
context:
space:
mode:
authorTim Schumacher <timschumi@gmx.de>2023-02-09 03:02:46 +0100
committerLinus Groh <mail@linusgroh.de>2023-02-13 00:50:07 +0000
commit606a3982f34d777f121fcc4aa964141199676c20 (patch)
tree836fef41d11f1b77f4dac7d699e5c9f720ee4ff1 /Tests/LibCompress
parenta96339b72b3b417ffaa4fbb4e7575149f749acaa (diff)
downloadserenity-606a3982f34d777f121fcc4aa964141199676c20.zip
LibCore: Move Stream-based file into the `Core` namespace
Diffstat (limited to 'Tests/LibCompress')
-rw-r--r--Tests/LibCompress/TestBrotli.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/Tests/LibCompress/TestBrotli.cpp b/Tests/LibCompress/TestBrotli.cpp
index 3acedb460e..f4683d322d 100644
--- a/Tests/LibCompress/TestBrotli.cpp
+++ b/Tests/LibCompress/TestBrotli.cpp
@@ -7,6 +7,7 @@
#include <LibTest/TestCase.h>
#include <LibCompress/Brotli.h>
+#include <LibCore/File.h>
#include <LibCore/Stream.h>
static void run_test(StringView const file_name)
@@ -18,12 +19,12 @@ static void run_test(StringView const file_name)
DeprecatedString path = DeprecatedString::formatted("brotli-test-files/{}", file_name);
#endif
- auto cmp_file = MUST(Core::Stream::File::open(path, Core::Stream::OpenMode::Read));
+ auto cmp_file = MUST(Core::File::open(path, Core::File::OpenMode::Read));
auto cmp_data = MUST(cmp_file->read_until_eof());
DeprecatedString path_compressed = DeprecatedString::formatted("{}.br", path);
- auto file = MUST(Core::Stream::File::open(path_compressed, Core::Stream::OpenMode::Read));
+ auto file = MUST(Core::File::open(path_compressed, Core::File::OpenMode::Read));
auto brotli_stream = Compress::BrotliDecompressionStream { *file };
auto data = MUST(brotli_stream.read_until_eof());
@@ -96,7 +97,7 @@ TEST_CASE(brotli_decompress_zero_one_bin)
DeprecatedString path_compressed = DeprecatedString::formatted("{}.br", path);
- auto file = MUST(Core::Stream::File::open(path_compressed, Core::Stream::OpenMode::Read));
+ auto file = MUST(Core::File::open(path_compressed, Core::File::OpenMode::Read));
auto brotli_stream = Compress::BrotliDecompressionStream { *file };
u8 buffer_raw[4096];