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

Unified Diff: chrome/browser/sync_file_system/local/local_file_sync_context_unittest.cc

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/local_file_sync_context_unittest.cc
diff --git a/chrome/browser/sync_file_system/local/local_file_sync_context_unittest.cc b/chrome/browser/sync_file_system/local/local_file_sync_context_unittest.cc
index 186e3a826624c602f41a110bb2f4b8c20bfb8a95..8c8a02e5b37ee4c969db8a5005b5401500b21e8b 100644
--- a/chrome/browser/sync_file_system/local/local_file_sync_context_unittest.cc
+++ b/chrome/browser/sync_file_system/local/local_file_sync_context_unittest.cc
@@ -234,7 +234,7 @@ class LocalFileSyncContextTest : public testing::Test {
in_memory_env_.get(),
io_task_runner_.get(),
file_task_runner_.get());
- file_system.SetUp();
+ file_system.SetUp(CannedSyncableFileSystem::QUOTA_ENABLED);
sync_context_ = new LocalFileSyncContext(
dir_.path(), in_memory_env_.get(),
ui_task_runner_.get(), io_task_runner_.get());
@@ -286,7 +286,7 @@ class LocalFileSyncContextTest : public testing::Test {
in_memory_env_.get(),
io_task_runner_.get(),
file_task_runner_.get());
- file_system.SetUp();
+ file_system.SetUp(CannedSyncableFileSystem::QUOTA_ENABLED);
sync_context_ = new LocalFileSyncContext(
dir_.path(), in_memory_env_.get(),
ui_task_runner_.get(), io_task_runner_.get());
@@ -378,7 +378,7 @@ TEST_F(LocalFileSyncContextTest, InitializeFileSystemContext) {
in_memory_env_.get(),
io_task_runner_.get(),
file_task_runner_.get());
- file_system.SetUp();
+ file_system.SetUp(CannedSyncableFileSystem::QUOTA_ENABLED);
sync_context_ = new LocalFileSyncContext(
dir_.path(), in_memory_env_.get(),
@@ -425,8 +425,8 @@ TEST_F(LocalFileSyncContextTest, MultipleFileSystemContexts) {
in_memory_env_.get(),
io_task_runner_.get(),
file_task_runner_.get());
- file_system1.SetUp();
- file_system2.SetUp();
+ file_system1.SetUp(CannedSyncableFileSystem::QUOTA_ENABLED);
+ file_system2.SetUp(CannedSyncableFileSystem::QUOTA_ENABLED);
sync_context_ = new LocalFileSyncContext(
dir_.path(), in_memory_env_.get(),
@@ -540,7 +540,7 @@ TEST_F(LocalFileSyncContextTest, DISABLED_PrepareSyncWhileWriting) {
in_memory_env_.get(),
io_task_runner_.get(),
file_task_runner_.get());
- file_system.SetUp();
+ file_system.SetUp(CannedSyncableFileSystem::QUOTA_ENABLED);
sync_context_ = new LocalFileSyncContext(
dir_.path(), in_memory_env_.get(),
ui_task_runner_.get(), io_task_runner_.get());
@@ -603,7 +603,7 @@ TEST_F(LocalFileSyncContextTest, ApplyRemoteChangeForDeletion) {
in_memory_env_.get(),
io_task_runner_.get(),
file_task_runner_.get());
- file_system.SetUp();
+ file_system.SetUp(CannedSyncableFileSystem::QUOTA_ENABLED);
sync_context_ = new LocalFileSyncContext(
dir_.path(), in_memory_env_.get(),
@@ -691,7 +691,7 @@ TEST_F(LocalFileSyncContextTest, ApplyRemoteChangeForDeletion_ForRoot) {
in_memory_env_.get(),
io_task_runner_.get(),
file_task_runner_.get());
- file_system.SetUp();
+ file_system.SetUp(CannedSyncableFileSystem::QUOTA_ENABLED);
sync_context_ = new LocalFileSyncContext(
dir_.path(), in_memory_env_.get(),
@@ -761,7 +761,7 @@ TEST_F(LocalFileSyncContextTest, ApplyRemoteChangeForAddOrUpdate) {
in_memory_env_.get(),
io_task_runner_.get(),
file_task_runner_.get());
- file_system.SetUp();
+ file_system.SetUp(CannedSyncableFileSystem::QUOTA_ENABLED);
sync_context_ = new LocalFileSyncContext(
dir_.path(), in_memory_env_.get(),
@@ -912,7 +912,7 @@ TEST_F(LocalFileSyncContextTest, ApplyRemoteChangeForAddOrUpdate_NoParent) {
in_memory_env_.get(),
io_task_runner_.get(),
file_task_runner_.get());
- file_system.SetUp();
+ file_system.SetUp(CannedSyncableFileSystem::QUOTA_ENABLED);
sync_context_ = new LocalFileSyncContext(
dir_.path(), in_memory_env_.get(),

Powered by Google App Engine
This is Rietveld 408576698