Fix CaptivePortalBrowserTest browser tests with PlzNavigate.
CaptivePortalBrowserTest.InterstitialTimerNavigateAwayWhileLoading CaptivePortalBrowserTest.InterstitialTimerNavigateWhileLoading_EndWithCaptivePortalInterstitial CaptivePortalBrowserTest.InterstitialTimerNavigateWhileLoading_EndWithSSLInterstitial CaptivePortalBrowserTest.InterstitialTimerReloadWhileLoading: The following tests just need an adjustment in how many navigations they wait for. With PlzNavigate, when the renderer is navigated it doesn't send a FrameHostMsg_DidStopLoading IPC if it's loading. The tests were depending on that implementation detail, so they're updated now to handle both cases. CaptivePortalBrowserTest.SSLCertErrorLogin: With PlzNavigate, CaptivePortalTabReloader::OnLoadStart is called synchronously when a navigation occurs because of differences in the implementation details of NavigatorImpl::NavigateToEntry. Again, update the test to handle both cases. BUG=504347 Review-Url: https://codereview.chromium.org/2365063002 Cr-Commit-Position: refs/heads/master@{#420777}
Showing
Please register or sign in to comment