dpwa: Add unit tests for WebAppUrlLoader::PrepareForLoad flushing.
These are follow up unit tests for this diff: https://chromium-review.googlesource.com/c/chromium/src/+/2237542/13/chrome/browser/web_applications/components/web_app_url_loader.cc The change was: 1) Let's load about:blank page before each WebAppInstallTask to reset the renderer process. It gives us that pseudo-Reset API with a guaranteed completion callback. 2) Let's use about:blank url as a special barrier in WebAppUrlLoader: if WebAppUrlLoader awaits on about:blank loading, it should flush (skip) all noisy DidFinishLoading and DidFailLoading events. Note that these tests are complementary to existing browser tests in web_app_url_loader_browsertest.cc. However, we need low-level unit test environment to reproduce flakiness for DidFinishLoading and DidFailLoading events (unit tests give us that level of detail and control) Bug: 1086778 Change-Id: I77ff72ac55fa227b3bc4af97da8062e8c445bfe9 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2320395 Commit-Queue: Alexey Baskakov <loyso@chromium.org> Reviewed-by:Daniel Murphy <dmurph@chromium.org> Cr-Commit-Position: refs/heads/master@{#797198}
Showing
Please register or sign in to comment