OLD | NEW |
| (Empty) |
1 // Copyright 2014 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_DRIVER_NON_UI_DATA_TYPE_CONTROLLER_MOCK_H_ | |
6 #define COMPONENTS_SYNC_DRIVER_NON_UI_DATA_TYPE_CONTROLLER_MOCK_H_ | |
7 | |
8 #include <string> | |
9 | |
10 #include "components/sync/driver/non_ui_data_type_controller.h" | |
11 #include "components/sync/model/sync_error.h" | |
12 #include "testing/gmock/include/gmock/gmock.h" | |
13 | |
14 namespace syncer { | |
15 | |
16 class NonUIDataTypeControllerMock : public NonUIDataTypeController { | |
17 public: | |
18 NonUIDataTypeControllerMock(); | |
19 virtual ~NonUIDataTypeControllerMock(); | |
20 | |
21 // DataTypeController mocks. | |
22 MOCK_METHOD1(StartAssociating, void(const StartCallback& start_callback)); | |
23 MOCK_METHOD1(LoadModels, void(const ModelLoadCallback& model_load_callback)); | |
24 MOCK_METHOD0(Stop, void()); | |
25 MOCK_CONST_METHOD0(type, ModelType()); | |
26 MOCK_CONST_METHOD0(name, std::string()); | |
27 MOCK_CONST_METHOD0(state, State()); | |
28 | |
29 // NonUIDataTypeController mocks. | |
30 MOCK_METHOD0(StartModels, bool()); | |
31 MOCK_METHOD0(StopModels, void()); | |
32 MOCK_METHOD2(PostTaskOnModelThread, | |
33 bool(const tracked_objects::Location&, const base::Closure&)); | |
34 MOCK_METHOD3(StartDone, | |
35 void(DataTypeController::ConfigureResult result, | |
36 const SyncMergeResult& local_merge_result, | |
37 const SyncMergeResult& syncer_merge_result)); | |
38 MOCK_METHOD1(RecordStartFailure, void(ConfigureResult result)); | |
39 }; | |
40 | |
41 } // namespace syncer | |
42 | |
43 #endif // COMPONENTS_SYNC_DRIVER_NON_UI_DATA_TYPE_CONTROLLER_MOCK_H_ | |
OLD | NEW |