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

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

Issue 2457163002: WTF/std normalization: replace WTF::Vector::emplaceAppend with ::emplace_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
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 cda277e65be7463c0f11c3929b69cf9ebd4518b0..2692a4d89615b3580939b6d58237739a85b2123f 100644
--- a/third_party/WebKit/Source/wtf/VectorTest.cpp
+++ b/third_party/WebKit/Source/wtf/VectorTest.cpp
@@ -672,7 +672,7 @@ TEST(VectorTest, Optional) {
EXPECT_EQ(3u, vector->size());
}
-TEST(VectorTest, emplaceAppend) {
+TEST(VectorTest, emplace_back) {
struct Item {
Item(int value1, int value2) : value1(value1), value2(value2) {}
int value1;
@@ -680,8 +680,8 @@ TEST(VectorTest, emplaceAppend) {
};
Vector<Item> vector;
- vector.emplaceAppend(1, 2);
- vector.emplaceAppend(3, 4);
+ vector.emplace_back(1, 2);
+ vector.emplace_back(3, 4);
EXPECT_EQ(2u, vector.size());
EXPECT_EQ(1, vector[0].value1);
« third_party/WebKit/Source/wtf/Vector.h ('K') | « 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