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

Unified Diff: chrome/browser/net/transport_security_persister_unittest.cc

Issue 15711007: Remove "--hsts-hosts" command-line argument (Closed) Base URL: https://src.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 7 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 | « chrome/browser/net/transport_security_persister.cc ('k') | chrome/browser/profiles/profile_io_data.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/net/transport_security_persister_unittest.cc
===================================================================
--- chrome/browser/net/transport_security_persister_unittest.cc (revision 202305)
+++ chrome/browser/net/transport_security_persister_unittest.cc (working copy)
@@ -210,25 +210,3 @@
EXPECT_EQ(0, memcmp(domain_state.dynamic_spki_hashes[0].data(), sha1.data(),
sha1.size()));
}
-
-TEST_F(TransportSecurityPersisterTest, ForcePreloads) {
- // The static state for docs.google.com, defined in
- // net/http/transport_security_state_static.h, has pins and mode strict.
- // This new policy overrides that with no pins and a weaker mode. We apply
- // this new policy with |DeserializeFromCommandLine| and expect that the
- // new policy is in effect, overriding the static policy.
- std::string preload("{"
- "\"4AGT3lHihuMSd5rUj7B4u6At0jlSH3HFePovjPR+oLE=\": {"
- "\"created\": 0.0,"
- "\"expiry\": 2000000000.0,"
- "\"include_subdomains\": false,"
- "\"mode\": \"pinning-only\""
- "}}");
-
- EXPECT_TRUE(persister_->DeserializeFromCommandLine(preload));
-
- TransportSecurityState::DomainState domain_state;
- EXPECT_TRUE(state_.GetDomainState("docs.google.com", true, &domain_state));
- EXPECT_FALSE(domain_state.HasPublicKeyPins());
- EXPECT_FALSE(domain_state.ShouldUpgradeToSSL());
-}
« no previous file with comments | « chrome/browser/net/transport_security_persister.cc ('k') | chrome/browser/profiles/profile_io_data.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698