| 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 1935d2ecd5b1b175dd09b912c385879663dd6fa5..2754ddeba4970367e297c5eb737e79a608faeff4 100644
|
| --- a/content/test/web_contents_observer_sanity_checker.cc
|
| +++ b/content/test/web_contents_observer_sanity_checker.cc
|
| @@ -157,16 +157,16 @@
|
| NavigationHandle* navigation_handle) {
|
| CHECK(NavigationIsOngoing(navigation_handle));
|
|
|
| - CHECK(!(navigation_handle->HasCommitted() &&
|
| - !navigation_handle->IsErrorPage()) ||
|
| - navigation_handle->GetNetErrorCode() == net::OK);
|
| - CHECK(!(navigation_handle->HasCommitted() &&
|
| - navigation_handle->IsErrorPage()) ||
|
| - navigation_handle->GetNetErrorCode() != net::OK);
|
| + CHECK_IMPLIES(
|
| + navigation_handle->HasCommitted() && !navigation_handle->IsErrorPage(),
|
| + navigation_handle->GetNetErrorCode() == net::OK);
|
| + CHECK_IMPLIES(
|
| + navigation_handle->HasCommitted() && navigation_handle->IsErrorPage(),
|
| + navigation_handle->GetNetErrorCode() != net::OK);
|
| CHECK_EQ(navigation_handle->GetWebContents(), web_contents());
|
|
|
| - CHECK(!navigation_handle->HasCommitted() ||
|
| - navigation_handle->GetRenderFrameHost() != nullptr);
|
| + CHECK_IMPLIES(navigation_handle->HasCommitted(),
|
| + navigation_handle->GetRenderFrameHost() != nullptr);
|
|
|
| ongoing_navigations_.erase(navigation_handle);
|
| }
|
|
|