Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2195)

Unified Diff: net/base/transport_security_state_unittest.cc

Issue 6903086: Merge 83199 - Fix https://m.gmail.com/ and https://m.googlemail.com/, which don't return a (Closed) Base URL: svn://svn.chromium.org/chrome/branches/742/src/
Patch Set: Created 9 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/base/transport_security_state.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/transport_security_state_unittest.cc
===================================================================
--- net/base/transport_security_state_unittest.cc (revision 83228)
+++ net/base/transport_security_state_unittest.cc (working copy)
@@ -497,16 +497,24 @@
EXPECT_TRUE(state->IsEnabledForHost(&domain_state, "gmail.com", true));
EXPECT_TRUE(state->IsEnabledForHost(&domain_state, "www.gmail.com", true));
+ EXPECT_FALSE(state->IsEnabledForHost(&domain_state, "m.gmail.com", true));
EXPECT_TRUE(state->IsEnabledForHost(&domain_state, "googlemail.com", true));
EXPECT_TRUE(state->IsEnabledForHost(&domain_state,
"www.googlemail.com",
true));
+ EXPECT_FALSE(state->IsEnabledForHost(&domain_state,
+ "m.googlemail.com",
+ true));
EXPECT_FALSE(state->IsEnabledForHost(&domain_state, "gmail.com", false));
EXPECT_FALSE(state->IsEnabledForHost(&domain_state, "www.gmail.com", false));
+ EXPECT_FALSE(state->IsEnabledForHost(&domain_state, "m.gmail.com", false));
EXPECT_FALSE(state->IsEnabledForHost(&domain_state, "googlemail.com", false));
EXPECT_FALSE(state->IsEnabledForHost(&domain_state,
- "www.googlemail.com",
- false));
+ "www.googlemail.com",
+ false));
+ EXPECT_FALSE(state->IsEnabledForHost(&domain_state,
+ "m.googlemail.com",
+ false));
}
TEST_F(TransportSecurityStateTest, LongNames) {
« no previous file with comments | « net/base/transport_security_state.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698