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

Unified Diff: components/sync/api/stub_model_type_service.cc

Issue 2306523003: [Sync] Split fake ModelTypeService impl out of SMTP tests. (Closed)
Patch Set: Rebase + fix typo in comment. Created 4 years, 3 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: 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;
}
« no previous file with comments | « components/sync/api/stub_model_type_service.h ('k') | components/sync/core/shared_model_type_processor_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698