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

Unified Diff: third_party/WebKit/Source/modules/indexeddb/IDBKeyPathTest.cpp

Issue 2614663008: Migrate WTF::Vector::append() to ::push_back() [part 13 of N] (Closed)
Patch Set: 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/modules/indexeddb/IDBKeyPathTest.cpp
diff --git a/third_party/WebKit/Source/modules/indexeddb/IDBKeyPathTest.cpp b/third_party/WebKit/Source/modules/indexeddb/IDBKeyPathTest.cpp
index 89a4293f0186476508922076e9544e942e9c4250..e23129fb3daa3f5b250d46db26715169aa313f6d 100644
--- a/third_party/WebKit/Source/modules/indexeddb/IDBKeyPathTest.cpp
+++ b/third_party/WebKit/Source/modules/indexeddb/IDBKeyPathTest.cpp
@@ -61,16 +61,16 @@ TEST(IDBKeyPathTest, ValidKeyPath0) {
TEST(IDBKeyPathTest, ValidKeyPath1) {
Vector<String> expected;
String keyPath("foo");
- expected.append(String("foo"));
+ expected.push_back(String("foo"));
checkKeyPath(keyPath, expected, IDBKeyPathParseErrorNone);
}
TEST(IDBKeyPathTest, ValidKeyPath2) {
Vector<String> expected;
String keyPath("foo.bar.baz");
- expected.append(String("foo"));
- expected.append(String("bar"));
- expected.append(String("baz"));
+ expected.push_back(String("foo"));
+ expected.push_back(String("bar"));
+ expected.push_back(String("baz"));
checkKeyPath(keyPath, expected, IDBKeyPathParseErrorNone);
}
@@ -89,28 +89,28 @@ TEST(IDBKeyPathTest, InvalidKeyPath1) {
TEST(IDBKeyPathTest, InvalidKeyPath2) {
Vector<String> expected;
String keyPath("foo bar baz");
- expected.append(String("foo"));
+ expected.push_back(String("foo"));
checkKeyPath(keyPath, expected, IDBKeyPathParseErrorIdentifier);
}
TEST(IDBKeyPathTest, InvalidKeyPath3) {
Vector<String> expected;
String keyPath("foo .bar .baz");
- expected.append(String("foo"));
+ expected.push_back(String("foo"));
checkKeyPath(keyPath, expected, IDBKeyPathParseErrorIdentifier);
}
TEST(IDBKeyPathTest, InvalidKeyPath4) {
Vector<String> expected;
String keyPath("foo. bar. baz");
- expected.append(String("foo"));
+ expected.push_back(String("foo"));
checkKeyPath(keyPath, expected, IDBKeyPathParseErrorIdentifier);
}
TEST(IDBKeyPathTest, InvalidKeyPath5) {
Vector<String> expected;
String keyPath("foo..bar..baz");
- expected.append(String("foo"));
+ expected.push_back(String("foo"));
checkKeyPath(keyPath, expected, IDBKeyPathParseErrorIdentifier);
}

Powered by Google App Engine
This is Rietveld 408576698