Index: sync/internal_api/attachments/attachment_service_impl.cc |
diff --git a/sync/internal_api/attachments/attachment_service_impl.cc b/sync/internal_api/attachments/attachment_service_impl.cc |
index dedb10c5a695210fe8b927c422c91dd0f949d32f..227fd8be25a03ff4f3ecff3c0e087a1ff586f7d4 100644 |
--- a/sync/internal_api/attachments/attachment_service_impl.cc |
+++ b/sync/internal_api/attachments/attachment_service_impl.cc |
@@ -11,6 +11,7 @@ |
#include "base/thread_task_runner_handle.h" |
#include "base/time/time.h" |
#include "sync/api/attachments/attachment.h" |
+#include "sync/api/attachments/fake_attachment_store.h" |
#include "sync/internal_api/public/attachments/fake_attachment_downloader.h" |
#include "sync/internal_api/public/attachments/fake_attachment_uploader.h" |
@@ -144,8 +145,8 @@ |
// Static. |
scoped_ptr<syncer::AttachmentService> AttachmentServiceImpl::CreateForTest() { |
- scoped_refptr<syncer::AttachmentStore> attachment_store = |
- AttachmentStore::CreateInMemoryStore(); |
+ scoped_refptr<syncer::AttachmentStore> attachment_store( |
+ new syncer::FakeAttachmentStore(base::ThreadTaskRunnerHandle::Get())); |
scoped_ptr<AttachmentUploader> attachment_uploader( |
new FakeAttachmentUploader); |
scoped_ptr<AttachmentDownloader> attachment_downloader( |