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

Unified Diff: net/http/transport_security_state_static_unittest2.json

Issue 2660793002: Add transport security state generator tests. (Closed)
Patch Set: export method for tests Created 3 years, 10 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
Index: net/http/transport_security_state_static_unittest2.json
diff --git a/net/http/transport_security_state_static_unittest2.json b/net/http/transport_security_state_static_unittest2.json
new file mode 100644
index 0000000000000000000000000000000000000000..7be8347e73fec98a9cd7d8b070ac04f5ebebc676
--- /dev/null
+++ b/net/http/transport_security_state_static_unittest2.json
@@ -0,0 +1,61 @@
+// Copyright (c) 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+// This is a HSTS preloaded list used by the unittests. For more information
+// on the content and format see the comments in
+// transport_security_state_static.json.
+
+{
+ "pinsets": [
+ {
+ "name": "test1",
+ "static_spki_hashes": [
+ "TestSPKI1"
+ ],
+ "report_uri": "https://report.example.com/hpkp-upload"
+ }, {
+ "name": "test2",
+ "static_spki_hashes": [
+ "TestSPKI2"
+ ],
+ "bad_static_spki_hashes": [
+ "TestSPKI1"
+ ]
+ }
+ ],
+ "entries": [
+ {
+ "name": "hsts.example.com",
+ "mode": "force-https"
+ }, {
+ "name": "hpkp.example.com",
+ "include_subdomains_for_pinning": true,
+ "pins": "test1"
+ }, {
+ "name": "expect-ct.example.com",
+ "expect_ct": true,
+ "expect_ct_report_uri": "https://report.example.com/ct-upload"
+ }, {
+ "name": "expect-staple.example.com",
+ "expect_staple": true,
+ "expect_staple_report_uri": "https://report.example.com/staple-upload",
+ "include_subdomains_for_expect_staple": false
+ }, {
+ "name": "mix.example.com",
+ "mode": "force-https",
+ "include_subdomains": false,
+ "pins": "test2",
+ "include_subdomains_for_pinning": true,
+ "expect_ct": true,
+ "expect_ct_report_uri": "https://report.example.com/ct-upload-alt",
+ "expect_staple": true,
+ "expect_staple_report_uri": "https://report.example.com/staple-upload-alt",
+ "include_subdomains_for_expect_staple": true
+ }
+ ],
+ "domain_ids": [
+ "NOT_PINNED",
+ "EXAMPLE_COM"
+ ]
+}

Powered by Google App Engine
This is Rietveld 408576698