Home | History | Annotate | Download | only in runtime

Lines Matching full:remove

71   EXPECT_FALSE(irt.Remove(cookie, iref0)) << "unexpectedly successful removal";
73 // Add three, check, remove in the order in which they were added.
88 EXPECT_TRUE(irt.Remove(cookie, iref0));
90 EXPECT_TRUE(irt.Remove(cookie, iref1));
92 EXPECT_TRUE(irt.Remove(cookie, iref2));
101 // Add three, remove in the opposite order.
110 ASSERT_TRUE(irt.Remove(cookie, iref2));
112 ASSERT_TRUE(irt.Remove(cookie, iref1));
114 ASSERT_TRUE(irt.Remove(cookie, iref0));
120 // Add three, remove middle / middle / bottom / top. (Second attempt
121 // to remove middle should fail.)
132 ASSERT_TRUE(irt.Remove(cookie, iref1));
134 ASSERT_FALSE(irt.Remove(cookie, iref1));
140 ASSERT_TRUE(irt.Remove(cookie, iref2));
142 ASSERT_TRUE(irt.Remove(cookie, iref0));
148 // Add four entries. Remove #1, add new entry, verify that table size
149 // is still 4 (i.e. holes are getting filled). Remove #1 and #3, verify
161 ASSERT_TRUE(irt.Remove(cookie, iref1));
170 ASSERT_TRUE(irt.Remove(cookie, iref1));
172 ASSERT_TRUE(irt.Remove(cookie, iref3));
177 ASSERT_TRUE(irt.Remove(cookie, iref2));
179 ASSERT_TRUE(irt.Remove(cookie, iref0));
182 ASSERT_EQ(0U, irt.Capacity()) << "not empty after split remove";
184 // Add an entry, remove it, add a new entry, and try to use the original
190 ASSERT_TRUE(irt.Remove(cookie, iref0));
195 ASSERT_FALSE(irt.Remove(cookie, iref0)) << "mismatched del succeeded";
197 ASSERT_TRUE(irt.Remove(cookie, iref1)) << "switched del failed";
206 ASSERT_TRUE(irt.Remove(cookie, iref0));
213 ASSERT_FALSE(irt.Remove(cookie, iref0)) << "temporal del succeeded";
215 ASSERT_TRUE(irt.Remove(cookie, iref1)) << "temporal cleanup failed";
226 ASSERT_TRUE(irt.Remove(cookie, iref0));
245 ASSERT_TRUE(irt.Remove(cookie, manyRefs[i])) << "failed removing " << i;
251 ASSERT_TRUE(irt.Remove(cookie, iref0)) << "multi-remove final failed";