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

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

Issue 2401223002: [Sync] Renaming sync/api* to sync/model*. (Closed)
Patch Set: Missed a comment in a DEPS file, and rebasing. Created 4 years, 2 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
« no previous file with comments | « components/sync/api/data_type_error_handler_mock.h ('k') | components/sync/api/entity_change.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/sync/api/data_type_error_handler_mock.cc
diff --git a/components/sync/api/data_type_error_handler_mock.cc b/components/sync/api/data_type_error_handler_mock.cc
deleted file mode 100644
index f0ef82d2d1be658c40260f9c3884859b40be4b3f..0000000000000000000000000000000000000000
--- a/components/sync/api/data_type_error_handler_mock.cc
+++ /dev/null
@@ -1,38 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "components/sync/api/data_type_error_handler_mock.h"
-
-namespace syncer {
-
-DataTypeErrorHandlerMock::DataTypeErrorHandlerMock() {}
-
-DataTypeErrorHandlerMock::~DataTypeErrorHandlerMock() {
- DCHECK_EQ(SyncError::UNSET, expected_error_type_);
-}
-
-void DataTypeErrorHandlerMock::OnUnrecoverableError(const SyncError& error) {
- DCHECK_NE(SyncError::UNSET, expected_error_type_);
- DCHECK(error.IsSet());
- DCHECK_EQ(expected_error_type_, error.error_type());
- expected_error_type_ = SyncError::UNSET;
-}
-
-SyncError DataTypeErrorHandlerMock::CreateAndUploadError(
- const tracked_objects::Location& location,
- const std::string& message,
- ModelType type) {
- return SyncError(location, SyncError::DATATYPE_ERROR, message, type);
-}
-
-void DataTypeErrorHandlerMock::ExpectError(SyncError::ErrorType error_type) {
- DCHECK_EQ(SyncError::UNSET, expected_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/entity_change.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698