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

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

Issue 2458013002: [Sync] Rename ModelTypeService to ModelTypeSyncBridge. (Closed)
Patch Set: s/SetBridgeError/ErrorOnNextCall 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
Index: components/sync/model/stub_model_type_service.h
diff --git a/components/sync/model/stub_model_type_service.h b/components/sync/model/stub_model_type_service.h
deleted file mode 100644
index 2b04fd0855ab905031338af28114fa650dee3b0d..0000000000000000000000000000000000000000
--- a/components/sync/model/stub_model_type_service.h
+++ /dev/null
@@ -1,39 +0,0 @@
-// Copyright 2015 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef COMPONENTS_SYNC_MODEL_STUB_MODEL_TYPE_SERVICE_H_
-#define COMPONENTS_SYNC_MODEL_STUB_MODEL_TYPE_SERVICE_H_
-
-#include <memory>
-#include <string>
-
-#include "components/sync/model/model_type_service.h"
-
-namespace syncer {
-
-// A non-functional implementation of ModelTypeService for
-// testing purposes.
-class StubModelTypeService : public ModelTypeService {
- public:
- StubModelTypeService();
- explicit StubModelTypeService(
- const ChangeProcessorFactory& change_processor_factory);
- ~StubModelTypeService() override;
-
- std::unique_ptr<MetadataChangeList> CreateMetadataChangeList() override;
- SyncError MergeSyncData(
- std::unique_ptr<MetadataChangeList> metadata_change_list,
- EntityDataMap entity_data_map) override;
- SyncError ApplySyncChanges(
- std::unique_ptr<MetadataChangeList> metadata_change_list,
- EntityChangeList entity_changes) override;
- void GetData(StorageKeyList storage_keys, DataCallback callback) override;
- void GetAllData(DataCallback callback) override;
- std::string GetClientTag(const EntityData& entity_data) override;
- std::string GetStorageKey(const EntityData& entity_data) override;
-};
-
-} // namespace syncer
-
-#endif // COMPONENTS_SYNC_MODEL_STUB_MODEL_TYPE_SERVICE_H_
« no previous file with comments | « components/sync/model/model_type_sync_bridge_unittest.cc ('k') | components/sync/model/stub_model_type_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698