| Index: components/sync/engine/test_engine_components_factory.cc
|
| diff --git a/components/sync/core_impl/test/test_internal_components_factory.cc b/components/sync/engine/test_engine_components_factory.cc
|
| similarity index 83%
|
| rename from components/sync/core_impl/test/test_internal_components_factory.cc
|
| rename to components/sync/engine/test_engine_components_factory.cc
|
| index b6ab6c147f89241bf8a809ff9af431d97352c2d1..116c6d2bbcc7dd7b7d7792f2a2dda3bace64304d 100644
|
| --- a/components/sync/core_impl/test/test_internal_components_factory.cc
|
| +++ b/components/sync/engine/test_engine_components_factory.cc
|
| @@ -2,7 +2,7 @@
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| -#include "components/sync/core/test/test_internal_components_factory.h"
|
| +#include "components/sync/engine/test_engine_components_factory.h"
|
|
|
| #include "components/sync/engine_impl/cycle/sync_cycle_context.h"
|
| #include "components/sync/syncable/in_memory_directory_backing_store.h"
|
| @@ -12,7 +12,7 @@
|
|
|
| namespace syncer {
|
|
|
| -TestInternalComponentsFactory::TestInternalComponentsFactory(
|
| +TestEngineComponentsFactory::TestEngineComponentsFactory(
|
| const Switches& switches,
|
| StorageOption option,
|
| StorageOption* storage_used)
|
| @@ -20,16 +20,16 @@ TestInternalComponentsFactory::TestInternalComponentsFactory(
|
| storage_override_(option),
|
| storage_used_(storage_used) {}
|
|
|
| -TestInternalComponentsFactory::~TestInternalComponentsFactory() {}
|
| +TestEngineComponentsFactory::~TestEngineComponentsFactory() {}
|
|
|
| -std::unique_ptr<SyncScheduler> TestInternalComponentsFactory::BuildScheduler(
|
| +std::unique_ptr<SyncScheduler> TestEngineComponentsFactory::BuildScheduler(
|
| const std::string& name,
|
| SyncCycleContext* context,
|
| CancelationSignal* cancelation_signal) {
|
| return std::unique_ptr<SyncScheduler>(new FakeSyncScheduler());
|
| }
|
|
|
| -std::unique_ptr<SyncCycleContext> TestInternalComponentsFactory::BuildContext(
|
| +std::unique_ptr<SyncCycleContext> TestEngineComponentsFactory::BuildContext(
|
| ServerConnectionManager* connection_manager,
|
| syncable::Directory* directory,
|
| ExtensionsActivity* monitor,
|
| @@ -49,7 +49,7 @@ std::unique_ptr<SyncCycleContext> TestInternalComponentsFactory::BuildContext(
|
| }
|
|
|
| std::unique_ptr<syncable::DirectoryBackingStore>
|
| -TestInternalComponentsFactory::BuildDirectoryBackingStore(
|
| +TestEngineComponentsFactory::BuildDirectoryBackingStore(
|
| StorageOption storage,
|
| const std::string& dir_name,
|
| const base::FilePath& backing_filepath) {
|
| @@ -72,7 +72,7 @@ TestInternalComponentsFactory::BuildDirectoryBackingStore(
|
| return std::unique_ptr<syncable::DirectoryBackingStore>();
|
| }
|
|
|
| -InternalComponentsFactory::Switches TestInternalComponentsFactory::GetSwitches()
|
| +EngineComponentsFactory::Switches TestEngineComponentsFactory::GetSwitches()
|
| const {
|
| return switches_;
|
| }
|
|
|