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

Unified Diff: sync/internal_api/public/test/test_internal_components_factory.h

Issue 10837231: sync: add InternalComponentsFactory::Switches to simplify passing switches to internal components. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: pass switches in test_profile_sync_service.cc Created 8 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/public/test/test_internal_components_factory.h
diff --git a/sync/internal_api/public/test/test_internal_components_factory.h b/sync/internal_api/public/test/test_internal_components_factory.h
index e9ca6137c14af45b7ad02051a20235444187addb..d48855b9bf4e93e643d5cad11cebc79980026a72 100644
--- a/sync/internal_api/public/test/test_internal_components_factory.h
+++ b/sync/internal_api/public/test/test_internal_components_factory.h
@@ -21,7 +21,8 @@ enum StorageOption {
class TestInternalComponentsFactory : public InternalComponentsFactory {
public:
- explicit TestInternalComponentsFactory(StorageOption option);
+ explicit TestInternalComponentsFactory(const Switches& switches,
+ StorageOption option);
virtual ~TestInternalComponentsFactory();
virtual scoped_ptr<SyncScheduler> BuildScheduler(
@@ -36,15 +37,17 @@ class TestInternalComponentsFactory : public InternalComponentsFactory {
ThrottledDataTypeTracker* throttled_data_type_tracker,
const std::vector<SyncEngineEventListener*>& listeners,
sessions::DebugInfoGetter* debug_info_getter,
- TrafficRecorder* traffic_recorder,
- bool keystore_encryption_enabled) OVERRIDE;
+ TrafficRecorder* traffic_recorder) OVERRIDE;
virtual scoped_ptr<syncable::DirectoryBackingStore>
BuildDirectoryBackingStore(
const std::string& dir_name,
const FilePath& backing_filepath) OVERRIDE;
+ virtual Switches GetSwitches() const OVERRIDE;
+
private:
+ const Switches switches_;
const StorageOption storage_option_;
DISALLOW_COPY_AND_ASSIGN(TestInternalComponentsFactory);

Powered by Google App Engine
This is Rietveld 408576698