Lines Matching refs:iref2
102 IndirectRef iref2 = lrt.Add(obj2.Get(), &error_msg); in BasicTest() local
103 EXPECT_TRUE(iref2 != nullptr); in BasicTest()
108 EXPECT_OBJ_PTR_EQ(obj2.Get(), lrt.Get(iref2)); in BasicTest()
114 EXPECT_TRUE(lrt.Remove(iref2)); in BasicTest()
129 iref2 = lrt.Add(obj2.Get(), &error_msg); in BasicTest()
130 EXPECT_TRUE(iref2 != nullptr); in BasicTest()
133 ASSERT_TRUE(lrt.Remove(iref2)); in BasicTest()
149 iref2 = lrt.Add(obj2.Get(), &error_msg); in BasicTest()
150 EXPECT_TRUE(iref2 != nullptr); in BasicTest()
165 ASSERT_TRUE(lrt.Remove(iref2)); in BasicTest()
180 iref2 = lrt.Add(obj2.Get(), &error_msg); in BasicTest()
181 EXPECT_TRUE(iref2 != nullptr); in BasicTest()
202 ASSERT_TRUE(lrt.Remove(iref2)); in BasicTest()
332 IndirectRef iref2 = lrt.Add(obj2.Get(), &error_msg); in BasicHolesTest() local
350 UNUSED(iref0, iref1, iref2, iref3); in BasicHolesTest()
367 IndirectRef iref2 = lrt.Add(obj2.Get(), &error_msg); in BasicHolesTest() local
370 EXPECT_TRUE(lrt.Remove(iref2)); in BasicHolesTest()
378 EXPECT_FALSE(lrt.IsValidReference(iref2, &error_msg)); in BasicHolesTest()
381 UNUSED(iref0, iref1, iref2, iref3, iref4); in BasicHolesTest()
399 IndirectRef iref2 = lrt.Add(obj2.Get(), &error_msg); in BasicHolesTest() local
422 UNUSED(iref0, iref1, iref2, iref3, iref4); in BasicHolesTest()
444 IndirectRef iref2 = lrt.Add(obj1.Get(), &error_msg); in BasicHolesTest() local
463 UNUSED(iref0, iref1, iref2, iref3, iref4, iref5); in BasicHolesTest()
481 IndirectRef iref2 = lrt.Add(obj1.Get(), &error_msg); in BasicHolesTest() local
484 EXPECT_TRUE(lrt.Remove(iref2)); in BasicHolesTest()
499 UNUSED(iref0, iref1, iref2, iref3, iref4); in BasicHolesTest()
588 IndirectRef iref0, iref1, iref2, iref3; in TestAddRemove() local
630 ADD_REF(iref2, obj2, 3u); in TestAddRemove()
633 ASSERT_FALSE(lrt.Remove(iref2)); // Cannot remove from popped segment. in TestAddRemove()
639 ADD_REF(iref2, obj2x, 3u); in TestAddRemove()
644 REMOVE_REF(iref2, 1u); // Remove top entry, prune previous entry. in TestAddRemove()
648 ADD_REF(iref2, obj2, 3u); in TestAddRemove()
650 REMOVE_REF(iref2, 4u); // Create hole in second segment. in TestAddRemove()
652 ADD_REF(iref2, obj2x, 3u); // Prune free list, use new entry. in TestAddRemove()
653 REMOVE_REF(iref2, 2u); in TestAddRemove()
657 ADD_REF(iref2, obj2, 3u); in TestAddRemove()
659 REMOVE_REF(iref2, 4u); // Create hole in second segment. in TestAddRemove()
665 ADD_REF(iref2, obj2x, 3u); in TestAddRemove()
667 REMOVE_REF(iref2, 4u); // Create hole in second segment. in TestAddRemove()