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

Unified Diff: content/browser/indexed_db/indexed_db_unittest.cc

Issue 2472213003: [IndexedDB] Refactoring to remove ref ptrs and host transaction ids. (Closed)
Patch Set: comments & rebase Created 4 years, 1 month 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: content/browser/indexed_db/indexed_db_unittest.cc
diff --git a/content/browser/indexed_db/indexed_db_unittest.cc b/content/browser/indexed_db/indexed_db_unittest.cc
index fc0158c84e129b66e1074395f45b899f4cc827d5..f6c150d5f11b73fd5d6dd87bda342e66d4dc0ff2 100644
--- a/content/browser/indexed_db/indexed_db_unittest.cc
+++ b/content/browser/indexed_db/indexed_db_unittest.cc
@@ -191,14 +191,14 @@ TEST_F(IndexedDBTest, ForceCloseOpenDatabasesOnDelete) {
std::unique_ptr<IndexedDBPendingConnection> open_connection(
base::MakeUnique<IndexedDBPendingConnection>(
open_callbacks, open_db_callbacks, 0 /* child_process_id */,
- 0 /* host_transaction_id */, 0 /* version */));
+ url::Origin(), 0 /* host_transaction_id */, 0 /* version */));
factory->Open(base::ASCIIToUTF16("opendb"), std::move(open_connection),
nullptr /* request_context */, Origin(kTestOrigin),
idb_context->data_path());
std::unique_ptr<IndexedDBPendingConnection> closed_connection(
base::MakeUnique<IndexedDBPendingConnection>(
closed_callbacks, closed_db_callbacks, 0 /* child_process_id */,
- 0 /* host_transaction_id */, 0 /* version */));
+ url::Origin(), 0 /* host_transaction_id */, 0 /* version */));
factory->Open(base::ASCIIToUTF16("closeddb"), std::move(closed_connection),
nullptr /* request_context */, Origin(kTestOrigin),
idb_context->data_path());
@@ -269,8 +269,8 @@ TEST_F(IndexedDBTest, ForceCloseOpenDatabasesOnCommitFailure) {
const int64_t transaction_id = 1;
std::unique_ptr<IndexedDBPendingConnection> connection(
base::MakeUnique<IndexedDBPendingConnection>(
- callbacks, db_callbacks, 0 /* child_process_id */, transaction_id,
- IndexedDBDatabaseMetadata::DEFAULT_VERSION));
+ callbacks, db_callbacks, 0 /* child_process_id */, url::Origin(),
+ transaction_id, IndexedDBDatabaseMetadata::DEFAULT_VERSION));
factory->Open(base::ASCIIToUTF16("db"), std::move(connection),
nullptr /* request_context */, Origin(kTestOrigin),
temp_dir.GetPath());

Powered by Google App Engine
This is Rietveld 408576698