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

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

Issue 2776203002: Migrate WTF::Vector::remove() to ::erase() (Closed)
Patch Set: rebase, repatch VectorTest 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
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 0ed9933e3b3dcf4b05650c6ff14192cad46ee40c..45adcf4fa1ab9196edd62d381eb9b3475a2d855f 100644
--- a/third_party/WebKit/Source/platform/PODIntervalTreeTest.cpp
+++ b/third_party/WebKit/Source/platform/PODIntervalTreeTest.cpp
@@ -240,7 +240,7 @@ void InsertionAndDeletionTest(int32_t seed, int treeSize) {
<< seed;
tree.remove(addedElements[index]);
removedElements.push_back(addedElements[index]);
- addedElements.remove(index);
+ addedElements.erase(index);
ASSERT_TRUE(tree.checkInvariants()) << "Test failed for seed " << seed;
}
// Now randomly add or remove elements.
@@ -261,7 +261,7 @@ void InsertionAndDeletionTest(int32_t seed, int treeSize) {
#endif
tree.add(removedElements[index]);
addedElements.push_back(removedElements[index]);
- removedElements.remove(index);
+ removedElements.erase(index);
} else {
int index = nextRandom(addedElements.size());
#ifdef DEBUG_INSERTION_AND_DELETION_TEST
@@ -274,7 +274,7 @@ void InsertionAndDeletionTest(int32_t seed, int treeSize) {
ASSERT_TRUE(tree.remove(addedElements[index])) << "Test failed for seed "
<< seed;
removedElements.push_back(addedElements[index]);
- addedElements.remove(index);
+ addedElements.erase(index);
}
ASSERT_TRUE(tree.checkInvariants()) << "Test failed for seed " << seed;
}

Powered by Google App Engine
This is Rietveld 408576698