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

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

Issue 2671933002: Migrate WTF::HashMap::add() to ::insert() (Closed)
Patch Set: rebase, add TODOs Created 3 years, 10 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/HeapCompactTest.cpp
diff --git a/third_party/WebKit/Source/platform/heap/HeapCompactTest.cpp b/third_party/WebKit/Source/platform/heap/HeapCompactTest.cpp
index ab637f05aa6ac2d783d729896a9a0921cfd8ad23..c9c774a29516729f7e1d39f684762771f8489944 100644
--- a/third_party/WebKit/Source/platform/heap/HeapCompactTest.cpp
+++ b/third_party/WebKit/Source/platform/heap/HeapCompactTest.cpp
@@ -235,7 +235,7 @@ TEST(HeapCompactTest, CompactHashMap) {
Persistent<IntMap> intMap = new IntMap();
for (size_t i = 0; i < 100; ++i) {
IntWrapper* val = IntWrapper::create(i);
- intMap->add(val, 100 - i);
+ intMap->insert(val, 100 - i);
}
EXPECT_EQ(100u, intMap->size());
@@ -258,7 +258,7 @@ TEST(HeapCompactTest, CompactVectorPartHashMap) {
IntMap map;
for (size_t j = 0; j < 10; ++j) {
IntWrapper* val = IntWrapper::create(j);
- map.add(val, 10 - j);
+ map.insert(val, 10 - j);
}
intMapVector->push_back(map);
}
@@ -293,7 +293,7 @@ TEST(HeapCompactTest, CompactHashPartVector) {
for (size_t j = 0; j < 10; ++j) {
vector.push_back(IntWrapper::create(j));
}
- intVectorMap->add(1 + i, vector);
+ intVectorMap->insert(1 + i, vector);
}
EXPECT_EQ(10u, intVectorMap->size());
« no previous file with comments | « third_party/WebKit/Source/platform/heap/HeapCompact.cpp ('k') | third_party/WebKit/Source/platform/heap/HeapTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698