mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-12 11:09:18 +00:00
AK: Move memory streams from LibCore
This commit is contained in:
parent
11550f582b
commit
093cf428a3
Notes:
sideshowbarker
2024-07-17 00:58:49 +09:00
Author: https://github.com/timschumi
Commit: 093cf428a3
Pull-request: https://github.com/SerenityOS/serenity/pull/17173
Reviewed-by: https://github.com/ADKaster ✅
Reviewed-by: https://github.com/alimpfard
46 changed files with 213 additions and 203 deletions
|
@ -5,13 +5,13 @@
|
|||
*/
|
||||
|
||||
#include <AK/BitStream.h>
|
||||
#include <LibCore/MemoryStream.h>
|
||||
#include <AK/MemoryStream.h>
|
||||
#include <LibTest/TestCase.h>
|
||||
|
||||
// Note: This does not do any checks on the internal representation, it just ensures that the behavior of the input and output streams match.
|
||||
TEST_CASE(little_endian_bit_stream_input_output_match)
|
||||
{
|
||||
auto memory_stream = make<Core::Stream::AllocatingMemoryStream>();
|
||||
auto memory_stream = make<AllocatingMemoryStream>();
|
||||
|
||||
// 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.
|
||||
|
@ -67,7 +67,7 @@ TEST_CASE(little_endian_bit_stream_input_output_match)
|
|||
// Note: This does not do any checks on the internal representation, it just ensures that the behavior of the input and output streams match.
|
||||
TEST_CASE(big_endian_bit_stream_input_output_match)
|
||||
{
|
||||
auto memory_stream = make<Core::Stream::AllocatingMemoryStream>();
|
||||
auto memory_stream = make<AllocatingMemoryStream>();
|
||||
|
||||
// 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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue