Cleanup NavigationBrowserTest, use shorthand instead of static_cast.
Most tests about navigation defines web_contents() to avoid doing some static_cast<WebContentsImpl>(shell->web_contents()) every times the tests want to access anything. Similarly, they also define current_frame_host() for getting the current main document. For instance, see RenderFrameHostImplBrowserTest. This patch introduce the same shorthand. It makes every tests to use them. (File size reduced by ~3.5% overall). Bug: None Change-Id: I76b196ad4da8d3ce12a4fe82c076fd59f31016ce Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2506048 Commit-Queue: Arthur Sonzogni <arthursonzogni@chromium.org> Reviewed-by:Alex Moshchuk <alexmos@chromium.org> Cr-Commit-Position: refs/heads/master@{#823490}
Showing
This diff is collapsed.
Please register or sign in to comment