| Index: chrome/browser/policy/policy_browsertest.cc
|
| diff --git a/chrome/browser/policy/policy_browsertest.cc b/chrome/browser/policy/policy_browsertest.cc
|
| index e28497c3b2518cdf9deb57dbb4dd40dd70c10b7f..18209dd3fda94b3ec3fe808c800046fcfde254d9 100644
|
| --- a/chrome/browser/policy/policy_browsertest.cc
|
| +++ b/chrome/browser/policy/policy_browsertest.cc
|
| @@ -107,6 +107,7 @@
|
| #include "components/search/search.h"
|
| #include "components/search_engines/template_url.h"
|
| #include "components/search_engines/template_url_service.h"
|
| +#include "components/security_interstitials/core/controller_client.h"
|
| #include "components/ssl_config/ssl_config_prefs.h"
|
| #include "components/translate/core/browser/language_state.h"
|
| #include "components/translate/core/browser/translate_infobar_delegate.h"
|
| @@ -203,6 +204,7 @@
|
|
|
| using content::BrowserThread;
|
| using net::URLRequestMockHTTPJob;
|
| +using security_interstitials::ControllerClient;
|
| using testing::Mock;
|
| using testing::Return;
|
| using testing::_;
|
| @@ -3745,11 +3747,10 @@ IN_PROC_BROWSER_TEST_F(PolicyTest, SafeBrowsingExtendedReportingOptInAllowed) {
|
| // by sending false if it's not present.
|
| " window.domAutomationController.send(%d);"
|
| "}",
|
| - SecurityInterstitialPage::CMD_TEXT_FOUND,
|
| - SecurityInterstitialPage::CMD_TEXT_NOT_FOUND,
|
| - SecurityInterstitialPage::CMD_ERROR);
|
| + ControllerClient::CMD_TEXT_FOUND, ControllerClient::CMD_TEXT_NOT_FOUND,
|
| + ControllerClient::CMD_ERROR);
|
| EXPECT_TRUE(content::ExecuteScriptAndExtractInt(rvh, command, &result));
|
| - EXPECT_EQ(SecurityInterstitialPage::CMD_TEXT_NOT_FOUND, result);
|
| + EXPECT_EQ(ControllerClient::CMD_TEXT_NOT_FOUND, result);
|
| }
|
|
|
| // Test that when SSL error overriding is allowed by policy (default), the
|
| @@ -3828,7 +3829,7 @@ IN_PROC_BROWSER_TEST_F(PolicyTest, SSLErrorOverridingDisallowed) {
|
| SSLBlockingPage* ssl_delegate =
|
| static_cast<SSLBlockingPage*>(interstitial_delegate);
|
| ssl_delegate->CommandReceived(
|
| - base::IntToString(SecurityInterstitialPage::CMD_PROCEED));
|
| + base::IntToString(ControllerClient::CMD_PROCEED));
|
| EXPECT_TRUE(interstitial);
|
| EXPECT_TRUE(browser()
|
| ->tab_strip_model()
|
|
|