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

Unified Diff: third_party/WebKit/Source/wtf/HashSetTest.cpp

Issue 2696183002: Migrate WTF::HashSet::remove() to ::erase() [part 1] (Closed)
Patch Set: one more platform-specific reference 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
« no previous file with comments | « third_party/WebKit/Source/wtf/HashSet.h ('k') | third_party/WebKit/Source/wtf/HashTable.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/wtf/HashSetTest.cpp
diff --git a/third_party/WebKit/Source/wtf/HashSetTest.cpp b/third_party/WebKit/Source/wtf/HashSetTest.cpp
index a8049edd6d914c8fbcfe891ebc07e7d7a2f0837b..4d6e77cc89ae9e94c570b4694684d5af0615cadd 100644
--- a/third_party/WebKit/Source/wtf/HashSetTest.cpp
+++ b/third_party/WebKit/Source/wtf/HashSetTest.cpp
@@ -119,7 +119,7 @@ TEST(HashSetTest, HashSetOwnPtr) {
EXPECT_NE(set.end(), it2);
EXPECT_EQ(ptr2, (*it2).get());
- set.remove(ptr1);
+ set.erase(ptr1);
EXPECT_TRUE(deleted1);
set.clear();
@@ -197,7 +197,7 @@ TEST(HashSetTest, HashSetRefPtr) {
ptr.clear();
EXPECT_FALSE(isDeleted);
- set.remove(rawPtr);
+ set.erase(rawPtr);
EXPECT_TRUE(isDeleted);
EXPECT_TRUE(set.isEmpty());
EXPECT_EQ(1, DummyRefCounted::s_refInvokesCount);
@@ -388,7 +388,7 @@ TEST(HashSetTest, MoveOnlyValue) {
EXPECT_EQ(7, addResult.storedValue->id());
}
- set.remove(MoveOnly(11));
+ set.erase(MoveOnly(11));
iter = set.find(MoveOnly(11));
EXPECT_TRUE(iter == set.end());
« no previous file with comments | « third_party/WebKit/Source/wtf/HashSet.h ('k') | third_party/WebKit/Source/wtf/HashTable.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698