| 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 #ifndef COMPONENTS_SYNC_DRIVER_DATA_TYPE_ERROR_HANDLER_MOCK_H__ | 4 #ifndef COMPONENTS_SYNC_DRIVER_DATA_TYPE_ERROR_HANDLER_MOCK_H__ |
| 5 #define COMPONENTS_SYNC_DRIVER_DATA_TYPE_ERROR_HANDLER_MOCK_H__ | 5 #define COMPONENTS_SYNC_DRIVER_DATA_TYPE_ERROR_HANDLER_MOCK_H__ |
| 6 | 6 |
| 7 #include "components/sync_driver/data_type_controller.h" | 7 #include "components/sync_driver/data_type_controller.h" |
| 8 #include "sync/internal_api/public/base/model_type.h" | 8 #include "sync/internal_api/public/base/model_type.h" |
| 9 #include "testing/gmock/include/gmock/gmock.h" | 9 #include "testing/gmock/include/gmock/gmock.h" |
| 10 | 10 |
| 11 namespace browser_sync { | 11 namespace sync_driver { |
| 12 | 12 |
| 13 class DataTypeErrorHandlerMock : public DataTypeErrorHandler { | 13 class DataTypeErrorHandlerMock : public DataTypeErrorHandler { |
| 14 public: | 14 public: |
| 15 DataTypeErrorHandlerMock(); | 15 DataTypeErrorHandlerMock(); |
| 16 virtual ~DataTypeErrorHandlerMock(); | 16 virtual ~DataTypeErrorHandlerMock(); |
| 17 MOCK_METHOD2(OnSingleDatatypeUnrecoverableError, | 17 MOCK_METHOD2(OnSingleDatatypeUnrecoverableError, |
| 18 void(const tracked_objects::Location&, const std::string&)); | 18 void(const tracked_objects::Location&, const std::string&)); |
| 19 MOCK_METHOD3(CreateAndUploadError, | 19 MOCK_METHOD3(CreateAndUploadError, |
| 20 syncer::SyncError(const tracked_objects::Location&, | 20 syncer::SyncError(const tracked_objects::Location&, |
| 21 const std::string&, | 21 const std::string&, |
| 22 syncer::ModelType)); | 22 syncer::ModelType)); |
| 23 | 23 |
| 24 }; | 24 }; |
| 25 | 25 |
| 26 } // namesspace browser_sync | 26 } // namespace sync_driver |
| 27 | 27 |
| 28 #endif // COMPONENTS_SYNC_DRIVER_DATA_TYPE_ERROR_HANDLER_MOCK_H__ | 28 #endif // COMPONENTS_SYNC_DRIVER_DATA_TYPE_ERROR_HANDLER_MOCK_H__ |
| OLD | NEW |