| 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 #include "components/sync/api/data_type_error_handler_mock.h" | 5 #include "components/sync/model/data_type_error_handler_mock.h" |
| 6 | 6 |
| 7 namespace syncer { | 7 namespace syncer { |
| 8 | 8 |
| 9 DataTypeErrorHandlerMock::DataTypeErrorHandlerMock() {} | 9 DataTypeErrorHandlerMock::DataTypeErrorHandlerMock() {} |
| 10 | 10 |
| 11 DataTypeErrorHandlerMock::~DataTypeErrorHandlerMock() { | 11 DataTypeErrorHandlerMock::~DataTypeErrorHandlerMock() { |
| 12 DCHECK_EQ(SyncError::UNSET, expected_error_type_); | 12 DCHECK_EQ(SyncError::UNSET, expected_error_type_); |
| 13 } | 13 } |
| 14 | 14 |
| 15 void DataTypeErrorHandlerMock::OnUnrecoverableError(const SyncError& error) { | 15 void DataTypeErrorHandlerMock::OnUnrecoverableError(const SyncError& error) { |
| (...skipping 13 matching lines...) Expand all Loading... |
| 29 void DataTypeErrorHandlerMock::ExpectError(SyncError::ErrorType error_type) { | 29 void DataTypeErrorHandlerMock::ExpectError(SyncError::ErrorType error_type) { |
| 30 DCHECK_EQ(SyncError::UNSET, expected_error_type_); | 30 DCHECK_EQ(SyncError::UNSET, expected_error_type_); |
| 31 expected_error_type_ = error_type; | 31 expected_error_type_ = error_type; |
| 32 } | 32 } |
| 33 | 33 |
| 34 std::unique_ptr<DataTypeErrorHandler> DataTypeErrorHandlerMock::Copy() const { | 34 std::unique_ptr<DataTypeErrorHandler> DataTypeErrorHandlerMock::Copy() const { |
| 35 return nullptr; | 35 return nullptr; |
| 36 } | 36 } |
| 37 | 37 |
| 38 } // namespace syncer | 38 } // namespace syncer |
| OLD | NEW |