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

Unified Diff: third_party/WebKit/Source/platform/PODIntervalTreeTest.cpp

Issue 2615813003: Migrate WTF::Vector::append() to ::push_back() [part 14 of N] (Closed)
Patch Set: rebase, small fix in FontSettings.h Created 3 years, 11 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
Index: third_party/WebKit/Source/platform/PODIntervalTreeTest.cpp
diff --git a/third_party/WebKit/Source/platform/PODIntervalTreeTest.cpp b/third_party/WebKit/Source/platform/PODIntervalTreeTest.cpp
index c18bd9570f684f644fb5decbb9f8da96794bb56d..0ed9933e3b3dcf4b05650c6ff14192cad46ee40c 100644
--- a/third_party/WebKit/Source/platform/PODIntervalTreeTest.cpp
+++ b/third_party/WebKit/Source/platform/PODIntervalTreeTest.cpp
@@ -225,7 +225,7 @@ void InsertionAndDeletionTest(int32_t seed, int treeSize) {
DLOG(ERROR) << "*** Adding element "
<< ValueToString<PODInterval<int>>::string(interval);
#endif
- addedElements.append(interval);
+ addedElements.push_back(interval);
}
// Churn the tree's contents.
// First remove half of the elements in random order.
@@ -239,7 +239,7 @@ void InsertionAndDeletionTest(int32_t seed, int treeSize) {
ASSERT_TRUE(tree.contains(addedElements[index])) << "Test failed for seed "
<< seed;
tree.remove(addedElements[index]);
- removedElements.append(addedElements[index]);
+ removedElements.push_back(addedElements[index]);
addedElements.remove(index);
ASSERT_TRUE(tree.checkInvariants()) << "Test failed for seed " << seed;
}
@@ -260,7 +260,7 @@ void InsertionAndDeletionTest(int32_t seed, int treeSize) {
removedElements[index]);
#endif
tree.add(removedElements[index]);
- addedElements.append(removedElements[index]);
+ addedElements.push_back(removedElements[index]);
removedElements.remove(index);
} else {
int index = nextRandom(addedElements.size());
@@ -273,7 +273,7 @@ void InsertionAndDeletionTest(int32_t seed, int treeSize) {
<< "Test failed for seed " << seed;
ASSERT_TRUE(tree.remove(addedElements[index])) << "Test failed for seed "
<< seed;
- removedElements.append(addedElements[index]);
+ removedElements.push_back(addedElements[index]);
addedElements.remove(index);
}
ASSERT_TRUE(tree.checkInvariants()) << "Test failed for seed " << seed;
« no previous file with comments | « third_party/WebKit/Source/platform/PODIntervalTree.h ('k') | third_party/WebKit/Source/platform/PODRedBlackTreeTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698