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

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

Issue 2724363002: Migrate WTF::LinkedHashSet/ListHashSet::add() to ::insert() (Closed)
Patch Set: 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/HeapTest.cpp
diff --git a/third_party/WebKit/Source/platform/heap/HeapTest.cpp b/third_party/WebKit/Source/platform/heap/HeapTest.cpp
index ba4d113443a5422a14382d2455b15e06d354c386..26070fa6b7026c4aff5c1e8fcf1f858bbead74e8 100644
--- a/third_party/WebKit/Source/platform/heap/HeapTest.cpp
+++ b/third_party/WebKit/Source/platform/heap/HeapTest.cpp
@@ -2994,13 +2994,13 @@ void orderedSetHelper(bool strong) {
keepNumbersAlive.push_back(IntWrapper::create(103));
keepNumbersAlive.push_back(IntWrapper::create(10));
- set1->add(IntWrapper::create(0));
- set1->add(keepNumbersAlive[0]);
- set1->add(keepNumbersAlive[1]);
- set1->add(keepNumbersAlive[2]);
+ set1->insert(IntWrapper::create(0));
+ set1->insert(keepNumbersAlive[0]);
+ set1->insert(keepNumbersAlive[1]);
+ set1->insert(keepNumbersAlive[2]);
set2->clear();
- set2->add(IntWrapper::create(42));
+ set2->insert(IntWrapper::create(42));
set2->clear();
EXPECT_EQ(4u, set1->size());
@@ -3393,7 +3393,7 @@ TEST(HeapTest, HeapWeakCollectionTypes) {
strongWeak->insert(wrapped2, wrapped);
weakWeak->insert(wrapped, wrapped2);
weakSet->insert(wrapped);
- weakOrderedSet->add(wrapped);
+ weakOrderedSet->insert(wrapped);
}
EXPECT_EQ(64u, weakStrong->size());
@@ -3510,7 +3510,7 @@ TEST(HeapTest, HeapWeakCollectionTypes) {
strongWeak->insert(wrapped, wrapped);
weakWeak->insert(wrapped, wrapped);
weakSet->insert(wrapped);
- weakOrderedSet->add(wrapped);
+ weakOrderedSet->insert(wrapped);
}
}
if (collectionNumber == weakStrongIndex)
@@ -3864,8 +3864,8 @@ TEST(HeapTest, PersistentHeapCollectionTypes) {
pVec.push_back(three);
pSet.insert(four);
- pListSet.add(eight);
- pLinkedSet.add(nine);
+ pListSet.insert(eight);
+ pLinkedSet.insert(nine);
pMap.insert(five, six);
wpMap.insert(ten, eleven);
« no previous file with comments | « third_party/WebKit/Source/platform/heap/HeapCompactTest.cpp ('k') | third_party/WebKit/Source/platform/heap/ThreadState.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698