diff options
author | agl@chromium.org <agl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-07-26 18:21:45 +0000 |
---|---|---|
committer | agl@chromium.org <agl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-07-26 18:21:45 +0000 |
commit | 7852287f33247a587aa9055bc6da9f05c42ccadd (patch) | |
tree | 1dddf2aa3ed5a43fe70d9962b7cf03f36ce1a5f1 /net | |
parent | 0ae0f3ed6f41ceff83ca6b309984c5b1c7ed85bf (diff) | |
download | chromium_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')
-rw-r--r-- | net/base/transport_security_state.cc | 1 | ||||
-rw-r--r-- | net/base/transport_security_state_unittest.cc | 4 |
2 files changed, 5 insertions, 0 deletions
diff --git a/net/base/transport_security_state.cc b/net/base/transport_security_state.cc index 0ed192e1..952e78b 100644 --- a/net/base/transport_security_state.cc +++ b/net/base/transport_security_state.cc @@ -396,6 +396,7 @@ bool TransportSecurityState::isPreloadedSTS( {16, false, "\003www\006elanex\003biz"}, {12, true, "\006jottit\003com"}, {19, true, "\015sunshinepress\003org"}, + {21, false, "\003www\013noisebridge\003net"}, }; static const size_t kNumPreloadedSTS = ARRAYSIZE_UNSAFE(kPreloadedSTS); 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 |