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

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

Issue 2502413004: WTF/std normalization: replace WTF::Vector::last with ::back (Closed)
Patch Set: rebase Created 4 years, 1 month 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/Vector.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/VectorTest.cpp
diff --git a/third_party/WebKit/Source/wtf/VectorTest.cpp b/third_party/WebKit/Source/wtf/VectorTest.cpp
index 2692a4d89615b3580939b6d58237739a85b2123f..6066e588cd41cd6feb89e34bbb0f3de242a71810 100644
--- a/third_party/WebKit/Source/wtf/VectorTest.cpp
+++ b/third_party/WebKit/Source/wtf/VectorTest.cpp
@@ -166,7 +166,7 @@ TEST(VectorTest, OwnPtr) {
std::unique_ptr<DestructCounter>& counter0 = vector.first();
ASSERT_EQ(0, counter0->get());
- int counter1 = vector.last()->get();
+ int counter1 = vector.back()->get();
ASSERT_EQ(1, counter1);
ASSERT_EQ(0, destructNumber);
@@ -249,7 +249,7 @@ TEST(VectorTest, MoveOnlyType) {
EXPECT_EQ(2u, vector.size());
ASSERT_EQ(1, vector.first().value());
- ASSERT_EQ(2, vector.last().value());
+ ASSERT_EQ(2, vector.back().value());
vector.remove(0);
EXPECT_EQ(2, vector[0].value());
« no previous file with comments | « third_party/WebKit/Source/wtf/Vector.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698