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