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

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

Issue 2747213002: Migrate WTF::Deque::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/Deque.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/DequeTest.cpp
diff --git a/third_party/WebKit/Source/wtf/DequeTest.cpp b/third_party/WebKit/Source/wtf/DequeTest.cpp
index 09dd3cc54966a7e6b4ea23395e2573406ce004ef..5a676ce104f267503fc32d096857f7dc67e0098e 100644
--- a/third_party/WebKit/Source/wtf/DequeTest.cpp
+++ b/third_party/WebKit/Source/wtf/DequeTest.cpp
@@ -181,7 +181,7 @@ void ownPtrTest() {
std::unique_ptr<DestructCounter>& counter0 = deque.front();
EXPECT_EQ(0, counter0->get());
- int counter1 = deque.last()->get();
+ int counter1 = deque.back()->get();
EXPECT_EQ(1, counter1);
EXPECT_EQ(0, destructNumber);
@@ -270,7 +270,7 @@ TEST(DequeTest, MoveOnlyType) {
EXPECT_EQ(2u, deque.size());
ASSERT_EQ(1, deque.front().value());
- ASSERT_EQ(2, deque.last().value());
+ ASSERT_EQ(2, deque.back().value());
MoveOnly oldFirst = deque.takeFirst();
ASSERT_EQ(1, oldFirst.value());
« no previous file with comments | « third_party/WebKit/Source/wtf/Deque.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698