Have NavigationSimulator support browser-initiated navigations

Desktop / Chromium - clamy [chromium.org] - 10 August 2017 13:26 EDT

This CL adds support for simulating browser-initiated navigations using NavigationSimulator. It removes the one usage outside of content/ of RenderFrameHostTester::SimulateNavigationStart in simulation of browser-initiated navigations. It also makes TestWebContents::NavigateAndCommit use NavigationSimulator.

BUG=728571

Cq-Include-Trybots: master.tryserver.chromium.linux:linux_site_isolation Change-Id: Ib295868db2a3aab5828a178aba7b92d77ed9b2ba Reviewed-on: https://chromium-review.googlesource.com/583096 Commit-Queue: Camille Lamy

e977886 Have NavigationSimulator support browser-initiated navigations
.../browser/net/net_error_tab_helper_unittest.cc | 15 +-
.../permission_context_base_unittest.cc | 3 +-
.../client_side_detection_host_unittest.cc | 9 +
.../browser/frame_host/navigation_handle_impl.cc | 3 +-
content/public/test/navigation_simulator.cc | 331 ++++++++++++++++-----
content/public/test/navigation_simulator.h | 52 +++-
content/test/test_render_frame_host.h | 4 +
content/test/test_web_contents.cc | 19 +-
8 files changed, 344 insertions(+), 92 deletions(-)

Upstream: git.chromium.org


  • Share