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

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

Issue 147843007: [SyncFS] Disable quota management on tests (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix 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/canned_syncable_file_system.h
diff --git a/chrome/browser/sync_file_system/local/canned_syncable_file_system.h b/chrome/browser/sync_file_system/local/canned_syncable_file_system.h
index a32dd34582c4874eba5a511eaf37e8d89a097ff3..c3360bcb03bcb7b63572c276c905347af929b14a 100644
--- a/chrome/browser/sync_file_system/local/canned_syncable_file_system.h
+++ b/chrome/browser/sync_file_system/local/canned_syncable_file_system.h
@@ -67,6 +67,11 @@ class CannedSyncableFileSystem
typedef base::Callback<void(int64)> WriteCallback;
typedef fileapi::FileSystemOperation::FileEntryList FileEntryList;
+ enum QuotaMode {
+ QUOTA_ENABLED,
+ QUOTA_DISABLED,
+ };
+
CannedSyncableFileSystem(const GURL& origin,
leveldb::Env* env_override,
base::SingleThreadTaskRunner* io_task_runner,
@@ -74,7 +79,7 @@ class CannedSyncableFileSystem
virtual ~CannedSyncableFileSystem();
// SetUp must be called before using this instance.
- void SetUp();
+ void SetUp(QuotaMode quota_mode);
// TearDown must be called before destructing this instance.
void TearDown();

Powered by Google App Engine
This is Rietveld 408576698