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

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

Issue 2746763009: Migrate WTF::Deque::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/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 3e1971a28da32b010fd05a5ef1cef4321bde1be5..d4e2655dac6b09101ba78b8e905c1c9fb7b64c76 100644
--- a/third_party/WebKit/Source/wtf/DequeTest.cpp
+++ b/third_party/WebKit/Source/wtf/DequeTest.cpp
@@ -221,7 +221,7 @@ void ownPtrTest() {
size_t count = 1025;
destructNumber = 0;
for (size_t i = 0; i < count; ++i)
- deque.prepend(WTF::wrapUnique(new DestructCounter(i, &destructNumber)));
+ deque.push_front(WTF::wrapUnique(new DestructCounter(i, &destructNumber)));
// Deque relocation must not destruct std::unique_ptr element.
EXPECT_EQ(0, destructNumber);
@@ -512,8 +512,8 @@ TEST(DequeTest, UniquePtr) {
Deque<Pointer> deque;
deque.push_back(Pointer(new int(1)));
deque.push_back(Pointer(new int(2)));
- deque.prepend(Pointer(new int(-1)));
- deque.prepend(Pointer(new int(-2)));
+ deque.push_front(Pointer(new int(-1)));
+ deque.push_front(Pointer(new int(-2)));
ASSERT_EQ(4u, deque.size());
EXPECT_EQ(-2, *deque[0]);
EXPECT_EQ(-1, *deque[1]);
« 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