diff options
author | Tim Schumacher <timschumi@gmx.de> | 2023-01-22 04:24:18 +0100 |
---|---|---|
committer | Andrew Kaster <andrewdkaster@gmail.com> | 2023-01-29 19:16:44 -0700 |
commit | 5f2ea31816612dead5bc7ac59d27da0bc4b45736 (patch) | |
tree | de38924f38690ac2e440744f51712422c50aedb9 /Tests | |
parent | 5fa590de71b10ab020cb63065d2aa37da65f5371 (diff) | |
download | serenity-5f2ea31816612dead5bc7ac59d27da0bc4b45736.zip |
AK: Move `Handle` from `LibCore` and name it `MaybeOwned`
The new name should make it abundantly clear what it does.
Diffstat (limited to 'Tests')
-rw-r--r-- | Tests/LibCore/TestLibCoreStream.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/Tests/LibCore/TestLibCoreStream.cpp b/Tests/LibCore/TestLibCoreStream.cpp index 9467e1b2ab..2200293b10 100644 --- a/Tests/LibCore/TestLibCoreStream.cpp +++ b/Tests/LibCore/TestLibCoreStream.cpp @@ -5,6 +5,7 @@ */ #include <AK/Format.h> +#include <AK/MaybeOwned.h> #include <AK/String.h> #include <LibCore/BitStream.h> #include <LibCore/EventLoop.h> @@ -726,8 +727,8 @@ TEST_CASE(little_endian_bit_stream_input_output_match) // Note: The bit stream only ever reads from/writes to the underlying stream in one byte chunks, // so testing with sizes that will not trigger a write will yield unexpected results. - auto bit_write_stream = MUST(Core::Stream::LittleEndianOutputBitStream::construct(Core::Stream::Handle<Core::Stream::Stream>(*memory_stream))); - auto bit_read_stream = MUST(Core::Stream::LittleEndianInputBitStream::construct(Core::Stream::Handle<Core::Stream::Stream>(*memory_stream))); + auto bit_write_stream = MUST(Core::Stream::LittleEndianOutputBitStream::construct(MaybeOwned<Core::Stream::Stream>(*memory_stream))); + auto bit_read_stream = MUST(Core::Stream::LittleEndianInputBitStream::construct(MaybeOwned<Core::Stream::Stream>(*memory_stream))); // Test two mirrored chunks of a fully mirrored pattern to check that we are not dropping bits. { @@ -782,8 +783,8 @@ TEST_CASE(big_endian_bit_stream_input_output_match) // Note: The bit stream only ever reads from/writes to the underlying stream in one byte chunks, // so testing with sizes that will not trigger a write will yield unexpected results. - auto bit_write_stream = MUST(Core::Stream::BigEndianOutputBitStream::construct(Core::Stream::Handle<Core::Stream::Stream>(*memory_stream))); - auto bit_read_stream = MUST(Core::Stream::BigEndianInputBitStream::construct(Core::Stream::Handle<Core::Stream::Stream>(*memory_stream))); + auto bit_write_stream = MUST(Core::Stream::BigEndianOutputBitStream::construct(MaybeOwned<Core::Stream::Stream>(*memory_stream))); + auto bit_read_stream = MUST(Core::Stream::BigEndianInputBitStream::construct(MaybeOwned<Core::Stream::Stream>(*memory_stream))); // Test two mirrored chunks of a fully mirrored pattern to check that we are not dropping bits. { |