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

Side by Side Diff: sync/internal_api/test/data_type_error_handler_mock.cc

Issue 2130453004: [Sync] Move //sync to //components/sync. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 years, 4 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
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 "sync/internal_api/public/test/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::OnSingleDataTypeUnrecoverableError(
16 const SyncError& error) {
17 DCHECK_NE(SyncError::UNSET, expected_error_type_);
18 DCHECK(error.IsSet());
19 DCHECK_EQ(expected_error_type_, error.error_type());
20 expected_error_type_ = SyncError::UNSET;
21 }
22
23 SyncError DataTypeErrorHandlerMock::CreateAndUploadError(
24 const tracked_objects::Location& location,
25 const std::string& message,
26 ModelType type) {
27 return SyncError(location, SyncError::DATATYPE_ERROR, message, type);
28 }
29
30 void DataTypeErrorHandlerMock::ExpectError(SyncError::ErrorType error_type) {
31 DCHECK_EQ(SyncError::UNSET, expected_error_type_);
32 expected_error_type_ = error_type;
33 }
34
35 } // namespace syncer
OLDNEW
« no previous file with comments | « sync/internal_api/syncapi_server_connection_manager_unittest.cc ('k') | sync/internal_api/test/fake_model_type_connector.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698