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

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

Issue 2766723002: Migrate WTF::Vector::prepend() to ::push_front() (Closed)
Patch Set: 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/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 8cb2c6bb2ac1650206176e05a474cf65aafaa87d..6089962d5ef771dd4bb4aa745441d9749f1e42bc 100644
--- a/third_party/WebKit/Source/wtf/VectorTest.cpp
+++ b/third_party/WebKit/Source/wtf/VectorTest.cpp
@@ -205,7 +205,7 @@ TEST(VectorTest, OwnPtr) {
size_t count = 1025;
destructNumber = 0;
for (size_t i = 0; i < count; i++)
- vector.prepend(WTF::wrapUnique(new DestructCounter(i, &destructNumber)));
+ vector.push_front(WTF::wrapUnique(new DestructCounter(i, &destructNumber)));
// Vector relocation must not destruct std::unique_ptr element.
EXPECT_EQ(0, destructNumber);
@@ -571,7 +571,7 @@ TEST(VectorTest, UniquePtr) {
vector.reserveCapacity(2);
vector.uncheckedAppend(Pointer(new int(2)));
vector.insert(2, Pointer(new int(3)));
- vector.prepend(Pointer(new int(0)));
+ vector.push_front(Pointer(new int(0)));
ASSERT_EQ(4u, vector.size());
EXPECT_EQ(0, *vector[0]);
« 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