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

Unified Diff: components/sync_driver/generic_change_processor_unittest.cc

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 | « chrome/browser/sync/glue/shared_change_processor.cc ('k') | sync/api/attachments/attachment_uploader.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/sync_driver/generic_change_processor_unittest.cc
diff --git a/components/sync_driver/generic_change_processor_unittest.cc b/components/sync_driver/generic_change_processor_unittest.cc
index 0875908a4e3fcc56b9d026326058bc3b93221a76..2434e89626f53c008a1129154305b81626127b17 100644
--- a/components/sync_driver/generic_change_processor_unittest.cc
+++ b/components/sync_driver/generic_change_processor_unittest.cc
@@ -11,6 +11,7 @@
#include "components/sync_driver/data_type_error_handler_mock.h"
#include "sync/api/attachments/fake_attachment_service.h"
#include "sync/api/attachments/fake_attachment_store.h"
+#include "sync/api/attachments/fake_attachment_uploader.h"
#include "sync/api/fake_syncable_service.h"
#include "sync/api/sync_change.h"
#include "sync/api/sync_merge_result.h"
@@ -44,8 +45,11 @@ class MockAttachmentService : public syncer::FakeAttachmentService {
};
MockAttachmentService::MockAttachmentService()
- : FakeAttachmentService(scoped_ptr<syncer::AttachmentStore>(
- new syncer::FakeAttachmentStore(base::MessageLoopProxy::current()))) {
+ : FakeAttachmentService(
+ scoped_ptr<syncer::AttachmentStore>(new syncer::FakeAttachmentStore(
+ base::MessageLoopProxy::current())),
+ scoped_ptr<syncer::AttachmentUploader>(
+ new syncer::FakeAttachmentUploader)) {
}
MockAttachmentService::~MockAttachmentService() {
« no previous file with comments | « chrome/browser/sync/glue/shared_change_processor.cc ('k') | sync/api/attachments/attachment_uploader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698