| Index: content/test/web_contents_observer_sanity_checker.cc
|
| diff --git a/content/test/web_contents_observer_sanity_checker.cc b/content/test/web_contents_observer_sanity_checker.cc
|
| index 09151e89135750a398e7a6b909227f4418abb1ed..09a2b961a79a976fc9dacba02ede0b50d9c0b74f 100644
|
| --- a/content/test/web_contents_observer_sanity_checker.cc
|
| +++ b/content/test/web_contents_observer_sanity_checker.cc
|
| @@ -143,6 +143,15 @@ void WebContentsObserverSanityChecker::DidRedirectNavigation(
|
| CHECK(!navigation_handle->HasCommittedErrorPage());
|
| }
|
|
|
| +void WebContentsObserverSanityChecker::AboutToCommitNavigation(
|
| + NavigationHandle* navigation_handle) {
|
| + CHECK(NavigationIsOngoing(navigation_handle));
|
| + CHECK(!NavigationIsOngoingAndCommitted(navigation_handle));
|
| +
|
| + CHECK(!navigation_handle->HasCommittedDocument());
|
| + CHECK(!navigation_handle->HasCommittedErrorPage());
|
| +}
|
| +
|
| void WebContentsObserverSanityChecker::DidCommitNavigation(
|
| NavigationHandle* navigation_handle) {
|
| CHECK(NavigationIsOngoing(navigation_handle));
|
|
|