OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 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_DATA_TYPE_MANAGER_MOCK_H__ | 5 #ifndef COMPONENTS_SYNC_DRIVER_DATA_TYPE_MANAGER_MOCK_H__ |
6 #define COMPONENTS_SYNC_DRIVER_DATA_TYPE_MANAGER_MOCK_H__ | 6 #define COMPONENTS_SYNC_DRIVER_DATA_TYPE_MANAGER_MOCK_H__ |
7 | 7 |
| 8 #include "components/sync/api/sync_error.h" |
8 #include "components/sync_driver/data_type_manager.h" | 9 #include "components/sync_driver/data_type_manager.h" |
9 #include "sync/api/sync_error.h" | |
10 #include "testing/gmock/include/gmock/gmock.h" | 10 #include "testing/gmock/include/gmock/gmock.h" |
11 | 11 |
12 namespace sync_driver { | 12 namespace sync_driver { |
13 | 13 |
14 class DataTypeManagerMock : public DataTypeManager { | 14 class DataTypeManagerMock : public DataTypeManager { |
15 public: | 15 public: |
16 DataTypeManagerMock(); | 16 DataTypeManagerMock(); |
17 virtual ~DataTypeManagerMock(); | 17 virtual ~DataTypeManagerMock(); |
18 | 18 |
19 MOCK_METHOD2(Configure, void(syncer::ModelTypeSet, syncer::ConfigureReason)); | 19 MOCK_METHOD2(Configure, void(syncer::ModelTypeSet, syncer::ConfigureReason)); |
20 MOCK_METHOD1(ReenableType, void(syncer::ModelType)); | 20 MOCK_METHOD1(ReenableType, void(syncer::ModelType)); |
21 MOCK_METHOD0(ResetDataTypeErrors, void()); | 21 MOCK_METHOD0(ResetDataTypeErrors, void()); |
22 MOCK_METHOD2(PurgeForMigration, void(syncer::ModelTypeSet, | 22 MOCK_METHOD2(PurgeForMigration, void(syncer::ModelTypeSet, |
23 syncer::ConfigureReason)); | 23 syncer::ConfigureReason)); |
24 MOCK_METHOD0(Stop, void()); | 24 MOCK_METHOD0(Stop, void()); |
25 MOCK_METHOD0(controllers, const DataTypeController::TypeMap&()); | 25 MOCK_METHOD0(controllers, const DataTypeController::TypeMap&()); |
26 MOCK_CONST_METHOD0(state, State()); | 26 MOCK_CONST_METHOD0(state, State()); |
27 | 27 |
28 private: | 28 private: |
29 DataTypeManager::ConfigureResult result_; | 29 DataTypeManager::ConfigureResult result_; |
30 }; | 30 }; |
31 | 31 |
32 } // namespace sync_driver | 32 } // namespace sync_driver |
33 | 33 |
34 #endif // COMPONENTS_SYNC_DRIVER_DATA_TYPE_MANAGER_MOCK_H__ | 34 #endif // COMPONENTS_SYNC_DRIVER_DATA_TYPE_MANAGER_MOCK_H__ |
OLD | NEW |