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 "sync/api/fake_syncable_service.h" |
6 | 6 |
7 #include "base/location.h" | 7 #include "base/location.h" |
8 #include "sync/api/sync_error_factory.h" | 8 #include "sync/api/sync_error_factory.h" |
9 | 9 |
10 namespace syncer { | 10 namespace syncer { |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 SyncDataList FakeSyncableService::GetAllSyncData(ModelType type) const { | 63 SyncDataList FakeSyncableService::GetAllSyncData(ModelType type) const { |
64 return SyncDataList(); | 64 return SyncDataList(); |
65 } | 65 } |
66 | 66 |
67 SyncError FakeSyncableService::ProcessSyncChanges( | 67 SyncError FakeSyncableService::ProcessSyncChanges( |
68 const tracked_objects::Location& from_here, | 68 const tracked_objects::Location& from_here, |
69 const SyncChangeList& change_list) { | 69 const SyncChangeList& change_list) { |
70 return process_sync_changes_error_; | 70 return process_sync_changes_error_; |
71 } | 71 } |
72 | 72 |
73 scoped_ptr<AttachmentStore> FakeSyncableService::GetAttachmentStoreForSync() { | 73 scoped_ptr<AttachmentStoreForSync> |
| 74 FakeSyncableService::GetAttachmentStoreForSync() { |
74 return attachment_store_ ? attachment_store_->CreateAttachmentStoreForSync() | 75 return attachment_store_ ? attachment_store_->CreateAttachmentStoreForSync() |
75 : scoped_ptr<AttachmentStore>(); | 76 : scoped_ptr<AttachmentStoreForSync>(); |
76 } | 77 } |
77 | 78 |
78 void FakeSyncableService::SetAttachmentService( | 79 void FakeSyncableService::SetAttachmentService( |
79 scoped_ptr<AttachmentService> attachment_service) { | 80 scoped_ptr<AttachmentService> attachment_service) { |
80 attachment_service_ = attachment_service.Pass(); | 81 attachment_service_ = attachment_service.Pass(); |
81 } | 82 } |
82 | 83 |
83 } // namespace syncer | 84 } // namespace syncer |
OLD | NEW |