Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1004)

Unified Diff: third_party/WebKit/Source/platform/heap/HeapTest.cpp

Issue 2673543003: Migrate WTF::HashMap::remove() to ::erase() (Closed)
Patch Set: Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/platform/heap/HeapTest.cpp
diff --git a/third_party/WebKit/Source/platform/heap/HeapTest.cpp b/third_party/WebKit/Source/platform/heap/HeapTest.cpp
index 3a85dc212a7dd06bdaf4a5b849bc44c26956979b..9b58b4e3ddf270e67ab3d5aeba4e440aedaf6fb4 100644
--- a/third_party/WebKit/Source/platform/heap/HeapTest.cpp
+++ b/third_party/WebKit/Source/platform/heap/HeapTest.cpp
@@ -5573,7 +5573,7 @@ TEST(HeapTest, GCInHashMapOperations) {
Map* map = new Map();
IntWrapper* key = new IntWrapper(42);
map->add(key, AllocatesOnAssignment(103));
- map->remove(key);
+ map->erase(key);
for (int i = 0; i < 10; i++)
map->add(AllocatesOnAssignment(i), AllocatesOnAssignment(i));
for (Map::iterator it = map->begin(); it != map->end(); ++it)

Powered by Google App Engine
This is Rietveld 408576698