Refactor FakeAttachmentStore
commit6ae2b341c73909cf902078446346d6c900273409
authorpavely <pavely@chromium.org>
Tue, 30 Sep 2014 01:57:42 +0000 (29 18:57 -0700)
committerCommit bot <commit-bot@chromium.org>
Tue, 30 Sep 2014 01:58:17 +0000 (30 01:58 +0000)
tree16234c9db5c275b188070558281b752295f934e3
parent16d32a9f7f6d1ebb639cacedb5156272a9fec764
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}
18 files changed:
chrome/browser/sync/profile_sync_components_factory_impl.cc
chrome/browser/sync/profile_sync_components_factory_mock.cc
components/sync_driver/generic_change_processor_unittest.cc
sync/BUILD.gn
sync/api/attachments/attachment_store.cc
sync/api/attachments/attachment_store.h
sync/api/attachments/fake_attachment_store.cc [deleted file]
sync/api/attachments/fake_attachment_store.h [deleted file]
sync/internal_api/attachments/attachment_service_impl.cc
sync/internal_api/attachments/attachment_service_impl_unittest.cc
sync/internal_api/attachments/attachment_store_handle.cc [new file with mode: 0644]
sync/internal_api/attachments/attachment_store_handle_unittest.cc [new file with mode: 0644]
sync/internal_api/attachments/in_memory_attachment_store.cc [new file with mode: 0644]
sync/internal_api/attachments/in_memory_attachment_store_unittest.cc [moved from sync/api/attachments/fake_attachment_store_unittest.cc with 89% similarity]
sync/internal_api/public/attachments/attachment_store_handle.h [new file with mode: 0644]
sync/internal_api/public/attachments/in_memory_attachment_store.h [new file with mode: 0644]
sync/sync.gyp
sync/sync_tests.gypi