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

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

Issue 1845543002: Rename Heap to ThreadHeap (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 8fb436a6cec6f1f8077d2464fa22a1c53f650169..2695044b64a2d4306d67bfaeb315d9ecbec640dd 100644
--- a/third_party/WebKit/Source/modules/indexeddb/IDBTransactionTest.cpp
+++ b/third_party/WebKit/Source/modules/indexeddb/IDBTransactionTest.cpp
@@ -101,13 +101,13 @@ TEST_F(IDBTransactionTest, EnsureLifetime)
PersistentHeapHashSet<WeakMember<IDBTransaction>> set;
set.add(transaction);
- Heap::collectAllGarbage();
+ ThreadHeap::collectAllGarbage();
EXPECT_EQ(1u, set.size());
Persistent<IDBRequest> request = IDBRequest::create(getScriptState(), IDBAny::createUndefined(), transaction.get());
deactivateNewTransactions();
- Heap::collectAllGarbage();
+ ThreadHeap::collectAllGarbage();
EXPECT_EQ(1u, set.size());
// This will generate an abort() call to the back end which is dropped by the fake proxy,
@@ -116,7 +116,7 @@ TEST_F(IDBTransactionTest, EnsureLifetime)
transaction->onAbort(DOMException::create(AbortError, "Aborted"));
transaction.clear();
- Heap::collectAllGarbage();
+ ThreadHeap::collectAllGarbage();
EXPECT_EQ(0u, set.size());
}
@@ -136,17 +136,17 @@ TEST_F(IDBTransactionTest, TransactionFinish)
PersistentHeapHashSet<WeakMember<IDBTransaction>> set;
set.add(transaction);
- Heap::collectAllGarbage();
+ ThreadHeap::collectAllGarbage();
EXPECT_EQ(1u, set.size());
deactivateNewTransactions();
- Heap::collectAllGarbage();
+ ThreadHeap::collectAllGarbage();
EXPECT_EQ(1u, set.size());
transaction.clear();
- Heap::collectAllGarbage();
+ ThreadHeap::collectAllGarbage();
EXPECT_EQ(1u, set.size());
// Stop the context, so events don't get queued (which would keep the transaction alive).
@@ -157,7 +157,7 @@ TEST_F(IDBTransactionTest, TransactionFinish)
db->onAbort(transactionId, DOMException::create(AbortError, "Aborted"));
// onAbort() should have cleared the transaction's reference to the database.
- Heap::collectAllGarbage();
+ ThreadHeap::collectAllGarbage();
EXPECT_EQ(0u, set.size());
}

Powered by Google App Engine
This is Rietveld 408576698