Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3)

Unified Diff: components/sync/api/data_type_error_handler_mock.cc

Issue 2289143003: [Sync] Convert DTCs to be not RefCounted and NonThreadSafe. (Closed)
Patch Set: Rebase. Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: components/sync/api/data_type_error_handler_mock.cc
diff --git a/components/sync/core_impl/test/data_type_error_handler_mock.cc b/components/sync/api/data_type_error_handler_mock.cc
similarity index 80%
rename from components/sync/core_impl/test/data_type_error_handler_mock.cc
rename to components/sync/api/data_type_error_handler_mock.cc
index 3005dace84ce79dccbed1fb6effcca11d48db5bf..f0ef82d2d1be658c40260f9c3884859b40be4b3f 100644
--- a/components/sync/core_impl/test/data_type_error_handler_mock.cc
+++ b/components/sync/api/data_type_error_handler_mock.cc
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "components/sync/core/test/data_type_error_handler_mock.h"
+#include "components/sync/api/data_type_error_handler_mock.h"
namespace syncer {
@@ -12,8 +12,7 @@ DataTypeErrorHandlerMock::~DataTypeErrorHandlerMock() {
DCHECK_EQ(SyncError::UNSET, expected_error_type_);
}
-void DataTypeErrorHandlerMock::OnSingleDataTypeUnrecoverableError(
- const SyncError& error) {
+void DataTypeErrorHandlerMock::OnUnrecoverableError(const SyncError& error) {
DCHECK_NE(SyncError::UNSET, expected_error_type_);
DCHECK(error.IsSet());
DCHECK_EQ(expected_error_type_, error.error_type());
@@ -32,4 +31,8 @@ void DataTypeErrorHandlerMock::ExpectError(SyncError::ErrorType error_type) {
expected_error_type_ = error_type;
}
+std::unique_ptr<DataTypeErrorHandler> DataTypeErrorHandlerMock::Copy() const {
+ return nullptr;
+}
+
} // namespace syncer
« no previous file with comments | « components/sync/api/data_type_error_handler_mock.h ('k') | components/sync/api/fake_model_type_change_processor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698