diff options
author | Tim Schumacher <timschumi@gmx.de> | 2023-03-01 15:27:35 +0100 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2023-03-13 15:16:20 +0000 |
commit | a3f73e7d85584412e2774870bc6538faaaf71001 (patch) | |
tree | 0e16f061a39e5006ff311bcd93011fdd0a3816ba /Tests/LibCore | |
parent | d5871f5717579fab3c093537c44e3cd467560cdd (diff) | |
download | serenity-a3f73e7d85584412e2774870bc6538faaaf71001.zip |
AK: Rename Stream::read_entire_buffer to Stream::read_until_filled
No functional changes.
Diffstat (limited to 'Tests/LibCore')
-rw-r--r-- | Tests/LibCore/TestLibCoreStream.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Tests/LibCore/TestLibCoreStream.cpp b/Tests/LibCore/TestLibCoreStream.cpp index e9bc16a02f..cc835b2a50 100644 --- a/Tests/LibCore/TestLibCoreStream.cpp +++ b/Tests/LibCore/TestLibCoreStream.cpp @@ -90,17 +90,17 @@ TEST_CASE(file_seeking_around) EXPECT(!file->seek(500, SeekMode::SetPosition).is_error()); EXPECT_EQ(file->tell().release_value(), 500ul); - EXPECT(!file->read_entire_buffer(buffer).is_error()); + EXPECT(!file->read_until_filled(buffer).is_error()); EXPECT_EQ(buffer_contents, expected_seek_contents1); EXPECT(!file->seek(234, SeekMode::FromCurrentPosition).is_error()); EXPECT_EQ(file->tell().release_value(), 750ul); - EXPECT(!file->read_entire_buffer(buffer).is_error()); + EXPECT(!file->read_until_filled(buffer).is_error()); EXPECT_EQ(buffer_contents, expected_seek_contents2); EXPECT(!file->seek(-105, SeekMode::FromEndPosition).is_error()); EXPECT_EQ(file->tell().release_value(), 8597ul); - EXPECT(!file->read_entire_buffer(buffer).is_error()); + EXPECT(!file->read_until_filled(buffer).is_error()); EXPECT_EQ(buffer_contents, expected_seek_contents3); } @@ -123,7 +123,7 @@ TEST_CASE(file_adopt_fd) EXPECT(!file->seek(500, SeekMode::SetPosition).is_error()); EXPECT_EQ(file->tell().release_value(), 500ul); - EXPECT(!file->read_entire_buffer(buffer).is_error()); + EXPECT(!file->read_until_filled(buffer).is_error()); EXPECT_EQ(buffer_contents, expected_seek_contents1); // A single seek & read test should be fine for now. |