Improve add to homescreen data fetcher unit tests.
Existing tests for this component don't work. The service worker registration is for a different browser context, so the tests never actuallly verify WebAPK-compatibility properly. This CL revamps the tests by mocking out InstallableManager instead of WebContents. This allows precise control over the data returned to the data fetcher so we can verify more scenarios more accurately. BUG=721881 Review-Url: https://codereview.chromium.org/2960103002 Cr-Commit-Position: refs/heads/master@{#485505}
Showing
This diff is collapsed.
Please register or sign in to comment