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

Side by Side Diff: components/sync/api/fake_syncable_service.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
« no previous file with comments | « components/sync/api/fake_syncable_service.h ('k') | components/sync/api/metadata_batch.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "sync/api/fake_syncable_service.h" 5 #include "components/sync/api/fake_syncable_service.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/location.h" 9 #include "base/location.h"
10 #include "sync/api/sync_error_factory.h" 10 #include "components/sync/api/sync_error_factory.h"
11 11
12 namespace syncer { 12 namespace syncer {
13 13
14 FakeSyncableService::FakeSyncableService() 14 FakeSyncableService::FakeSyncableService()
15 : syncing_(false), 15 : syncing_(false), type_(UNSPECIFIED) {}
16 type_(UNSPECIFIED) {}
17 16
18 FakeSyncableService::~FakeSyncableService() {} 17 FakeSyncableService::~FakeSyncableService() {}
19 18
20 void FakeSyncableService::set_merge_data_and_start_syncing_error( 19 void FakeSyncableService::set_merge_data_and_start_syncing_error(
21 const SyncError& error) { 20 const SyncError& error) {
22 merge_data_and_start_syncing_error_ = error; 21 merge_data_and_start_syncing_error_ = error;
23 } 22 }
24 23
25 void FakeSyncableService::set_process_sync_changes_error( 24 void FakeSyncableService::set_process_sync_changes_error(
26 const SyncError& error) { 25 const SyncError& error) {
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 return attachment_store_ ? attachment_store_->CreateAttachmentStoreForSync() 76 return attachment_store_ ? attachment_store_->CreateAttachmentStoreForSync()
78 : std::unique_ptr<AttachmentStoreForSync>(); 77 : std::unique_ptr<AttachmentStoreForSync>();
79 } 78 }
80 79
81 void FakeSyncableService::SetAttachmentService( 80 void FakeSyncableService::SetAttachmentService(
82 std::unique_ptr<AttachmentService> attachment_service) { 81 std::unique_ptr<AttachmentService> attachment_service) {
83 attachment_service_ = std::move(attachment_service); 82 attachment_service_ = std::move(attachment_service);
84 } 83 }
85 84
86 } // namespace syncer 85 } // namespace syncer
OLDNEW
« no previous file with comments | « components/sync/api/fake_syncable_service.h ('k') | components/sync/api/metadata_batch.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698