summaryrefslogtreecommitdiffstats
path: root/net/base/transport_security_state_unittest.cc
diff options
context:
space:
mode:
authoragl@chromium.org <agl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-26 18:21:45 +0000
committeragl@chromium.org <agl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-26 18:21:45 +0000
commit7852287f33247a587aa9055bc6da9f05c42ccadd (patch)
tree1dddf2aa3ed5a43fe70d9962b7cf03f36ce1a5f1 /net/base/transport_security_state_unittest.cc
parent0ae0f3ed6f41ceff83ca6b309984c5b1c7ed85bf (diff)
downloadchromium_src-7852287f33247a587aa9055bc6da9f05c42ccadd.zip
chromium_src-7852287f33247a587aa9055bc6da9f05c42ccadd.tar.gz
chromium_src-7852287f33247a587aa9055bc6da9f05c42ccadd.tar.bz2
STS: enable preloaded for www.noisebridge.net
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@53645 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/base/transport_security_state_unittest.cc')
-rw-r--r--net/base/transport_security_state_unittest.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/net/base/transport_security_state_unittest.cc b/net/base/transport_security_state_unittest.cc
index 163b82e..457df90 100644
--- a/net/base/transport_security_state_unittest.cc
+++ b/net/base/transport_security_state_unittest.cc
@@ -338,6 +338,10 @@ TEST_F(TransportSecurityStateTest, Preloaded) {
TransportSecurityState::DomainState::MODE_STRICT);
EXPECT_TRUE(state->IsEnabledForHost(&domain_state, "www.sunshinepress.org"));
EXPECT_TRUE(state->IsEnabledForHost(&domain_state, "a.b.sunshinepress.org"));
+
+ EXPECT_TRUE(state->IsEnabledForHost(&domain_state, "www.noisebridge.net"));
+ EXPECT_FALSE(state->IsEnabledForHost(&domain_state, "noisebridge.net"));
+ EXPECT_FALSE(state->IsEnabledForHost(&domain_state, "foo.noisebridge.net"));
}
} // namespace net