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

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

Issue 2320213004: Port IndexedDB open() and database callbacks to Mojo. (Closed)
Patch Set: Make DatabaseClient an associated interface. Created 4 years, 3 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 17c1708757535e34c66f49af5e8c40e3e49d2807..a0497677befa125ce97ae834268fc1254029cc2b 100644
--- a/third_party/WebKit/Source/modules/indexeddb/IDBRequestTest.cpp
+++ b/third_party/WebKit/Source/modules/indexeddb/IDBRequestTest.cpp
@@ -32,7 +32,6 @@
#include "core/dom/ExceptionCode.h"
#include "core/dom/ExecutionContext.h"
#include "core/testing/NullExecutionContext.h"
-#include "modules/indexeddb/IDBDatabaseCallbacks.h"
#include "modules/indexeddb/IDBKey.h"
#include "modules/indexeddb/IDBOpenDBRequest.h"
#include "modules/indexeddb/IDBValue.h"
@@ -93,7 +92,6 @@ TEST(IDBRequestTest, ConnectionsAfterStopping)
const int64_t version = 1;
const int64_t oldVersion = 0;
const IDBDatabaseMetadata metadata;
- Persistent<IDBDatabaseCallbacks> callbacks = IDBDatabaseCallbacks::create();
{
std::unique_ptr<MockWebIDBDatabase> backend = MockWebIDBDatabase::create();
@@ -101,7 +99,7 @@ TEST(IDBRequestTest, ConnectionsAfterStopping)
.Times(1);
EXPECT_CALL(*backend, close())
.Times(1);
- IDBOpenDBRequest* request = IDBOpenDBRequest::create(scope.getScriptState(), callbacks, transactionId, version);
+ IDBOpenDBRequest* request = IDBOpenDBRequest::create(scope.getScriptState(), nullptr, transactionId, version);
EXPECT_EQ(request->readyState(), "pending");
scope.getExecutionContext()->stopActiveDOMObjects();
@@ -112,7 +110,7 @@ TEST(IDBRequestTest, ConnectionsAfterStopping)
std::unique_ptr<MockWebIDBDatabase> backend = MockWebIDBDatabase::create();
EXPECT_CALL(*backend, close())
.Times(1);
- IDBOpenDBRequest* request = IDBOpenDBRequest::create(scope.getScriptState(), callbacks, transactionId, version);
+ IDBOpenDBRequest* request = IDBOpenDBRequest::create(scope.getScriptState(), nullptr, transactionId, version);
EXPECT_EQ(request->readyState(), "pending");
scope.getExecutionContext()->stopActiveDOMObjects();

Powered by Google App Engine
This is Rietveld 408576698