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

Unified Diff: components/sync_driver/generic_change_processor_unittest.cc

Issue 1002263005: [Sync] Introduce AttachmentStoreForSync class (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 9 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
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 0622ec140a8c681965d1c8dad3f7950ba62c304e..9d34f11e90c64ba7fb30da1fdbff43eedb89f8e9 100644
--- a/components/sync_driver/generic_change_processor_unittest.cc
+++ b/components/sync_driver/generic_change_processor_unittest.cc
@@ -37,7 +37,8 @@ namespace {
// A mock that keeps track of attachments passed to UploadAttachments.
class MockAttachmentService : public syncer::AttachmentServiceImpl {
public:
- MockAttachmentService(scoped_ptr<syncer::AttachmentStore> attachment_store);
+ MockAttachmentService(
+ scoped_ptr<syncer::AttachmentStoreForSync> attachment_store);
~MockAttachmentService() override;
void UploadAttachments(
const syncer::AttachmentIdList& attachment_ids) override;
@@ -48,7 +49,7 @@ class MockAttachmentService : public syncer::AttachmentServiceImpl {
};
MockAttachmentService::MockAttachmentService(
- scoped_ptr<syncer::AttachmentStore> attachment_store)
+ scoped_ptr<syncer::AttachmentStoreForSync> attachment_store)
: AttachmentServiceImpl(attachment_store.Pass(),
scoped_ptr<syncer::AttachmentUploader>(
new syncer::FakeAttachmentUploader),
@@ -87,7 +88,7 @@ class MockSyncApiComponentFactory : public SyncApiComponentFactory {
}
scoped_ptr<syncer::AttachmentService> CreateAttachmentService(
- scoped_ptr<syncer::AttachmentStore> attachment_store,
+ scoped_ptr<syncer::AttachmentStoreForSync> attachment_store,
const syncer::UserShare& user_share,
const std::string& store_birthday,
syncer::ModelType model_type,
@@ -163,7 +164,7 @@ class SyncGenericChangeProcessorTest : public testing::Test {
type, &data_type_error_handler_,
syncable_service_ptr_factory_.GetWeakPtr(),
merge_result_ptr_factory_->GetWeakPtr(), test_user_share_->user_share(),
- &sync_factory, attachment_store.Pass()));
+ &sync_factory, attachment_store->CreateAttachmentStoreForSync()));
mock_attachment_service_ = sync_factory.GetMockAttachmentService();
}
« no previous file with comments | « components/sync_driver/generic_change_processor.cc ('k') | components/sync_driver/shared_change_processor_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698