| OLD | NEW |
| 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" | |
| 11 #include "components/sync/driver/frontend_data_type_controller.h" | 10 #include "components/sync/driver/frontend_data_type_controller.h" |
| 11 #include "components/sync/model/sync_error.h" |
| 12 #include "testing/gmock/include/gmock/gmock.h" | 12 #include "testing/gmock/include/gmock/gmock.h" |
| 13 | 13 |
| 14 namespace syncer { | 14 namespace syncer { |
| 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. |
| (...skipping 19 matching lines...) Expand all Loading... |
| 41 MOCK_METHOD1(set_model_associator, void(AssociatorInterface* associator)); | 41 MOCK_METHOD1(set_model_associator, void(AssociatorInterface* associator)); |
| 42 MOCK_CONST_METHOD0(change_processor, ChangeProcessor*()); | 42 MOCK_CONST_METHOD0(change_processor, ChangeProcessor*()); |
| 43 MOCK_METHOD1(set_change_processor, void(ChangeProcessor* processor)); | 43 MOCK_METHOD1(set_change_processor, void(ChangeProcessor* processor)); |
| 44 MOCK_METHOD1(RecordAssociationTime, void(base::TimeDelta time)); | 44 MOCK_METHOD1(RecordAssociationTime, void(base::TimeDelta time)); |
| 45 MOCK_METHOD1(RecordStartFailure, void(ConfigureResult result)); | 45 MOCK_METHOD1(RecordStartFailure, void(ConfigureResult result)); |
| 46 }; | 46 }; |
| 47 | 47 |
| 48 } // namespace syncer | 48 } // namespace syncer |
| 49 | 49 |
| 50 #endif // COMPONENTS_SYNC_DRIVER_FRONTEND_DATA_TYPE_CONTROLLER_MOCK_H__ | 50 #endif // COMPONENTS_SYNC_DRIVER_FRONTEND_DATA_TYPE_CONTROLLER_MOCK_H__ |
| OLD | NEW |