Index: test/cctest/test-ordered-hash-table.cc |
diff --git a/test/cctest/test-ordered-hash-table.cc b/test/cctest/test-ordered-hash-table.cc |
index 1614e4b27e208afdbc5fdfe923f853852c7cf610..601fb1f1e772f0cbc8a0a05656062e6c8cb209b4 100644 |
--- a/test/cctest/test-ordered-hash-table.cc |
+++ b/test/cctest/test-ordered-hash-table.cc |
@@ -176,8 +176,9 @@ TEST(Map) { |
ordered_map = OrderedHashMap::Put(ordered_map, obj, val); |
CHECK_EQ(1, ordered_map->NumberOfElements()); |
CHECK(ordered_map->Lookup(obj)->SameValue(*val)); |
- ordered_map = OrderedHashMap::Put( |
- ordered_map, obj, factory->the_hole_value()); |
+ bool was_present = false; |
+ ordered_map = OrderedHashMap::Remove(ordered_map, obj, &was_present); |
+ CHECK(was_present); |
CHECK_EQ(0, ordered_map->NumberOfElements()); |
CHECK(ordered_map->Lookup(obj)->IsTheHole()); |
@@ -238,14 +239,14 @@ TEST(Map) { |
true); |
// Test shrinking |
- ordered_map = OrderedHashMap::Put( |
- ordered_map, obj, factory->the_hole_value()); |
- ordered_map = OrderedHashMap::Put( |
- ordered_map, obj1, factory->the_hole_value()); |
- ordered_map = OrderedHashMap::Put( |
- ordered_map, obj2, factory->the_hole_value()); |
- ordered_map = OrderedHashMap::Put( |
- ordered_map, obj3, factory->the_hole_value()); |
+ ordered_map = OrderedHashMap::Remove(ordered_map, obj, &was_present); |
+ CHECK(was_present); |
+ ordered_map = OrderedHashMap::Remove(ordered_map, obj1, &was_present); |
+ CHECK(was_present); |
+ ordered_map = OrderedHashMap::Remove(ordered_map, obj2, &was_present); |
+ CHECK(was_present); |
+ ordered_map = OrderedHashMap::Remove(ordered_map, obj3, &was_present); |
+ CHECK(was_present); |
CHECK_EQ(1, ordered_map->NumberOfElements()); |
CHECK_EQ(2, ordered_map->NumberOfBuckets()); |
} |