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

Unified Diff: chrome/test/data/webui/net_internals/hsts_view.js

Issue 9415040: Refactor TransportSecurityState. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 8 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/chrome_tests.gypi ('k') | net/base/transport_security_state.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/webui/net_internals/hsts_view.js
===================================================================
--- chrome/test/data/webui/net_internals/hsts_view.js (revision 134551)
+++ chrome/test/data/webui/net_internals/hsts_view.js (working copy)
@@ -115,12 +115,15 @@
expectEquals(this.subdomains_, result.subdomains);
// |public_key_hashes| is an old synonym for what is now
- // |preloaded_spki_hashes|. Look for both, and also for
+ // |preloaded_spki_hashes|, which in turn is a legacy synonym for
+ // |static_spki_hashes|. Look for all three, and also for
// |dynamic_spki_hashes|.
if (typeof result.public_key_hashes === 'undefined')
result.public_key_hashes = '';
if (typeof result.preloaded_spki_hashes === 'undefined')
result.preloaded_spki_hashes = '';
+ if (typeof result.static_spki_hashes === 'undefined')
+ result.static_spki_hashes = '';
if (typeof result.dynamic_spki_hashes === 'undefined')
result.dynamic_spki_hashes = '';
@@ -129,10 +132,12 @@
hashes.push(result.public_key_hashes);
if (result.preloaded_spki_hashes)
hashes.push(result.preloaded_spki_hashes);
+ if (result.static_spki_hashes)
+ hashes.push(result.static_spki_hashes);
if (result.dynamic_spki_hashes)
hashes.push(result.dynamic_spki_hashes);
- expectEquals(this.publicKeyHashes_, hashes.join(","));
+ expectEquals(this.publicKeyHashes_, hashes.join(','));
// Verify that the domain appears somewhere in the displayed text.
outputText = $(HSTSView.QUERY_OUTPUT_DIV_ID).innerText;
« no previous file with comments | « chrome/chrome_tests.gypi ('k') | net/base/transport_security_state.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698