| Index: components/sync/api/stub_model_type_service.cc
|
| diff --git a/components/sync/api/fake_model_type_service.cc b/components/sync/api/stub_model_type_service.cc
|
| similarity index 57%
|
| copy from components/sync/api/fake_model_type_service.cc
|
| copy to components/sync/api/stub_model_type_service.cc
|
| index aff736289e4ec5002a24316701bc5f9c5b8132b7..ce6bf9091247611957afc2b3ff901344a7722c3d 100644
|
| --- a/components/sync/api/fake_model_type_service.cc
|
| +++ b/components/sync/api/stub_model_type_service.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/api/fake_model_type_service.h"
|
| +#include "components/sync/api/stub_model_type_service.h"
|
|
|
| #include <string>
|
|
|
| @@ -12,48 +12,48 @@
|
|
|
| namespace syncer_v2 {
|
|
|
| -FakeModelTypeService::FakeModelTypeService()
|
| - : FakeModelTypeService(base::Bind(&FakeModelTypeChangeProcessor::Create)) {}
|
| +StubModelTypeService::StubModelTypeService()
|
| + : StubModelTypeService(base::Bind(&FakeModelTypeChangeProcessor::Create)) {}
|
|
|
| -FakeModelTypeService::FakeModelTypeService(
|
| +StubModelTypeService::StubModelTypeService(
|
| const ChangeProcessorFactory& change_processor_factory)
|
| : ModelTypeService(change_processor_factory, syncer::PREFERENCES) {}
|
|
|
| -FakeModelTypeService::~FakeModelTypeService() {}
|
| +StubModelTypeService::~StubModelTypeService() {}
|
|
|
| std::unique_ptr<MetadataChangeList>
|
| -FakeModelTypeService::CreateMetadataChangeList() {
|
| +StubModelTypeService::CreateMetadataChangeList() {
|
| return std::unique_ptr<MetadataChangeList>();
|
| }
|
|
|
| -syncer::SyncError FakeModelTypeService::MergeSyncData(
|
| +syncer::SyncError StubModelTypeService::MergeSyncData(
|
| std::unique_ptr<MetadataChangeList> metadata_change_list,
|
| EntityDataMap entity_data_map) {
|
| return syncer::SyncError();
|
| }
|
|
|
| -syncer::SyncError FakeModelTypeService::ApplySyncChanges(
|
| +syncer::SyncError StubModelTypeService::ApplySyncChanges(
|
| std::unique_ptr<MetadataChangeList> metadata_change_list,
|
| EntityChangeList entity_changes) {
|
| return syncer::SyncError();
|
| }
|
|
|
| -void FakeModelTypeService::GetData(StorageKeyList storage_keys,
|
| +void StubModelTypeService::GetData(StorageKeyList storage_keys,
|
| DataCallback callback) {}
|
|
|
| -void FakeModelTypeService::GetAllData(DataCallback callback) {}
|
| +void StubModelTypeService::GetAllData(DataCallback callback) {}
|
|
|
| -std::string FakeModelTypeService::GetClientTag(const EntityData& entity_data) {
|
| +std::string StubModelTypeService::GetClientTag(const EntityData& entity_data) {
|
| return std::string();
|
| }
|
|
|
| -std::string FakeModelTypeService::GetStorageKey(const EntityData& entity_data) {
|
| +std::string StubModelTypeService::GetStorageKey(const EntityData& entity_data) {
|
| return std::string();
|
| }
|
|
|
| -void FakeModelTypeService::OnChangeProcessorSet() {}
|
| +void StubModelTypeService::OnChangeProcessorSet() {}
|
|
|
| -bool FakeModelTypeService::HasChangeProcessor() const {
|
| +bool StubModelTypeService::HasChangeProcessor() const {
|
| return change_processor() != nullptr;
|
| }
|
|
|
|
|