service worker: Expose resource ids getters for tests
This CL removes some direct use of ServiceWorker{Storage,Database} from service_worker_storage_unittest.cc by exposing getters of uncommitted/purgeable/purging resource ids. The motivation of the removal of direct use is: * Some tests checks whether resources are uncommitted/purgeable/purging in various situations. * These tests depend on in-memory representations like ServiceWorkerRegistration. * These tests will be moved to service_worker_registry_unittest.cc because _storage_unittest.cc will be moved to the Storage Service where we can't depend on in-memory representations. * There is no access to ServiceWorker{Storage,Database} from service_worker_registry_unittest.cc because these are behind a mojo interface. Bug: 1016064 Change-Id: I1104cd10226941aacc11a4cd9228a81e94ee5d2a Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2460531 Commit-Queue: Kenichi Ishibashi <bashi@chromium.org> Reviewed-by:Makoto Shimazu <shimazu@chromium.org> Reviewed-by:
Kinuko Yasuda <kinuko@chromium.org> Cr-Commit-Position: refs/heads/master@{#816050}
Showing
Please register or sign in to comment