OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 CHROME_BROWSER_SYNC_GLUE_DATA_TYPE_CONTROLLER_MOCK_H__ | 5 #ifndef CHROME_BROWSER_SYNC_GLUE_DATA_TYPE_CONTROLLER_MOCK_H__ |
6 #define CHROME_BROWSER_SYNC_GLUE_DATA_TYPE_CONTROLLER_MOCK_H__ | 6 #define CHROME_BROWSER_SYNC_GLUE_DATA_TYPE_CONTROLLER_MOCK_H__ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "chrome/browser/sync/glue/data_type_controller.h" | 9 #include "chrome/browser/sync/glue/data_type_controller.h" |
10 #include "testing/gmock/include/gmock/gmock.h" | 10 #include "testing/gmock/include/gmock/gmock.h" |
11 | 11 |
12 namespace browser_sync { | 12 namespace browser_sync { |
13 | 13 |
14 class DataTypeControllerMock : public DataTypeController { | 14 class DataTypeControllerMock : public DataTypeController { |
15 public: | 15 public: |
| 16 DataTypeControllerMock(); |
| 17 virtual ~DataTypeControllerMock(); |
| 18 |
16 MOCK_METHOD1(Start, void(StartCallback* start_callback)); | 19 MOCK_METHOD1(Start, void(StartCallback* start_callback)); |
17 MOCK_METHOD0(Stop, void()); | 20 MOCK_METHOD0(Stop, void()); |
18 MOCK_METHOD0(enabled, bool()); | 21 MOCK_METHOD0(enabled, bool()); |
19 MOCK_METHOD0(type, syncable::ModelType()); | 22 MOCK_METHOD0(type, syncable::ModelType()); |
20 MOCK_CONST_METHOD0(name, const char*()); | 23 MOCK_CONST_METHOD0(name, const char*()); |
21 MOCK_METHOD0(model_safe_group, browser_sync::ModelSafeGroup()); | 24 MOCK_METHOD0(model_safe_group, browser_sync::ModelSafeGroup()); |
22 MOCK_METHOD0(state, State()); | 25 MOCK_METHOD0(state, State()); |
23 MOCK_METHOD2(OnUnrecoverableError, void(const tracked_objects::Location&, | 26 MOCK_METHOD2(OnUnrecoverableError, void(const tracked_objects::Location&, |
24 const std::string&)); | 27 const std::string&)); |
25 }; | 28 }; |
26 | 29 |
27 } // namespace browser_sync | 30 } // namespace browser_sync |
28 | 31 |
29 #endif // CHROME_BROWSER_SYNC_GLUE_DATA_TYPE_CONTROLLER_MOCK_H__ | 32 #endif // CHROME_BROWSER_SYNC_GLUE_DATA_TYPE_CONTROLLER_MOCK_H__ |
OLD | NEW |