| 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 f3b0f7258eb37c13513921c9ced627138024057d..2754ddeba4970367e297c5eb737e79a608faeff4 100644
|
| --- a/content/test/web_contents_observer_sanity_checker.cc
|
| +++ b/content/test/web_contents_observer_sanity_checker.cc
|
| @@ -128,6 +128,7 @@ void WebContentsObserverSanityChecker::DidStartNavigation(
|
| CHECK(navigation_handle->GetNetErrorCode() == net::OK);
|
| CHECK(!navigation_handle->HasCommitted());
|
| CHECK(!navigation_handle->IsErrorPage());
|
| + CHECK_EQ(navigation_handle->GetWebContents(), web_contents());
|
|
|
| ongoing_navigations_.insert(navigation_handle);
|
| }
|
| @@ -139,6 +140,7 @@ void WebContentsObserverSanityChecker::DidRedirectNavigation(
|
| CHECK(navigation_handle->GetNetErrorCode() == net::OK);
|
| CHECK(!navigation_handle->HasCommitted());
|
| CHECK(!navigation_handle->IsErrorPage());
|
| + CHECK_EQ(navigation_handle->GetWebContents(), web_contents());
|
| }
|
|
|
| void WebContentsObserverSanityChecker::ReadyToCommitNavigation(
|
| @@ -147,6 +149,8 @@ void WebContentsObserverSanityChecker::ReadyToCommitNavigation(
|
|
|
| CHECK(!navigation_handle->HasCommitted());
|
| CHECK(navigation_handle->GetRenderFrameHost());
|
| + CHECK_EQ(navigation_handle->GetWebContents(), web_contents());
|
| + CHECK(navigation_handle->GetRenderFrameHost() != nullptr);
|
| }
|
|
|
| void WebContentsObserverSanityChecker::DidFinishNavigation(
|
| @@ -159,6 +163,7 @@ void WebContentsObserverSanityChecker::DidFinishNavigation(
|
| CHECK_IMPLIES(
|
| navigation_handle->HasCommitted() && navigation_handle->IsErrorPage(),
|
| navigation_handle->GetNetErrorCode() != net::OK);
|
| + CHECK_EQ(navigation_handle->GetWebContents(), web_contents());
|
|
|
| CHECK_IMPLIES(navigation_handle->HasCommitted(),
|
| navigation_handle->GetRenderFrameHost() != nullptr);
|
|
|