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

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

Issue 2657443005: Migrate WTF::HashSet::add() to ::insert() [part 1 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/IDBTransactionTest.cpp
diff --git a/third_party/WebKit/Source/modules/indexeddb/IDBTransactionTest.cpp b/third_party/WebKit/Source/modules/indexeddb/IDBTransactionTest.cpp
index d04f3200f3ba343ae1ebec720ff3f85accb3002d..e169f4e5f8b99940f4e16cdb5f499d2945cbd5f2 100644
--- a/third_party/WebKit/Source/modules/indexeddb/IDBTransactionTest.cpp
+++ b/third_party/WebKit/Source/modules/indexeddb/IDBTransactionTest.cpp
@@ -73,13 +73,13 @@ TEST(IDBTransactionTest, EnsureLifetime) {
const int64_t transactionId = 1234;
HashSet<String> transactionScope = HashSet<String>();
- transactionScope.add("test-store-name");
+ transactionScope.insert("test-store-name");
Persistent<IDBTransaction> transaction =
IDBTransaction::createNonVersionChange(
scope.getScriptState(), transactionId, transactionScope,
WebIDBTransactionModeReadOnly, db.get());
PersistentHeapHashSet<WeakMember<IDBTransaction>> set;
- set.add(transaction);
+ set.insert(transaction);
ThreadState::current()->collectAllGarbage();
EXPECT_EQ(1u, set.size());
@@ -113,13 +113,13 @@ TEST(IDBTransactionTest, TransactionFinish) {
FakeIDBDatabaseCallbacks::create());
HashSet<String> transactionScope = HashSet<String>();
- transactionScope.add("test-store-name");
+ transactionScope.insert("test-store-name");
Persistent<IDBTransaction> transaction =
IDBTransaction::createNonVersionChange(
scope.getScriptState(), transactionId, transactionScope,
WebIDBTransactionModeReadOnly, db.get());
PersistentHeapHashSet<WeakMember<IDBTransaction>> set;
- set.add(transaction);
+ set.insert(transaction);
ThreadState::current()->collectAllGarbage();
EXPECT_EQ(1u, set.size());

Powered by Google App Engine
This is Rietveld 408576698