Commit a26fa9a7 authored by arthursonzogni's avatar arthursonzogni Committed by Commit Bot

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: default avatarAlex Moshchuk <alexmos@chromium.org>
Cr-Commit-Position: refs/heads/master@{#823490}
parent 7b3f48dd
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment