diff options
author | pavely <pavely@chromium.org> | 2014-09-29 18:57:42 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-09-30 01:58:17 +0000 |
commit | 6ae2b341c73909cf902078446346d6c900273409 (patch) | |
tree | 16234c9db5c275b188070558281b752295f934e3 /components/sync_driver | |
parent | 16d32a9f7f6d1ebb639cacedb5156272a9fec764 (diff) | |
download | chromium_src-6ae2b341c73909cf902078446346d6c900273409.zip chromium_src-6ae2b341c73909cf902078446346d6c900273409.tar.gz chromium_src-6ae2b341c73909cf902078446346d6c900273409.tar.bz2 |
Refactor FakeAttachmentStore
Refactor FakeAttachmentStore into AttachmentStoreProxy and
InMemoryAttachmentStore backend. Break AttachmentStore interface into
AttachmentStoreBase (common interface for backends) and AttachmentStore
(referenced by datatype and AttachmentService).
BUG=
R=maniscalco@chromium.org
Review URL: https://codereview.chromium.org/601553004
Cr-Commit-Position: refs/heads/master@{#297339}
Diffstat (limited to 'components/sync_driver')
-rw-r--r-- | components/sync_driver/generic_change_processor_unittest.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/components/sync_driver/generic_change_processor_unittest.cc b/components/sync_driver/generic_change_processor_unittest.cc index f3c580e..e84cf5e 100644 --- a/components/sync_driver/generic_change_processor_unittest.cc +++ b/components/sync_driver/generic_change_processor_unittest.cc @@ -12,7 +12,7 @@ #include "components/sync_driver/data_type_error_handler_mock.h" #include "components/sync_driver/sync_api_component_factory.h" #include "sync/api/attachments/attachment_id.h" -#include "sync/api/attachments/fake_attachment_store.h" +#include "sync/api/attachments/attachment_store.h" #include "sync/api/fake_syncable_service.h" #include "sync/api/sync_change.h" #include "sync/api/sync_merge_result.h" @@ -147,8 +147,8 @@ class SyncGenericChangeProcessorTest : public testing::Test { } void ConstructGenericChangeProcessor(syncer::ModelType type) { - scoped_refptr<syncer::AttachmentStore> attachment_store( - new syncer::FakeAttachmentStore(base::MessageLoopProxy::current())); + scoped_refptr<syncer::AttachmentStore> attachment_store = + syncer::AttachmentStore::CreateInMemoryStore(); scoped_ptr<MockAttachmentService> mock_attachment_service( new MockAttachmentService(attachment_store)); // GenericChangeProcessor takes ownership of the AttachmentService, but we |