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

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

Issue 2890023003: [IndexedDB] Adding async tracing for renderer calls. (Closed)
Patch Set: test fix Created 3 years, 7 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/IDBRequestTest.cpp
diff --git a/third_party/WebKit/Source/modules/indexeddb/IDBRequestTest.cpp b/third_party/WebKit/Source/modules/indexeddb/IDBRequestTest.cpp
index 2cc605b92be177cc53feff78606da72fe3ffb058..5ec808633b5cfce2896b8346d60aa3ba416e2530 100644
--- a/third_party/WebKit/Source/modules/indexeddb/IDBRequestTest.cpp
+++ b/third_party/WebKit/Source/modules/indexeddb/IDBRequestTest.cpp
@@ -53,8 +53,9 @@ namespace {
TEST(IDBRequestTest, EventsAfterStopping) {
V8TestingScope scope;
IDBTransaction* transaction = nullptr;
- IDBRequest* request = IDBRequest::Create(
- scope.GetScriptState(), IDBAny::CreateUndefined(), transaction);
+ IDBRequest* request =
+ IDBRequest::Create(scope.GetScriptState(), IDBAny::CreateUndefined(),
+ transaction, IDBRequest::AsyncTraceState());
EXPECT_EQ(request->readyState(), "pending");
scope.GetExecutionContext()->NotifyContextDestroyed();
@@ -75,8 +76,9 @@ TEST(IDBRequestTest, EventsAfterStopping) {
TEST(IDBRequestTest, AbortErrorAfterAbort) {
V8TestingScope scope;
IDBTransaction* transaction = nullptr;
- IDBRequest* request = IDBRequest::Create(
- scope.GetScriptState(), IDBAny::CreateUndefined(), transaction);
+ IDBRequest* request =
+ IDBRequest::Create(scope.GetScriptState(), IDBAny::CreateUndefined(),
+ transaction, IDBRequest::AsyncTraceState());
EXPECT_EQ(request->readyState(), "pending");
// Simulate the IDBTransaction having received OnAbort from back end and

Powered by Google App Engine
This is Rietveld 408576698