OLD | NEW |
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 Loading... |
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 |
OLD | NEW |