Lines Matching refs:cookie

66   const uint32_t cookie = IRT_FIRST_SEGMENT;  in TEST_F()  local
71 EXPECT_FALSE(irt.Remove(cookie, iref0)) << "unexpectedly successful removal"; in TEST_F()
74 iref0 = irt.Add(cookie, obj0); in TEST_F()
77 IndirectRef iref1 = irt.Add(cookie, obj1); in TEST_F()
80 IndirectRef iref2 = irt.Add(cookie, obj2); in TEST_F()
88 EXPECT_TRUE(irt.Remove(cookie, iref0)); in TEST_F()
90 EXPECT_TRUE(irt.Remove(cookie, iref1)); in TEST_F()
92 EXPECT_TRUE(irt.Remove(cookie, iref2)); in TEST_F()
102 iref0 = irt.Add(cookie, obj0); in TEST_F()
104 iref1 = irt.Add(cookie, obj1); in TEST_F()
106 iref2 = irt.Add(cookie, obj2); in TEST_F()
110 ASSERT_TRUE(irt.Remove(cookie, iref2)); in TEST_F()
112 ASSERT_TRUE(irt.Remove(cookie, iref1)); in TEST_F()
114 ASSERT_TRUE(irt.Remove(cookie, iref0)); in TEST_F()
122 iref0 = irt.Add(cookie, obj0); in TEST_F()
124 iref1 = irt.Add(cookie, obj1); in TEST_F()
126 iref2 = irt.Add(cookie, obj2); in TEST_F()
132 ASSERT_TRUE(irt.Remove(cookie, iref1)); in TEST_F()
134 ASSERT_FALSE(irt.Remove(cookie, iref1)); in TEST_F()
140 ASSERT_TRUE(irt.Remove(cookie, iref2)); in TEST_F()
142 ASSERT_TRUE(irt.Remove(cookie, iref0)); in TEST_F()
151 iref0 = irt.Add(cookie, obj0); in TEST_F()
153 iref1 = irt.Add(cookie, obj1); in TEST_F()
155 iref2 = irt.Add(cookie, obj2); in TEST_F()
157 IndirectRef iref3 = irt.Add(cookie, obj3); in TEST_F()
161 ASSERT_TRUE(irt.Remove(cookie, iref1)); in TEST_F()
164 iref1 = irt.Add(cookie, obj1); in TEST_F()
170 ASSERT_TRUE(irt.Remove(cookie, iref1)); in TEST_F()
172 ASSERT_TRUE(irt.Remove(cookie, iref3)); in TEST_F()
177 ASSERT_TRUE(irt.Remove(cookie, iref2)); in TEST_F()
179 ASSERT_TRUE(irt.Remove(cookie, iref0)); in TEST_F()
187 iref0 = irt.Add(cookie, obj0); in TEST_F()
190 ASSERT_TRUE(irt.Remove(cookie, iref0)); in TEST_F()
192 iref1 = irt.Add(cookie, obj1); in TEST_F()
195 ASSERT_FALSE(irt.Remove(cookie, iref0)) << "mismatched del succeeded"; in TEST_F()
197 ASSERT_TRUE(irt.Remove(cookie, iref1)) << "switched del failed"; in TEST_F()
203 iref0 = irt.Add(cookie, obj0); in TEST_F()
206 ASSERT_TRUE(irt.Remove(cookie, iref0)); in TEST_F()
208 iref1 = irt.Add(cookie, obj0); in TEST_F()
213 ASSERT_FALSE(irt.Remove(cookie, iref0)) << "temporal del succeeded"; in TEST_F()
215 ASSERT_TRUE(irt.Remove(cookie, iref1)) << "temporal cleanup failed"; in TEST_F()
223 iref0 = irt.Add(cookie, obj0); in TEST_F()
226 ASSERT_TRUE(irt.Remove(cookie, iref0)); in TEST_F()
234 manyRefs[i] = irt.Add(cookie, obj0); in TEST_F()
239 iref0 = irt.Add(cookie, obj0); in TEST_F()
245 ASSERT_TRUE(irt.Remove(cookie, manyRefs[i])) << "failed removing " << i; in TEST_F()
251 ASSERT_TRUE(irt.Remove(cookie, iref0)) << "multi-remove final failed"; in TEST_F()