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 "components/sync/api/fake_syncable_service.h" | 5 #include "components/sync/model/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 "components/sync/api/sync_error_factory.h" | 10 #include "components/sync/model/sync_error_factory.h" |
11 | 11 |
12 namespace syncer { | 12 namespace syncer { |
13 | 13 |
14 FakeSyncableService::FakeSyncableService() | 14 FakeSyncableService::FakeSyncableService() |
15 : syncing_(false), type_(UNSPECIFIED) {} | 15 : syncing_(false), type_(UNSPECIFIED) {} |
16 | 16 |
17 FakeSyncableService::~FakeSyncableService() {} | 17 FakeSyncableService::~FakeSyncableService() {} |
18 | 18 |
19 void FakeSyncableService::set_merge_data_and_start_syncing_error( | 19 void FakeSyncableService::set_merge_data_and_start_syncing_error( |
20 const SyncError& error) { | 20 const SyncError& error) { |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 return attachment_store_ ? attachment_store_->CreateAttachmentStoreForSync() | 76 return attachment_store_ ? attachment_store_->CreateAttachmentStoreForSync() |
77 : std::unique_ptr<AttachmentStoreForSync>(); | 77 : std::unique_ptr<AttachmentStoreForSync>(); |
78 } | 78 } |
79 | 79 |
80 void FakeSyncableService::SetAttachmentService( | 80 void FakeSyncableService::SetAttachmentService( |
81 std::unique_ptr<AttachmentService> attachment_service) { | 81 std::unique_ptr<AttachmentService> attachment_service) { |
82 attachment_service_ = std::move(attachment_service); | 82 attachment_service_ = std::move(attachment_service); |
83 } | 83 } |
84 | 84 |
85 } // namespace syncer | 85 } // namespace syncer |
OLD | NEW |