1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 21:37:35 +00:00

AK: Add IntrusiveList::size_slow() to match InlineLinkedList

The functionality is needed to replace InlineLinkedList with
IntrusiveList in the Kernel Process class.
This commit is contained in:
Brian Gianforcaro 2021-06-06 14:13:10 -07:00 committed by Andreas Kling
parent 3dfd450f2d
commit f5e04759cc
2 changed files with 13 additions and 0 deletions

View file

@ -47,6 +47,7 @@ TEST_CASE(enumeration)
actual_size++;
}
EXPECT_EQ(expected_size, actual_size);
EXPECT_EQ(expected_size, list.size_slow());
size_t reverse_actual_size = 0;
for (auto it = list.rbegin(); it != list.rend(); ++it) {