| Index: chrome/browser/ssl/chrome_security_state_model_client_unittest.cc
|
| diff --git a/chrome/browser/ssl/chrome_security_state_model_client_unittest.cc b/chrome/browser/ssl/chrome_security_state_model_client_unittest.cc
|
| index 3e933364457064fd3cf7ab5bb2486ccbec68b455..dd61cf51dc95438dc6cb22dc2819d6a66ceab44f 100644
|
| --- a/chrome/browser/ssl/chrome_security_state_model_client_unittest.cc
|
| +++ b/chrome/browser/ssl/chrome_security_state_model_client_unittest.cc
|
| @@ -213,4 +213,18 @@ TEST(ChromeSecurityStateModelClientTest, ConnectionExplanation) {
|
| }
|
| }
|
|
|
| +// Tests that a security level of HTTP_SHOW_WARNING produces a
|
| +// content::SecurityStyle of UNAUTHENTICATED, with an explanation.
|
| +TEST(ChromeSecurityStateModelClientTest, HTTPWarning) {
|
| + security_state::SecurityStateModel::SecurityInfo security_info;
|
| + content::SecurityStyleExplanations explanations;
|
| + security_info.security_level =
|
| + security_state::SecurityStateModel::HTTP_SHOW_WARNING;
|
| + blink::WebSecurityStyle security_style =
|
| + ChromeSecurityStateModelClient::GetSecurityStyle(security_info,
|
| + &explanations);
|
| + EXPECT_EQ(blink::WebSecurityStyleUnauthenticated, security_style);
|
| + EXPECT_EQ(1u, explanations.unauthenticated_explanations.size());
|
| +}
|
| +
|
| } // namespace
|
|
|