Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(25)

Unified Diff: sync/api/attachments/fake_attachment_service.h

Issue 263903004: Add AttachmentUploader interface and fake implementation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase. Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sync/api/attachments/attachment_uploader.cc ('k') | sync/api/attachments/fake_attachment_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 5bc443ac71daef8a220e97bd9c1f6c3f0ccbb05b..8159e0f9dd68af9508eaeab01afbf1b63d12d270 100644
--- a/sync/api/attachments/fake_attachment_service.h
+++ b/sync/api/attachments/fake_attachment_service.h
@@ -10,6 +10,7 @@
#include "sync/api/attachments/attachment_service.h"
#include "sync/api/attachments/attachment_service_proxy.h"
#include "sync/api/attachments/attachment_store.h"
+#include "sync/api/attachments/attachment_uploader.h"
namespace syncer {
@@ -17,7 +18,8 @@ namespace syncer {
class SYNC_EXPORT FakeAttachmentService : public AttachmentService,
public base::NonThreadSafe {
public:
- explicit FakeAttachmentService(scoped_ptr<AttachmentStore> attachment_store);
+ FakeAttachmentService(scoped_ptr<AttachmentStore> attachment_store,
+ scoped_ptr<AttachmentUploader> attachment_uploader);
virtual ~FakeAttachmentService();
// Create a FakeAttachmentService suitable for use in tests.
@@ -45,6 +47,7 @@ class SYNC_EXPORT FakeAttachmentService : public AttachmentService,
const AttachmentStore::Result& result);
const scoped_ptr<AttachmentStore> attachment_store_;
+ const scoped_ptr<AttachmentUploader> attachment_uploader_;
// Must be last data member.
base::WeakPtrFactory<FakeAttachmentService> weak_ptr_factory_;
« no previous file with comments | « sync/api/attachments/attachment_uploader.cc ('k') | sync/api/attachments/fake_attachment_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698