| 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 CHROME_BROWSER_SYNC_GLUE_NON_FRONTEND_DATA_TYPE_CONTROLLER_MOCK_H__ | 5 #ifndef CHROME_BROWSER_SYNC_GLUE_NON_FRONTEND_DATA_TYPE_CONTROLLER_MOCK_H__ |
| 6 #define CHROME_BROWSER_SYNC_GLUE_NON_FRONTEND_DATA_TYPE_CONTROLLER_MOCK_H__ | 6 #define CHROME_BROWSER_SYNC_GLUE_NON_FRONTEND_DATA_TYPE_CONTROLLER_MOCK_H__ |
| 7 | 7 |
| 8 #include "chrome/browser/sync/glue/non_frontend_data_type_controller.h" | 8 #include "chrome/browser/sync/glue/non_frontend_data_type_controller.h" |
| 9 #include "sync/api/sync_error.h" | 9 #include "sync/api/sync_error.h" |
| 10 #include "testing/gmock/include/gmock/gmock.h" | 10 #include "testing/gmock/include/gmock/gmock.h" |
| (...skipping 29 matching lines...) Expand all Loading... |
| 40 ProfileSyncComponentsFactory::SyncComponents()); | 40 ProfileSyncComponentsFactory::SyncComponents()); |
| 41 MOCK_METHOD3(StartDone, | 41 MOCK_METHOD3(StartDone, |
| 42 void(DataTypeController::StartResult result, | 42 void(DataTypeController::StartResult result, |
| 43 const syncer::SyncMergeResult& local_merge_result, | 43 const syncer::SyncMergeResult& local_merge_result, |
| 44 const syncer::SyncMergeResult& syncer_merge_result)); | 44 const syncer::SyncMergeResult& syncer_merge_result)); |
| 45 MOCK_METHOD4(StartDoneImpl, | 45 MOCK_METHOD4(StartDoneImpl, |
| 46 void(DataTypeController::StartResult result, | 46 void(DataTypeController::StartResult result, |
| 47 DataTypeController::State new_state, | 47 DataTypeController::State new_state, |
| 48 const syncer::SyncMergeResult& local_merge_result, | 48 const syncer::SyncMergeResult& local_merge_result, |
| 49 const syncer::SyncMergeResult& syncer_merge_result)); | 49 const syncer::SyncMergeResult& syncer_merge_result)); |
| 50 MOCK_METHOD1(DisconnectProcessor, void(ChangeProcessor*)); | 50 MOCK_METHOD1(DisconnectProcessor, void(sync_driver::ChangeProcessor*)); |
| 51 MOCK_METHOD2(OnUnrecoverableErrorImpl, void(const tracked_objects::Location&, | 51 MOCK_METHOD2(OnUnrecoverableErrorImpl, void(const tracked_objects::Location&, |
| 52 const std::string&)); | 52 const std::string&)); |
| 53 MOCK_METHOD2(RecordUnrecoverableError, void(const tracked_objects::Location&, | 53 MOCK_METHOD2(RecordUnrecoverableError, void(const tracked_objects::Location&, |
| 54 const std::string&)); | 54 const std::string&)); |
| 55 MOCK_METHOD1(RecordAssociationTime, void(base::TimeDelta time)); | 55 MOCK_METHOD1(RecordAssociationTime, void(base::TimeDelta time)); |
| 56 MOCK_METHOD1(RecordStartFailure, void(StartResult result)); | 56 MOCK_METHOD1(RecordStartFailure, void(StartResult result)); |
| 57 | 57 |
| 58 protected: | 58 protected: |
| 59 virtual ~NonFrontendDataTypeControllerMock(); | 59 virtual ~NonFrontendDataTypeControllerMock(); |
| 60 }; | 60 }; |
| 61 | 61 |
| 62 } // namespace browser_sync | 62 } // namespace browser_sync |
| 63 | 63 |
| 64 #endif // CHROME_BROWSER_SYNC_GLUE_NON_FRONTEND_DATA_TYPE_CONTROLLER_MOCK_H__ | 64 #endif // CHROME_BROWSER_SYNC_GLUE_NON_FRONTEND_DATA_TYPE_CONTROLLER_MOCK_H__ |
| OLD | NEW |