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

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

Issue 2725343002: Migrate WTF::LinkedHashSet/ListHashSet::last() to ::back() (Closed)
Patch Set: rebase Created 3 years, 9 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 09d596b5f026715fc339ef17a1f47359b731eebf..226edbe0c2a3227a732f13b82f289fbb07ceb632 100644
--- a/third_party/WebKit/Source/wtf/ListHashSetTest.cpp
+++ b/third_party/WebKit/Source/wtf/ListHashSetTest.cpp
@@ -55,13 +55,13 @@ TYPED_TEST(ListOrLinkedHashSetTest, RemoveFirst) {
list.insert(3);
EXPECT_EQ(-1, list.front());
- EXPECT_EQ(3, list.last());
+ EXPECT_EQ(3, list.back());
list.removeFirst();
EXPECT_EQ(0, list.front());
list.removeLast();
- EXPECT_EQ(2, list.last());
+ EXPECT_EQ(2, list.back());
list.removeFirst();
EXPECT_EQ(1, list.front());
@@ -111,10 +111,10 @@ TYPED_TEST(ListOrLinkedHashSetTest, AppendOrMoveToLastWithDuplicates) {
EXPECT_EQ(3UL, list.size());
// Appending 2 move it to the end.
- EXPECT_EQ(3, list.last());
+ EXPECT_EQ(3, list.back());
result = list.appendOrMoveToLast(2);
EXPECT_FALSE(result.isNewEntry);
- EXPECT_EQ(2, list.last());
+ EXPECT_EQ(2, list.back());
// Inverse the list by moving each element to end end.
result = list.appendOrMoveToLast(3);
@@ -316,7 +316,7 @@ TYPED_TEST(ListOrLinkedHashSetTest, AddReturnIterator) {
EXPECT_EQ(7u, set.size());
set.remove(it);
EXPECT_EQ(6u, set.size());
- EXPECT_EQ(4, set.last());
+ EXPECT_EQ(4, set.back());
}
TYPED_TEST(ListOrLinkedHashSetTest, Swap) {
« 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