summaryrefslogtreecommitdiffstats
path: root/sync/api/fake_syncable_service.cc
diff options
context:
space:
mode:
Diffstat (limited to 'sync/api/fake_syncable_service.cc')
-rw-r--r--sync/api/fake_syncable_service.cc18
1 files changed, 18 insertions, 0 deletions
diff --git a/sync/api/fake_syncable_service.cc b/sync/api/fake_syncable_service.cc
index 0d76f2e..ec7b90c 100644
--- a/sync/api/fake_syncable_service.cc
+++ b/sync/api/fake_syncable_service.cc
@@ -25,6 +25,15 @@ void FakeSyncableService::set_process_sync_changes_error(
process_sync_changes_error_ = error;
}
+void FakeSyncableService::set_attachment_store(
+ const scoped_refptr<AttachmentStore>& attachment_store) {
+ attachment_store_ = attachment_store;
+}
+
+const AttachmentService* FakeSyncableService::attachment_service() const {
+ return attachment_service_.get();
+}
+
bool FakeSyncableService::syncing() const {
return syncing_;
}
@@ -61,4 +70,13 @@ SyncError FakeSyncableService::ProcessSyncChanges(
return process_sync_changes_error_;
}
+scoped_refptr<AttachmentStore> FakeSyncableService::GetAttachmentStore() {
+ return attachment_store_;
+}
+
+void FakeSyncableService::SetAttachmentService(
+ scoped_ptr<AttachmentService> attachment_service) {
+ attachment_service_ = attachment_service.Pass();
+}
+
} // namespace syncer