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

Side by Side Diff: components/sync/driver/frontend_data_type_controller_mock.h

Issue 2388673002: Revert of [Sync] Move //components/sync to the syncer namespace. (patchset #5 id:40001 of https://co (Closed)
Patch Set: 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 COMPONENTS_SYNC_DRIVER_FRONTEND_DATA_TYPE_CONTROLLER_MOCK_H__ 5 #ifndef COMPONENTS_SYNC_DRIVER_FRONTEND_DATA_TYPE_CONTROLLER_MOCK_H__
6 #define COMPONENTS_SYNC_DRIVER_FRONTEND_DATA_TYPE_CONTROLLER_MOCK_H__ 6 #define COMPONENTS_SYNC_DRIVER_FRONTEND_DATA_TYPE_CONTROLLER_MOCK_H__
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "components/sync/api/sync_error.h" 10 #include "components/sync/api/sync_error.h"
11 #include "components/sync/driver/frontend_data_type_controller.h" 11 #include "components/sync/driver/frontend_data_type_controller.h"
12 #include "testing/gmock/include/gmock/gmock.h" 12 #include "testing/gmock/include/gmock/gmock.h"
13 13
14 namespace syncer { 14 namespace browser_sync {
15 15
16 class FrontendDataTypeControllerMock : public FrontendDataTypeController { 16 class FrontendDataTypeControllerMock : public FrontendDataTypeController {
17 public: 17 public:
18 FrontendDataTypeControllerMock(); 18 FrontendDataTypeControllerMock();
19 virtual ~FrontendDataTypeControllerMock(); 19 virtual ~FrontendDataTypeControllerMock();
20 20
21 // DataTypeController mocks. 21 // DataTypeController mocks.
22 MOCK_METHOD1(StartAssociating, void(const StartCallback& start_callback)); 22 MOCK_METHOD1(StartAssociating, void(const StartCallback& start_callback));
23 MOCK_METHOD1(LoadModels, void(const ModelLoadCallback& model_load_callback)); 23 MOCK_METHOD1(LoadModels, void(const ModelLoadCallback& model_load_callback));
24 24
25 MOCK_METHOD0(Stop, void()); 25 MOCK_METHOD0(Stop, void());
26 MOCK_METHOD0(enabled, bool()); 26 MOCK_METHOD0(enabled, bool());
27 MOCK_CONST_METHOD0(type, ModelType()); 27 MOCK_CONST_METHOD0(type, syncer::ModelType());
28 MOCK_CONST_METHOD0(name, std::string()); 28 MOCK_CONST_METHOD0(name, std::string());
29 MOCK_CONST_METHOD0(model_safe_group, ModelSafeGroup()); 29 MOCK_CONST_METHOD0(model_safe_group, syncer::ModelSafeGroup());
30 MOCK_CONST_METHOD0(state, State()); 30 MOCK_CONST_METHOD0(state, State());
31 31
32 // FrontendDataTypeController mocks. 32 // FrontendDataTypeController mocks.
33 MOCK_METHOD0(StartModels, bool()); 33 MOCK_METHOD0(StartModels, bool());
34 MOCK_METHOD0(Associate, void()); 34 MOCK_METHOD0(Associate, void());
35 MOCK_METHOD0(CreateSyncComponents, void()); 35 MOCK_METHOD0(CreateSyncComponents, void());
36 MOCK_METHOD2(StartFailed, 36 MOCK_METHOD2(StartFailed,
37 void(ConfigureResult result, const SyncError& error)); 37 void(ConfigureResult result, const syncer::SyncError& error));
38 MOCK_METHOD1(FinishStart, void(ConfigureResult result)); 38 MOCK_METHOD1(FinishStart, void(ConfigureResult result));
39 MOCK_METHOD0(CleanUpState, void()); 39 MOCK_METHOD0(CleanUpState, void());
40 MOCK_CONST_METHOD0(model_associator, AssociatorInterface*()); 40 MOCK_CONST_METHOD0(model_associator, sync_driver::AssociatorInterface*());
41 MOCK_METHOD1(set_model_associator, void(AssociatorInterface* associator)); 41 MOCK_METHOD1(set_model_associator,
42 MOCK_CONST_METHOD0(change_processor, ChangeProcessor*()); 42 void(sync_driver::AssociatorInterface* associator));
43 MOCK_METHOD1(set_change_processor, void(ChangeProcessor* processor)); 43 MOCK_CONST_METHOD0(change_processor, sync_driver::ChangeProcessor*());
44 MOCK_METHOD1(set_change_processor,
45 void(sync_driver::ChangeProcessor* processor));
44 MOCK_METHOD1(RecordAssociationTime, void(base::TimeDelta time)); 46 MOCK_METHOD1(RecordAssociationTime, void(base::TimeDelta time));
45 MOCK_METHOD1(RecordStartFailure, void(ConfigureResult result)); 47 MOCK_METHOD1(RecordStartFailure, void(ConfigureResult result));
46 }; 48 };
47 49
48 } // namespace syncer 50 } // namespace browser_sync
49 51
50 #endif // COMPONENTS_SYNC_DRIVER_FRONTEND_DATA_TYPE_CONTROLLER_MOCK_H__ 52 #endif // COMPONENTS_SYNC_DRIVER_FRONTEND_DATA_TYPE_CONTROLLER_MOCK_H__
OLDNEW
« no previous file with comments | « components/sync/driver/frontend_data_type_controller.cc ('k') | components/sync/driver/frontend_data_type_controller_mock.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698