Index: net/http/transport_security_persister_unittest.cc |
diff --git a/net/http/transport_security_persister_unittest.cc b/net/http/transport_security_persister_unittest.cc |
index 7e460ad49865f7248c0be236c1a49ca16eabe1c5..53cb2f4b7024e2ebf4aecca622ad27b5887ae465 100644 |
--- a/net/http/transport_security_persister_unittest.cc |
+++ b/net/http/transport_security_persister_unittest.cc |
@@ -19,8 +19,6 @@ |
namespace { |
-const char kReportUri[] = "http://www.example.test/report"; |
- |
class TransportSecurityPersisterTest : public testing::Test { |
public: |
TransportSecurityPersisterTest() { |
@@ -88,7 +86,6 @@ |
} |
TEST_F(TransportSecurityPersisterTest, SerializeData3) { |
- const GURL report_uri(kReportUri); |
// Add an entry. |
HashValue fp1(HASH_VALUE_SHA1); |
memset(fp1.data(), 0, fp1.size()); |
@@ -102,7 +99,7 @@ |
bool include_subdomains = false; |
state_.AddHSTS("www.example.com", expiry, include_subdomains); |
state_.AddHPKP("www.example.com", expiry, include_subdomains, |
- dynamic_spki_hashes, report_uri); |
+ dynamic_spki_hashes); |
// Add another entry. |
memset(fp1.data(), 2, fp1.size()); |
@@ -113,7 +110,7 @@ |
dynamic_spki_hashes.push_back(fp2); |
state_.AddHSTS("www.example.net", expiry, include_subdomains); |
state_.AddHPKP("www.example.net", expiry, include_subdomains, |
- dynamic_spki_hashes, report_uri); |
+ dynamic_spki_hashes); |
// Save a copy of everything. |
std::set<std::string> sts_saved; |
@@ -183,11 +180,9 @@ |
EXPECT_TRUE(dirty); |
} |
-TEST_F(TransportSecurityPersisterTest, PublicKeyPins) { |
- const GURL report_uri(kReportUri); |
+TEST_F(TransportSecurityPersisterTest, PublicKeyHashes) { |
TransportSecurityState::PKPState pkp_state; |
static const char kTestDomain[] = "example.com"; |
- |
EXPECT_FALSE(state_.GetDynamicPKPState(kTestDomain, &pkp_state)); |
HashValueVector hashes; |
std::string failure_log; |
@@ -209,8 +204,8 @@ |
const base::Time expiry = current_time + base::TimeDelta::FromSeconds(1000); |
bool include_subdomains = false; |
state_.AddHSTS(kTestDomain, expiry, include_subdomains); |
- state_.AddHPKP(kTestDomain, expiry, include_subdomains, pkp_state.spki_hashes, |
- report_uri); |
+ state_.AddHPKP(kTestDomain, expiry, include_subdomains, |
+ pkp_state.spki_hashes); |
std::string serialized; |
EXPECT_TRUE(persister_->SerializeData(&serialized)); |
bool dirty; |
@@ -222,7 +217,6 @@ |
EXPECT_EQ(sha1.tag, new_pkp_state.spki_hashes[0].tag); |
EXPECT_EQ( |
0, memcmp(new_pkp_state.spki_hashes[0].data(), sha1.data(), sha1.size())); |
- EXPECT_EQ(report_uri, new_pkp_state.report_uri); |
} |
} // namespace |