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

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

Issue 2722413005: Migrate WTF::LinkedHashSet/ListHashSet::first() to ::front() (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
« no previous file with comments | « third_party/WebKit/Source/wtf/ListHashSet.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/wtf/ListHashSetTest.cpp
diff --git a/third_party/WebKit/Source/wtf/ListHashSetTest.cpp b/third_party/WebKit/Source/wtf/ListHashSetTest.cpp
index 9ca89a865f024e97fc9c109eb275fb884614999d..09d596b5f026715fc339ef17a1f47359b731eebf 100644
--- a/third_party/WebKit/Source/wtf/ListHashSetTest.cpp
+++ b/third_party/WebKit/Source/wtf/ListHashSetTest.cpp
@@ -54,20 +54,20 @@ TYPED_TEST(ListOrLinkedHashSetTest, RemoveFirst) {
list.insert(2);
list.insert(3);
- EXPECT_EQ(-1, list.first());
+ EXPECT_EQ(-1, list.front());
EXPECT_EQ(3, list.last());
list.removeFirst();
- EXPECT_EQ(0, list.first());
+ EXPECT_EQ(0, list.front());
list.removeLast();
EXPECT_EQ(2, list.last());
list.removeFirst();
- EXPECT_EQ(1, list.first());
+ EXPECT_EQ(1, list.front());
list.removeFirst();
- EXPECT_EQ(2, list.first());
+ EXPECT_EQ(2, list.front());
list.removeFirst();
EXPECT_TRUE(list.isEmpty());
@@ -172,10 +172,10 @@ TYPED_TEST(ListOrLinkedHashSetTest, PrependOrMoveToLastWithDuplicates) {
EXPECT_EQ(3UL, list.size());
// Prepending 2 move it to the beginning.
- EXPECT_EQ(1, list.first());
+ EXPECT_EQ(1, list.front());
result = list.prependOrMoveToFirst(2);
EXPECT_FALSE(result.isNewEntry);
- EXPECT_EQ(2, list.first());
+ EXPECT_EQ(2, list.front());
// Inverse the list by moving each element to the first position.
result = list.prependOrMoveToFirst(1);
@@ -264,7 +264,7 @@ TYPED_TEST(ListOrLinkedHashSetTest, InsertBefore) {
}
set.insertBefore(2, 42);
set.insertBefore(-1, 103);
- EXPECT_EQ(103, set.first());
+ EXPECT_EQ(103, set.front());
if (!canModifyWhileIterating)
it = set.find(1);
++it;
@@ -408,7 +408,7 @@ TYPED_TEST(ListOrLinkedHashSetRefPtrTest, WithRefPtr) {
set.insert(ptr);
// Referenced only once (to store a copy in the container).
EXPECT_EQ(1, DummyRefCounted::m_refInvokesCount);
- EXPECT_EQ(ptr, set.first());
+ EXPECT_EQ(ptr, set.front());
EXPECT_EQ(1, DummyRefCounted::m_refInvokesCount);
DummyRefCounted* rawPtr = ptr.get();
« no previous file with comments | « third_party/WebKit/Source/wtf/ListHashSet.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698