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" |
10 #include "components/sync_driver/frontend_data_type_controller.h" | 11 #include "components/sync_driver/frontend_data_type_controller.h" |
11 #include "sync/api/sync_error.h" | |
12 #include "testing/gmock/include/gmock/gmock.h" | 12 #include "testing/gmock/include/gmock/gmock.h" |
13 | 13 |
14 namespace browser_sync { | 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 | 19 |
20 // DataTypeController mocks. | 20 // DataTypeController mocks. |
21 MOCK_METHOD1(StartAssociating, | 21 MOCK_METHOD1(StartAssociating, |
(...skipping 28 matching lines...) Expand all Loading... |
50 MOCK_METHOD1(RecordAssociationTime, void(base::TimeDelta time)); | 50 MOCK_METHOD1(RecordAssociationTime, void(base::TimeDelta time)); |
51 MOCK_METHOD1(RecordStartFailure, void(ConfigureResult result)); | 51 MOCK_METHOD1(RecordStartFailure, void(ConfigureResult result)); |
52 | 52 |
53 protected: | 53 protected: |
54 virtual ~FrontendDataTypeControllerMock(); | 54 virtual ~FrontendDataTypeControllerMock(); |
55 }; | 55 }; |
56 | 56 |
57 } // namespace browser_sync | 57 } // namespace browser_sync |
58 | 58 |
59 #endif // COMPONENTS_SYNC_DRIVER_FRONTEND_DATA_TYPE_CONTROLLER_MOCK_H__ | 59 #endif // COMPONENTS_SYNC_DRIVER_FRONTEND_DATA_TYPE_CONTROLLER_MOCK_H__ |
OLD | NEW |