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

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

Issue 2470233009: WTF/std normalization: replace WTF::Vector::first() with ::front() (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 6066e588cd41cd6feb89e34bbb0f3de242a71810..0060c3705ba81a829749a6389cadaa9331484cee 100644
--- a/third_party/WebKit/Source/wtf/VectorTest.cpp
+++ b/third_party/WebKit/Source/wtf/VectorTest.cpp
@@ -164,7 +164,7 @@ TEST(VectorTest, OwnPtr) {
vector.append(wrapUnique(new DestructCounter(1, &destructNumber)));
EXPECT_EQ(2u, vector.size());
- std::unique_ptr<DestructCounter>& counter0 = vector.first();
+ std::unique_ptr<DestructCounter>& counter0 = vector.front();
ASSERT_EQ(0, counter0->get());
int counter1 = vector.back()->get();
ASSERT_EQ(1, counter1);
@@ -248,7 +248,7 @@ TEST(VectorTest, MoveOnlyType) {
vector.append(MoveOnly(2));
EXPECT_EQ(2u, vector.size());
- ASSERT_EQ(1, vector.first().value());
+ ASSERT_EQ(1, vector.front().value());
ASSERT_EQ(2, vector.back().value());
vector.remove(0);
@@ -429,11 +429,11 @@ TEST(VectorTest, AppendFirst) {
// the input reference stale).
size_t limit = vector.capacity() + 1;
for (size_t i = 0; i < limit; i++)
- vector.append(vector.first());
+ vector.append(vector.front());
limit = vector.capacity() + 1;
for (size_t i = 0; i < limit; i++)
- vector.append(const_cast<const WTF::String&>(vector.first()));
+ vector.append(const_cast<const WTF::String&>(vector.front()));
}
// The test below is for the following issue:
« 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