diff options
Diffstat (limited to 'net/base/transport_security_state_unittest.cc')
-rw-r--r-- | net/base/transport_security_state_unittest.cc | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/net/base/transport_security_state_unittest.cc b/net/base/transport_security_state_unittest.cc index ebc2f7c..a8a3cafb 100644 --- a/net/base/transport_security_state_unittest.cc +++ b/net/base/transport_security_state_unittest.cc @@ -490,6 +490,10 @@ TEST_F(TransportSecurityStateTest, Preloaded) { EXPECT_TRUE(state->IsEnabledForHost(&domain_state, "profiles.google.com", true)); + EXPECT_TRUE(state->IsEnabledForHost(&domain_state, "mail.google.com", true)); + EXPECT_TRUE(state->IsEnabledForHost(&domain_state, + "chatenabled.mail.google.com", + true)); EXPECT_TRUE(state->IsEnabledForHost(&domain_state, "entropia.de", true)); EXPECT_TRUE(state->IsEnabledForHost(&domain_state, "www.entropia.de", true)); @@ -633,6 +637,10 @@ TEST_F(TransportSecurityStateTest, BuiltinCertPins) { EXPECT_TRUE(state->HasPinsForHost(&domain_state, "profiles.google.com", true)); + EXPECT_TRUE(state->HasPinsForHost(&domain_state, "mail.google.com", true)); + EXPECT_TRUE(state->HasPinsForHost(&domain_state, + "chatenabled.mail.google.com", + true)); EXPECT_TRUE(state->HasPinsForHost(&domain_state, "ssl.gstatic.com", true)); EXPECT_TRUE(state->HasPinsForHost(&domain_state, "ssl.google-analytics.com", @@ -656,10 +664,6 @@ TEST_F(TransportSecurityStateTest, OptionalHSTSCertPins) { EXPECT_TRUE(state->HasPinsForHost(&domain_state, "www.google-analytics.com", true)); - EXPECT_TRUE(state->HasPinsForHost(&domain_state, "mail.google.com", true)); - EXPECT_TRUE(state->HasPinsForHost(&domain_state, - "chatenabled.mail.google.com", - true)); EXPECT_TRUE(state->HasPinsForHost(&domain_state, "google.com", true)); EXPECT_TRUE(state->HasPinsForHost(&domain_state, "www.google.com", true)); EXPECT_TRUE(state->HasPinsForHost(&domain_state, |