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

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

Issue 2130453004: [Sync] Move //sync to //components/sync. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 years, 4 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
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef SYNC_API_FAKE_MODEL_TYPE_CHANGE_PROCESSOR_H_ 5 #ifndef COMPONENTS_SYNC_API_FAKE_MODEL_TYPE_CHANGE_PROCESSOR_H_
6 #define SYNC_API_FAKE_MODEL_TYPE_CHANGE_PROCESSOR_H_ 6 #define COMPONENTS_SYNC_API_FAKE_MODEL_TYPE_CHANGE_PROCESSOR_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "sync/api/metadata_change_list.h" 10 #include "components/sync/api/metadata_change_list.h"
11 #include "sync/api/model_type_change_processor.h" 11 #include "components/sync/api/model_type_change_processor.h"
12 #include "sync/internal_api/public/base/model_type.h" 12 #include "components/sync/base/model_type.h"
13 13
14 namespace syncer_v2 { 14 namespace syncer_v2 {
15 15
16 class ModelTypeService; 16 class ModelTypeService;
17 17
18 // A ModelTypeChangeProcessor implementation for tests. 18 // A ModelTypeChangeProcessor implementation for tests.
19 class FakeModelTypeChangeProcessor : public ModelTypeChangeProcessor { 19 class FakeModelTypeChangeProcessor : public ModelTypeChangeProcessor {
20 public: 20 public:
21 static std::unique_ptr<ModelTypeChangeProcessor> Create( 21 static std::unique_ptr<ModelTypeChangeProcessor> Create(
22 syncer::ModelType type, 22 syncer::ModelType type,
(...skipping 13 matching lines...) Expand all
36 void OnSyncStarting(syncer::DataTypeErrorHandler* error_handler, 36 void OnSyncStarting(syncer::DataTypeErrorHandler* error_handler,
37 const StartCallback& callback) override; 37 const StartCallback& callback) override;
38 void DisableSync() override; 38 void DisableSync() override;
39 syncer::SyncError CreateAndUploadError( 39 syncer::SyncError CreateAndUploadError(
40 const tracked_objects::Location& location, 40 const tracked_objects::Location& location,
41 const std::string& message) override; 41 const std::string& message) override;
42 }; 42 };
43 43
44 } // namespace syncer_v2 44 } // namespace syncer_v2
45 45
46 #endif // SYNC_API_FAKE_MODEL_TYPE_CHANGE_PROCESSOR_H_ 46 #endif // COMPONENTS_SYNC_API_FAKE_MODEL_TYPE_CHANGE_PROCESSOR_H_
OLDNEW
« no previous file with comments | « components/sync/api/entity_data_unittest.cc ('k') | components/sync/api/fake_model_type_change_processor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698