Index: sync/api/attachments/fake_attachment_service.h |
diff --git a/sync/api/attachments/fake_attachment_service.h b/sync/api/attachments/fake_attachment_service.h |
index 8159e0f9dd68af9508eaeab01afbf1b63d12d270..e35da216ea94ada4fa53b9c334b4b1fc9210b365 100644 |
--- a/sync/api/attachments/fake_attachment_service.h |
+++ b/sync/api/attachments/fake_attachment_service.h |
@@ -26,6 +26,7 @@ class SYNC_EXPORT FakeAttachmentService : public AttachmentService, |
static scoped_ptr<syncer::AttachmentService> CreateForTest(); |
// AttachmentService implementation. |
+ virtual void SetDelegate(Delegate* delegate) OVERRIDE; |
virtual void GetOrDownloadAttachments(const AttachmentIdList& attachment_ids, |
const GetOrDownloadCallback& callback) |
OVERRIDE; |
@@ -45,9 +46,12 @@ class SYNC_EXPORT FakeAttachmentService : public AttachmentService, |
const AttachmentStore::Result& result); |
void WriteDone(const StoreCallback& callback, |
const AttachmentStore::Result& result); |
+ void UploadDone(const AttachmentUploader::UploadResult& result, |
+ const AttachmentId& attachment_id); |
const scoped_ptr<AttachmentStore> attachment_store_; |
const scoped_ptr<AttachmentUploader> attachment_uploader_; |
+ Delegate* delegate_; |
// Must be last data member. |
base::WeakPtrFactory<FakeAttachmentService> weak_ptr_factory_; |