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

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

Issue 2773823002: Use a two-part data format version in IndexedDB metadata. (Closed)
Patch Set: jsbell, cmumford Created 3 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: 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 ddf9854d2e81507071e9073f7ca697869421171c..7d8a2522eb08ae47352ccb19bbe6003c73561fae 100644
--- a/content/browser/indexed_db/indexed_db_unittest.cc
+++ b/content/browser/indexed_db/indexed_db_unittest.cc
@@ -190,14 +190,14 @@ TEST_F(IndexedDBTest, ForceCloseOpenDatabasesOnDelete) {
0 /* host_transaction_id */, 0 /* version */));
factory->Open(base::ASCIIToUTF16("opendb"), std::move(open_connection),
nullptr /* request_context */, Origin(kTestOrigin),
- idb_context->data_path());
+ idb_context->data_path(), IndexedDBDataFormatVersion());
std::unique_ptr<IndexedDBPendingConnection> closed_connection(
base::MakeUnique<IndexedDBPendingConnection>(
closed_callbacks, closed_db_callbacks, 0 /* child_process_id */,
0 /* host_transaction_id */, 0 /* version */));
factory->Open(base::ASCIIToUTF16("closeddb"), std::move(closed_connection),
nullptr /* request_context */, Origin(kTestOrigin),
- idb_context->data_path());
+ idb_context->data_path(), IndexedDBDataFormatVersion());
closed_callbacks->connection()->Close();
@@ -269,7 +269,7 @@ TEST_F(IndexedDBTest, ForceCloseOpenDatabasesOnCommitFailure) {
IndexedDBDatabaseMetadata::DEFAULT_VERSION));
factory->Open(base::ASCIIToUTF16("db"), std::move(connection),
nullptr /* request_context */, Origin(kTestOrigin),
- temp_dir.GetPath());
+ temp_dir.GetPath(), IndexedDBDataFormatVersion());
EXPECT_TRUE(callbacks->connection());

Powered by Google App Engine
This is Rietveld 408576698