diff options
Diffstat (limited to 'AK/Tests/TestIntrusiveList.cpp')
-rw-r--r-- | AK/Tests/TestIntrusiveList.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/AK/Tests/TestIntrusiveList.cpp b/AK/Tests/TestIntrusiveList.cpp index ee9af5a276..3e3012bc20 100644 --- a/AK/Tests/TestIntrusiveList.cpp +++ b/AK/Tests/TestIntrusiveList.cpp @@ -60,7 +60,7 @@ using IntrusiveRefPtrList = IntrusiveList<IntrusiveRefPtrItem, RefPtr<IntrusiveR TEST_CASE(intrusive_ref_ptr_no_ref_leaks) { - auto item = adopt(*new IntrusiveRefPtrItem()); + auto item = adopt_ref(*new IntrusiveRefPtrItem()); EXPECT_EQ(1u, item->ref_count()); IntrusiveRefPtrList ref_list; @@ -73,7 +73,7 @@ TEST_CASE(intrusive_ref_ptr_no_ref_leaks) TEST_CASE(intrusive_ref_ptr_clear) { - auto item = adopt(*new IntrusiveRefPtrItem()); + auto item = adopt_ref(*new IntrusiveRefPtrItem()); EXPECT_EQ(1u, item->ref_count()); IntrusiveRefPtrList ref_list; @@ -86,7 +86,7 @@ TEST_CASE(intrusive_ref_ptr_clear) TEST_CASE(intrusive_ref_ptr_destructor) { - auto item = adopt(*new IntrusiveRefPtrItem()); + auto item = adopt_ref(*new IntrusiveRefPtrItem()); EXPECT_EQ(1u, item->ref_count()); { @@ -107,7 +107,7 @@ using IntrusiveNonnullRefPtrList = IntrusiveList<IntrusiveNonnullRefPtrItem, Non TEST_CASE(intrusive_nonnull_ref_ptr_intrusive) { - auto item = adopt(*new IntrusiveNonnullRefPtrItem()); + auto item = adopt_ref(*new IntrusiveNonnullRefPtrItem()); EXPECT_EQ(1u, item->ref_count()); IntrusiveNonnullRefPtrList nonnull_ref_list; |