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

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

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
« no previous file with comments | « components/sync/api/model_type_service_unittest.cc ('k') | components/sync/api/stub_model_type_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/sync/api/stub_model_type_service.h
diff --git a/components/sync/api/fake_model_type_service.h b/components/sync/api/stub_model_type_service.h
similarity index 78%
copy from components/sync/api/fake_model_type_service.h
copy to components/sync/api/stub_model_type_service.h
index e02a5e17c47d687cbc78ae4b09b1a7744c191f61..f8c10f1c83f452058c2781184fc65c903bc761ce 100644
--- a/components/sync/api/fake_model_type_service.h
+++ b/components/sync/api/stub_model_type_service.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef COMPONENTS_SYNC_API_FAKE_MODEL_TYPE_SERVICE_H_
-#define COMPONENTS_SYNC_API_FAKE_MODEL_TYPE_SERVICE_H_
+#ifndef COMPONENTS_SYNC_API_STUB_MODEL_TYPE_SERVICE_H_
+#define COMPONENTS_SYNC_API_STUB_MODEL_TYPE_SERVICE_H_
#include <memory>
#include <string>
@@ -14,12 +14,12 @@ namespace syncer_v2 {
// A non-functional implementation of ModelTypeService for
// testing purposes.
-class FakeModelTypeService : public ModelTypeService {
+class StubModelTypeService : public ModelTypeService {
public:
- FakeModelTypeService();
- explicit FakeModelTypeService(
+ StubModelTypeService();
+ explicit StubModelTypeService(
const ChangeProcessorFactory& change_processor_factory);
- ~FakeModelTypeService() override;
+ ~StubModelTypeService() override;
std::unique_ptr<MetadataChangeList> CreateMetadataChangeList() override;
syncer::SyncError MergeSyncData(
@@ -39,4 +39,4 @@ class FakeModelTypeService : public ModelTypeService {
} // namespace syncer_v2
-#endif // COMPONENTS_SYNC_API_FAKE_MODEL_TYPE_SERVICE_H_
+#endif // COMPONENTS_SYNC_API_STUB_MODEL_TYPE_SERVICE_H_
« no previous file with comments | « components/sync/api/model_type_service_unittest.cc ('k') | components/sync/api/stub_model_type_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698