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

Unified Diff: sync/internal_api/sync_manager_impl_unittest.cc

Issue 455023003: Let SyncBackupManager keep backup data in memory until shutdown. Only persist (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 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: sync/internal_api/sync_manager_impl_unittest.cc
diff --git a/sync/internal_api/sync_manager_impl_unittest.cc b/sync/internal_api/sync_manager_impl_unittest.cc
index 148a8ede0609a6c25c3dfd52805f5b99e34d6790..0051898e665078d318e8c7f990b29329dd1ea65c 100644
--- a/sync/internal_api/sync_manager_impl_unittest.cc
+++ b/sync/internal_api/sync_manager_impl_unittest.cc
@@ -955,7 +955,9 @@ class SyncManagerTest : public testing::Test,
}
virtual InternalComponentsFactory* GetFactory() {
- return new TestInternalComponentsFactory(GetSwitches(), STORAGE_IN_MEMORY);
+ return new TestInternalComponentsFactory(
+ GetSwitches(), InternalComponentsFactory::STORAGE_IN_MEMORY,
+ InternalComponentsFactory::STORAGE_ON_DISK);
}
// Returns true if we are currently encrypting all sync data. May
@@ -2414,7 +2416,9 @@ class ComponentsFactory : public TestInternalComponentsFactory {
ComponentsFactory(const Switches& switches,
SyncScheduler* scheduler_to_use,
sessions::SyncSessionContext** session_context)
- : TestInternalComponentsFactory(switches, syncer::STORAGE_IN_MEMORY),
+ : TestInternalComponentsFactory(
+ switches, InternalComponentsFactory::STORAGE_IN_MEMORY,
+ InternalComponentsFactory::STORAGE_ON_DISK),
scheduler_to_use_(scheduler_to_use),
session_context_(session_context) {}
virtual ~ComponentsFactory() {}
@@ -3181,7 +3185,9 @@ class SyncManagerInitInvalidStorageTest : public SyncManagerTest {
}
virtual InternalComponentsFactory* GetFactory() OVERRIDE {
- return new TestInternalComponentsFactory(GetSwitches(), STORAGE_INVALID);
+ return new TestInternalComponentsFactory(
+ GetSwitches(), InternalComponentsFactory::STORAGE_INVALID,
+ InternalComponentsFactory::STORAGE_ON_DISK);
}
};

Powered by Google App Engine
This is Rietveld 408576698