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

Unified Diff: chrome/browser/sync_file_system/local/local_file_sync_service.h

Issue 145693005: [FileAPI] Replace default leveldb::Env with leveldb::MemEnv in tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 11 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: chrome/browser/sync_file_system/local/local_file_sync_service.h
diff --git a/chrome/browser/sync_file_system/local/local_file_sync_service.h b/chrome/browser/sync_file_system/local/local_file_sync_service.h
index fdffa4ac6644afc0c1b00a0cd3bade5e12987f0d..a98e3a3be01ae62aacc42a1dbcb2161b788fea29 100644
--- a/chrome/browser/sync_file_system/local/local_file_sync_service.h
+++ b/chrome/browser/sync_file_system/local/local_file_sync_service.h
@@ -26,6 +26,10 @@ namespace fileapi {
class FileSystemContext;
}
+namespace leveldb {
+class Env;
+}
+
namespace webkit_blob {
class ScopedFile;
}
@@ -66,7 +70,10 @@ class LocalFileSyncService
bool has_pending_changes)>
HasPendingLocalChangeCallback;
- explicit LocalFileSyncService(Profile* profile);
+ static scoped_ptr<LocalFileSyncService> Create(Profile* profile);
+ static scoped_ptr<LocalFileSyncService> CreateForTesting(
+ Profile* profile,
+ leveldb::Env* env_override);
virtual ~LocalFileSyncService();
void Shutdown();
@@ -182,6 +189,8 @@ class LocalFileSyncService
std::set<GURL> disabled_origins_;
};
+ LocalFileSyncService(Profile* profile, leveldb::Env* env_override);
+
void DidInitializeFileSystemContext(
const GURL& app_origin,
fileapi::FileSystemContext* file_system_context,

Powered by Google App Engine
This is Rietveld 408576698