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

Unified Diff: net/http/http_security_headers_unittest.cc

Issue 2553053004: Update Google pins. (Closed)
Patch Set: Created 4 years 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 | « no previous file | net/http/transport_security_state_static.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/http_security_headers_unittest.cc
diff --git a/net/http/http_security_headers_unittest.cc b/net/http/http_security_headers_unittest.cc
index 2d816f1418d6f6a5fe3e8558436c13448216f39b..9203781e75be5447fa4f5142e5f721a50973fd4d 100644
--- a/net/http/http_security_headers_unittest.cc
+++ b/net/http/http_security_headers_unittest.cc
@@ -789,9 +789,9 @@ TEST_F(HttpSecurityHeadersTest, UpdateDynamicPKPMaxAge0) {
std::string failure_log;
// Damage the hashes to cause a pin validation failure.
- new_static_pkp_state2.spki_hashes[0].data()[0] ^= 0x80;
- new_static_pkp_state2.spki_hashes[1].data()[0] ^= 0x80;
- new_static_pkp_state2.spki_hashes[2].data()[0] ^= 0x80;
+ for (size_t i = 0; i < new_static_pkp_state2.spki_hashes.size(); i++) {
+ new_static_pkp_state2.spki_hashes[i].data()[0] ^= 0x80;
+ }
const bool is_issued_by_known_root = true;
HostPortPair domain_port(domain, 443);
« no previous file with comments | « no previous file | net/http/transport_security_state_static.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698