| 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_CONTROLLER_MOCK_H__ | 5 #ifndef COMPONENTS_SYNC_DRIVER_DATA_TYPE_CONTROLLER_MOCK_H__ |
| 6 #define COMPONENTS_SYNC_DRIVER_DATA_TYPE_CONTROLLER_MOCK_H__ | 6 #define COMPONENTS_SYNC_DRIVER_DATA_TYPE_CONTROLLER_MOCK_H__ |
| 7 | 7 |
| 8 #include "components/sync/api/sync_error.h" |
| 9 #include "components/sync/api/sync_merge_result.h" |
| 8 #include "components/sync_driver/data_type_controller.h" | 10 #include "components/sync_driver/data_type_controller.h" |
| 9 #include "sync/api/sync_error.h" | |
| 10 #include "sync/api/sync_merge_result.h" | |
| 11 #include "testing/gmock/include/gmock/gmock.h" | 11 #include "testing/gmock/include/gmock/gmock.h" |
| 12 | 12 |
| 13 namespace sync_driver { | 13 namespace sync_driver { |
| 14 | 14 |
| 15 class StartCallbackMock { | 15 class StartCallbackMock { |
| 16 public: | 16 public: |
| 17 StartCallbackMock(); | 17 StartCallbackMock(); |
| 18 virtual ~StartCallbackMock(); | 18 virtual ~StartCallbackMock(); |
| 19 | 19 |
| 20 MOCK_METHOD3(Run, void(DataTypeController::ConfigureResult result, | 20 MOCK_METHOD3(Run, void(DataTypeController::ConfigureResult result, |
| 21 const syncer::SyncMergeResult& local_merge_result, | 21 const syncer::SyncMergeResult& local_merge_result, |
| 22 const syncer::SyncMergeResult& syncer_merge_result)); | 22 const syncer::SyncMergeResult& syncer_merge_result)); |
| 23 }; | 23 }; |
| 24 | 24 |
| 25 class ModelLoadCallbackMock { | 25 class ModelLoadCallbackMock { |
| 26 public: | 26 public: |
| 27 ModelLoadCallbackMock(); | 27 ModelLoadCallbackMock(); |
| 28 virtual ~ModelLoadCallbackMock(); | 28 virtual ~ModelLoadCallbackMock(); |
| 29 | 29 |
| 30 MOCK_METHOD2(Run, void(syncer::ModelType, syncer::SyncError)); | 30 MOCK_METHOD2(Run, void(syncer::ModelType, syncer::SyncError)); |
| 31 }; | 31 }; |
| 32 | 32 |
| 33 } // namespace sync_driver | 33 } // namespace sync_driver |
| 34 | 34 |
| 35 #endif // COMPONENTS_SYNC_DRIVER_DATA_TYPE_CONTROLLER_MOCK_H__ | 35 #endif // COMPONENTS_SYNC_DRIVER_DATA_TYPE_CONTROLLER_MOCK_H__ |
| OLD | NEW |