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

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

Issue 259063004: Track which IndexedDBBackingStores have been opened since boot. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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_cleanup_on_io_error_unittest.cc
diff --git a/content/browser/indexed_db/indexed_db_cleanup_on_io_error_unittest.cc b/content/browser/indexed_db/indexed_db_cleanup_on_io_error_unittest.cc
index a3e2d03f71b7176cc1af0c40db982eeea88ad3ab..fad532c7d50c288429583274ec2e0fc0e30db930 100644
--- a/content/browser/indexed_db/indexed_db_cleanup_on_io_error_unittest.cc
+++ b/content/browser/indexed_db/indexed_db_cleanup_on_io_error_unittest.cc
@@ -85,11 +85,13 @@ TEST(IndexedDBIOErrorTest, CleanUpTest) {
IndexedDBBackingStore::Open(factory,
origin,
path,
+ NULL /* request_context */,
&data_loss,
&data_loss_message,
&disk_full,
&mock_leveldb_factory,
- task_runner);
+ task_runner,
+ false /* clean_journal */);
}
// TODO(dgrogan): Remove expect_destroy if we end up not using it again. It is
@@ -142,11 +144,13 @@ TEST(IndexedDBNonRecoverableIOErrorTest, NuancedCleanupTest) {
IndexedDBBackingStore::Open(factory,
origin,
path,
+ NULL /* request_context */,
&data_loss,
&data_loss_reason,
&disk_full,
&mock_leveldb_factory,
- task_runner);
+ task_runner,
+ false /* clean_journal */);
MockErrorLevelDBFactory<base::File::Error> mock_leveldb_factory2(
base::File::FILE_ERROR_NO_MEMORY, false);
@@ -154,22 +158,26 @@ TEST(IndexedDBNonRecoverableIOErrorTest, NuancedCleanupTest) {
IndexedDBBackingStore::Open(factory,
origin,
path,
+ NULL /* request_context */,
&data_loss,
&data_loss_reason,
&disk_full,
&mock_leveldb_factory2,
- task_runner);
+ task_runner,
+ false /* clean_journal */);
MockErrorLevelDBFactory<int> mock_leveldb_factory3(EIO, false);
scoped_refptr<IndexedDBBackingStore> backing_store3 =
IndexedDBBackingStore::Open(factory,
origin,
path,
+ NULL /* request_context */,
&data_loss,
&data_loss_reason,
&disk_full,
&mock_leveldb_factory3,
- task_runner);
+ task_runner,
+ false /* clean_journal */);
MockErrorLevelDBFactory<base::File::Error> mock_leveldb_factory4(
base::File::FILE_ERROR_FAILED, false);
@@ -177,11 +185,13 @@ TEST(IndexedDBNonRecoverableIOErrorTest, NuancedCleanupTest) {
IndexedDBBackingStore::Open(factory,
origin,
path,
+ NULL /* request_context */,
&data_loss,
&data_loss_reason,
&disk_full,
&mock_leveldb_factory4,
- task_runner);
+ task_runner,
+ false /* clean_journal */);
}
} // namespace

Powered by Google App Engine
This is Rietveld 408576698