diff options
author | Tim Schumacher <timschumi@gmx.de> | 2023-01-22 05:09:11 +0100 |
---|---|---|
committer | Andrew Kaster <andrewdkaster@gmail.com> | 2023-01-29 19:16:44 -0700 |
commit | 8464da143987e290fa3d9ad739b491e6adbffee6 (patch) | |
tree | 58905a6ac790d1e2368b9132403b190271617c4b /Tests/LibCore/TestLibCoreIODevice.cpp | |
parent | 5f2ea31816612dead5bc7ac59d27da0bc4b45736 (diff) | |
download | serenity-8464da143987e290fa3d9ad739b491e6adbffee6.zip |
AK: Move `Stream` and `SeekableStream` from `LibCore`
`Stream` will be qualified as `AK::Stream` until we remove the
`Core::Stream` namespace. `IODevice` now reuses the `SeekMode` that is
defined by `SeekableStream`, since defining its own would require us to
qualify it with `AK::SeekMode` everywhere.
Diffstat (limited to 'Tests/LibCore/TestLibCoreIODevice.cpp')
-rw-r--r-- | Tests/LibCore/TestLibCoreIODevice.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Tests/LibCore/TestLibCoreIODevice.cpp b/Tests/LibCore/TestLibCoreIODevice.cpp index ae37acabb1..4c4352fbea 100644 --- a/Tests/LibCore/TestLibCoreIODevice.cpp +++ b/Tests/LibCore/TestLibCoreIODevice.cpp @@ -53,19 +53,19 @@ TEST_CASE(file_get_read_position) } off_t offset = 0; - VERIFY(file->seek(0, Core::SeekMode::FromCurrentPosition, &offset)); + VERIFY(file->seek(0, SeekMode::FromCurrentPosition, &offset)); EXPECT_EQ(offset, static_cast<off_t>(i + step_size)); } { off_t offset = 0; - VERIFY(file->seek(0, Core::SeekMode::FromEndPosition, &offset)); + VERIFY(file->seek(0, SeekMode::FromEndPosition, &offset)); EXPECT_EQ(offset, 10240); } { off_t offset = 0; - VERIFY(file->seek(0, Core::SeekMode::SetPosition, &offset)); + VERIFY(file->seek(0, SeekMode::SetPosition, &offset)); EXPECT_EQ(offset, 0); } } |