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

Side by Side Diff: components/sync/api/stub_model_type_service.h

Issue 2401223002: [Sync] Renaming sync/api* to sync/model*. (Closed)
Patch Set: Missed a comment in a DEPS file, and rebasing. 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 unified diff | Download patch
« no previous file with comments | « components/sync/api/string_ordinal.h ('k') | components/sync/api/stub_model_type_service.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef COMPONENTS_SYNC_API_STUB_MODEL_TYPE_SERVICE_H_
6 #define COMPONENTS_SYNC_API_STUB_MODEL_TYPE_SERVICE_H_
7
8 #include <memory>
9 #include <string>
10
11 #include "components/sync/api/model_type_service.h"
12
13 namespace syncer {
14
15 // A non-functional implementation of ModelTypeService for
16 // testing purposes.
17 class StubModelTypeService : public ModelTypeService {
18 public:
19 StubModelTypeService();
20 explicit StubModelTypeService(
21 const ChangeProcessorFactory& change_processor_factory);
22 ~StubModelTypeService() override;
23
24 std::unique_ptr<MetadataChangeList> CreateMetadataChangeList() override;
25 SyncError MergeSyncData(
26 std::unique_ptr<MetadataChangeList> metadata_change_list,
27 EntityDataMap entity_data_map) override;
28 SyncError ApplySyncChanges(
29 std::unique_ptr<MetadataChangeList> metadata_change_list,
30 EntityChangeList entity_changes) override;
31 void GetData(StorageKeyList storage_keys, DataCallback callback) override;
32 void GetAllData(DataCallback callback) override;
33 std::string GetClientTag(const EntityData& entity_data) override;
34 std::string GetStorageKey(const EntityData& entity_data) override;
35 void OnChangeProcessorSet() override;
36
37 bool HasChangeProcessor() const;
38 };
39
40 } // namespace syncer
41
42 #endif // COMPONENTS_SYNC_API_STUB_MODEL_TYPE_SERVICE_H_
OLDNEW
« no previous file with comments | « components/sync/api/string_ordinal.h ('k') | components/sync/api/stub_model_type_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698