Extract OfflinePageModel interface |
||||
Issue descriptionExtract OfflinePageModel interface to enable better testability and break circular dependencies that happen, when adding functionality, e.g. OfflinePageStorageManager. Plan: * Extract callbacks and enums * Extract async methods to separate interface * Once all clients converted to async, switch all of them to the interface * Hide the implementation * Create a fake implementation for testing.
,
May 27 2016
I had opened separate bugs for pieces of this one that we could either treat as dups or sub-bugs: Split interface and impl: https://bugs.chromium.org/p/chromium/issues/detail?id=614864 Some cleanups identified in: https://bugs.chromium.org/p/chromium/issues/detail?id=615165
,
May 31 2016
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/76f2e5a378d9d1ab6daf69cb77723adf6d2c40eb commit 76f2e5a378d9d1ab6daf69cb77723adf6d2c40eb Author: dougarnett <dougarnett@chromium.org> Date: Tue May 31 19:07:09 2016 Splits the OfflinePageModel into and interface and and implementation class. Tried to make mostly straightforward split for this iteration. Some static members and methods were interesting deal with and we might consider better location/resolution to follow-up on. BUG= 614864 , 610824 Review-Url: https://codereview.chromium.org/2011763005 Cr-Commit-Position: refs/heads/master@{#396885} [modify] https://crrev.com/76f2e5a378d9d1ab6daf69cb77723adf6d2c40eb/chrome/browser/android/offline_pages/offline_page_model_factory.cc [modify] https://crrev.com/76f2e5a378d9d1ab6daf69cb77723adf6d2c40eb/chrome/browser/android/offline_pages/test_offline_page_model_builder.cc [modify] https://crrev.com/76f2e5a378d9d1ab6daf69cb77723adf6d2c40eb/components/components_tests.gyp [modify] https://crrev.com/76f2e5a378d9d1ab6daf69cb77723adf6d2c40eb/components/offline_pages.gypi [modify] https://crrev.com/76f2e5a378d9d1ab6daf69cb77723adf6d2c40eb/components/offline_pages/BUILD.gn [modify] https://crrev.com/76f2e5a378d9d1ab6daf69cb77723adf6d2c40eb/components/offline_pages/offline_page_model.cc [modify] https://crrev.com/76f2e5a378d9d1ab6daf69cb77723adf6d2c40eb/components/offline_pages/offline_page_model.h [add] https://crrev.com/76f2e5a378d9d1ab6daf69cb77723adf6d2c40eb/components/offline_pages/offline_page_model_impl.cc [add] https://crrev.com/76f2e5a378d9d1ab6daf69cb77723adf6d2c40eb/components/offline_pages/offline_page_model_impl.h [rename] https://crrev.com/76f2e5a378d9d1ab6daf69cb77723adf6d2c40eb/components/offline_pages/offline_page_model_impl_unittest.cc
,
Jun 2 2016
Re: * Create a fake implementation for testing. Patch https://codereview.chromium.org/2016313003/ added an empty implementation as StubOfflinePageModel. It also has an example of extending this Stub with the SavePage method mocked as MockOfflinePageModel in chrome/browser/android/offline_pages/prerendering_offliner_unittest.cc
,
Jun 2 2016
Issue 615165 has been merged into this issue.
,
Jun 3 2016
Removed StorageManager::Client and patch has landed. https://crrev.com/44b9e6bd68d769be11b0520e73d0b2b37d53765a https://codereview.chromium.org/2026843003/
,
Sep 23 2016
|
||||
►
Sign in to add a comment |
||||
Comment 1 by bugdroid1@chromium.org
, May 11 2016