Convert navigation interception unit tests to use nav simulator
This change: 1. Adds NavigationSimulator::SetMethod to set the initial HTTP method. 2. Converts navigation intercept tests to use the nav simulator. Note well that this conversion *relaxes* the test constraints. We now simply check that the request fails to commit, rather than fails to start. This is to allow future optimizations to apply policy in an async way without blocking the majority of network requests. For POSTs, we still check that the nav is cancelled at start. 3. Converts flash download intercept test to use the nav simulator. Bug: 793053 Change-Id: Ic30bf123fa94abe978ca4f5b02802899bc9a423e Reviewed-on: https://chromium-review.googlesource.com/813417 Commit-Queue: Charlie Harrison <csharrison@chromium.org> Reviewed-by:Tommy Li <tommycli@chromium.org> Reviewed-by:
Tao Bai <michaelbai@chromium.org> Reviewed-by:
Camille Lamy <clamy@chromium.org> Cr-Commit-Position: refs/heads/master@{#527095}
Showing
Please register or sign in to comment