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

Unified Diff: components/sync/engine/test_engine_components_factory.cc

Issue 2413313004: [Sync] Move the last things out of core/. (Closed)
Patch Set: Address comments. Created 4 years, 2 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
« no previous file with comments | « components/sync/engine/test_engine_components_factory.h ('k') | components/sync/engine_impl/DEPS » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_;
}
« no previous file with comments | « components/sync/engine/test_engine_components_factory.h ('k') | components/sync/engine_impl/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698