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

Side by Side 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 unified diff | 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "components/sync/api/data_type_error_handler_mock.h"
6
7 namespace syncer {
8
9 DataTypeErrorHandlerMock::DataTypeErrorHandlerMock() {}
10
11 DataTypeErrorHandlerMock::~DataTypeErrorHandlerMock() {
12 DCHECK_EQ(SyncError::UNSET, expected_error_type_);
13 }
14
15 void DataTypeErrorHandlerMock::OnUnrecoverableError(const SyncError& error) {
16 DCHECK_NE(SyncError::UNSET, expected_error_type_);
17 DCHECK(error.IsSet());
18 DCHECK_EQ(expected_error_type_, error.error_type());
19 expected_error_type_ = SyncError::UNSET;
20 }
21
22 SyncError DataTypeErrorHandlerMock::CreateAndUploadError(
23 const tracked_objects::Location& location,
24 const std::string& message,
25 ModelType type) {
26 return SyncError(location, SyncError::DATATYPE_ERROR, message, type);
27 }
28
29 void DataTypeErrorHandlerMock::ExpectError(SyncError::ErrorType error_type) {
30 DCHECK_EQ(SyncError::UNSET, expected_error_type_);
31 expected_error_type_ = error_type;
32 }
33
34 std::unique_ptr<DataTypeErrorHandler> DataTypeErrorHandlerMock::Copy() const {
35 return nullptr;
36 }
37
38 } // namespace syncer
OLDNEW
« 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