• Eugene But's avatar
    Modernize NavigationAndLoadCallbacksTest integration test. · 11da369f
    Eugene But authored
    Notable changes:
    
    1.) Use C-functions helpers instead of WebIntTest method. This will
        allow to switch NavigationAndLoadCallbacksTest to a simpler base
        class in the future.
    2.) Added test::WaitForPageToFinishLoading C-function, which can be
        used across multiple tests to wait for pageload.
    3.) Removed extra usage of web:: because NavigationAndLoadCallbacksTest
        is already placed into web namespace.
    4.) Removed web_state()->SetDelegate(nullptr); calls, because unlike
        WebIntTest, WebTestWithWebState does not set a web delegate.
    
    Bug: None
    Cq-Include-Trybots: master.tryserver.chromium.mac:ios-simulator-cronet;master.tryserver.chromium.mac:ios-simulator-full-configs
    Change-Id: If5f26f1da40a90fde6378964b0f29a6ac30c16bb
    Reviewed-on: https://chromium-review.googlesource.com/1056203
    Commit-Queue: Kurt Horimoto <kkhorimoto@chromium.org>
    Reviewed-by: default avatarKurt Horimoto <kkhorimoto@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#558908}
    11da369f
navigation_test_util.h 778 Bytes