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

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

Issue 240003011: Add blob-writing functionality [as yet un-called] to IDB's backend. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Cleaned branch 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..760c975c3eb36d9c0dee74a6bd68fbb7a4ca0dc3 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
@@ -29,6 +29,10 @@ namespace content {
class IndexedDBFactory;
}
+namespace net {
+class URLRequestContext;
+}
+
namespace {
class BustedLevelDBDatabase : public LevelDBDatabase {
@@ -75,6 +79,7 @@ TEST(IndexedDBIOErrorTest, CleanUpTest) {
base::ScopedTempDir temp_directory;
ASSERT_TRUE(temp_directory.CreateUniqueTempDir());
const base::FilePath path = temp_directory.path();
+ net::URLRequestContext* request_context = NULL;
MockLevelDBFactory mock_leveldb_factory;
blink::WebIDBDataLoss data_loss =
blink::WebIDBDataLossNone;
@@ -85,6 +90,7 @@ TEST(IndexedDBIOErrorTest, CleanUpTest) {
IndexedDBBackingStore::Open(factory,
origin,
path,
+ request_context,
&data_loss,
&data_loss_message,
&disk_full,
@@ -128,6 +134,7 @@ class MockErrorLevelDBFactory : public LevelDBFactory {
TEST(IndexedDBNonRecoverableIOErrorTest, NuancedCleanupTest) {
content::IndexedDBFactory* factory = NULL;
const GURL origin("http://localhost:81");
+ net::URLRequestContext* request_context = NULL;
base::ScopedTempDir temp_directory;
ASSERT_TRUE(temp_directory.CreateUniqueTempDir());
const base::FilePath path = temp_directory.path();
@@ -142,6 +149,7 @@ TEST(IndexedDBNonRecoverableIOErrorTest, NuancedCleanupTest) {
IndexedDBBackingStore::Open(factory,
origin,
path,
+ request_context,
&data_loss,
&data_loss_reason,
&disk_full,
@@ -154,6 +162,7 @@ TEST(IndexedDBNonRecoverableIOErrorTest, NuancedCleanupTest) {
IndexedDBBackingStore::Open(factory,
origin,
path,
+ request_context,
&data_loss,
&data_loss_reason,
&disk_full,
@@ -165,6 +174,7 @@ TEST(IndexedDBNonRecoverableIOErrorTest, NuancedCleanupTest) {
IndexedDBBackingStore::Open(factory,
origin,
path,
+ request_context,
&data_loss,
&data_loss_reason,
&disk_full,
@@ -177,6 +187,7 @@ TEST(IndexedDBNonRecoverableIOErrorTest, NuancedCleanupTest) {
IndexedDBBackingStore::Open(factory,
origin,
path,
+ request_context,
&data_loss,
&data_loss_reason,
&disk_full,
« no previous file with comments | « content/browser/indexed_db/indexed_db_backing_store.cc ('k') | content/browser/indexed_db/indexed_db_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698