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

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

Issue 1884083002: Revert of 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 2695044b64a2d4306d67bfaeb315d9ecbec640dd..8fb436a6cec6f1f8077d2464fa22a1c53f650169 100644
--- a/third_party/WebKit/Source/modules/indexeddb/IDBTransactionTest.cpp
+++ b/third_party/WebKit/Source/modules/indexeddb/IDBTransactionTest.cpp
@@ -101,13 +101,13 @@
PersistentHeapHashSet<WeakMember<IDBTransaction>> set;
set.add(transaction);
- ThreadHeap::collectAllGarbage();
+ Heap::collectAllGarbage();
EXPECT_EQ(1u, set.size());
Persistent<IDBRequest> request = IDBRequest::create(getScriptState(), IDBAny::createUndefined(), transaction.get());
deactivateNewTransactions();
- ThreadHeap::collectAllGarbage();
+ Heap::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 @@
transaction->onAbort(DOMException::create(AbortError, "Aborted"));
transaction.clear();
- ThreadHeap::collectAllGarbage();
+ Heap::collectAllGarbage();
EXPECT_EQ(0u, set.size());
}
@@ -136,17 +136,17 @@
PersistentHeapHashSet<WeakMember<IDBTransaction>> set;
set.add(transaction);
- ThreadHeap::collectAllGarbage();
+ Heap::collectAllGarbage();
EXPECT_EQ(1u, set.size());
deactivateNewTransactions();
- ThreadHeap::collectAllGarbage();
+ Heap::collectAllGarbage();
EXPECT_EQ(1u, set.size());
transaction.clear();
- ThreadHeap::collectAllGarbage();
+ Heap::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 @@
db->onAbort(transactionId, DOMException::create(AbortError, "Aborted"));
// onAbort() should have cleared the transaction's reference to the database.
- ThreadHeap::collectAllGarbage();
+ Heap::collectAllGarbage();
EXPECT_EQ(0u, set.size());
}

Powered by Google App Engine
This is Rietveld 408576698