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

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

Issue 260783003: Some changes to support incognito mode, and some small cleanup. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Undo obsolete changes. 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 34efff3166c06364c8f129f8a03b76976c2b8262..d19a0b886b979c7eaf3a524b7c2c1c95364865d4 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
@@ -86,6 +86,7 @@ TEST(IndexedDBIOErrorTest, CleanUpTest) {
std::string data_loss_message;
bool disk_full = false;
base::TaskRunner* task_runner = NULL;
+ bool clean_journal = false;
scoped_refptr<IndexedDBBackingStore> backing_store =
IndexedDBBackingStore::Open(factory,
origin,
@@ -96,7 +97,7 @@ TEST(IndexedDBIOErrorTest, CleanUpTest) {
&disk_full,
&mock_leveldb_factory,
task_runner,
- false /* clean_journal */);
+ clean_journal);
}
// TODO(dgrogan): Remove expect_destroy if we end up not using it again. It is
@@ -144,6 +145,7 @@ TEST(IndexedDBNonRecoverableIOErrorTest, NuancedCleanupTest) {
std::string data_loss_reason;
bool disk_full = false;
base::TaskRunner* task_runner = NULL;
+ bool clean_journal = false;
MockErrorLevelDBFactory<int> mock_leveldb_factory(ENOSPC, false);
scoped_refptr<IndexedDBBackingStore> backing_store =
@@ -156,7 +158,7 @@ TEST(IndexedDBNonRecoverableIOErrorTest, NuancedCleanupTest) {
&disk_full,
&mock_leveldb_factory,
task_runner,
- false /* clean_journal */);
+ clean_journal);
MockErrorLevelDBFactory<base::File::Error> mock_leveldb_factory2(
base::File::FILE_ERROR_NO_MEMORY, false);
@@ -170,7 +172,7 @@ TEST(IndexedDBNonRecoverableIOErrorTest, NuancedCleanupTest) {
&disk_full,
&mock_leveldb_factory2,
task_runner,
- false /* clean_journal */);
+ clean_journal);
MockErrorLevelDBFactory<int> mock_leveldb_factory3(EIO, false);
scoped_refptr<IndexedDBBackingStore> backing_store3 =
@@ -183,7 +185,7 @@ TEST(IndexedDBNonRecoverableIOErrorTest, NuancedCleanupTest) {
&disk_full,
&mock_leveldb_factory3,
task_runner,
- false /* clean_journal */);
+ clean_journal);
MockErrorLevelDBFactory<base::File::Error> mock_leveldb_factory4(
base::File::FILE_ERROR_FAILED, false);
@@ -197,7 +199,7 @@ TEST(IndexedDBNonRecoverableIOErrorTest, NuancedCleanupTest) {
&disk_full,
&mock_leveldb_factory4,
task_runner,
- false /* clean_journal */);
+ clean_journal);
}
} // namespace
« no previous file with comments | « content/browser/indexed_db/indexed_db_callbacks.cc ('k') | content/browser/indexed_db/indexed_db_dispatcher_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698