summaryrefslogtreecommitdiffstats
path: root/net/data
diff options
context:
space:
mode:
authorpalmer@chromium.org <palmer@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-06-29 13:13:27 +0000
committerpalmer@chromium.org <palmer@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-06-29 13:13:27 +0000
commit37fd55fb8f9763f0e87a4b100d9e825612d6806a (patch)
treed7ae44108c1f79e01795397c6e324ef389e6deef /net/data
parent6a86a4d0ec41fe9a35f08e9b18ff6cd38815e725 (diff)
downloadchromium_src-37fd55fb8f9763f0e87a4b100d9e825612d6806a.zip
chromium_src-37fd55fb8f9763f0e87a4b100d9e825612d6806a.tar.gz
chromium_src-37fd55fb8f9763f0e87a4b100d9e825612d6806a.tar.bz2
More tests for handling HSTS and HPKP headers.
Fix state management bugs that the tests exposed: * HPKP and HSTS include_subdomains should be distinct * HSTS processing should not clobber HPKP data * Multiple HPKP headers should ignore all but the first BUG=248678, 156152 TBR=ananta Review URL: https://chromiumcodereview.appspot.com/16912003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@209290 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/data')
-rw-r--r--net/data/url_request_unittest/hpkp-headers.html1
-rw-r--r--net/data/url_request_unittest/hpkp-headers.html.mock-http-headers6
-rw-r--r--net/data/url_request_unittest/hsts-and-hpkp-headers2.html1
-rw-r--r--net/data/url_request_unittest/hsts-and-hpkp-headers2.html.mock-http-headers8
4 files changed, 16 insertions, 0 deletions
diff --git a/net/data/url_request_unittest/hpkp-headers.html b/net/data/url_request_unittest/hpkp-headers.html
new file mode 100644
index 0000000..364322d
--- /dev/null
+++ b/net/data/url_request_unittest/hpkp-headers.html
@@ -0,0 +1 @@
+This file is boring; all the action's in the .mock-http-headers.
diff --git a/net/data/url_request_unittest/hpkp-headers.html.mock-http-headers b/net/data/url_request_unittest/hpkp-headers.html.mock-http-headers
new file mode 100644
index 0000000..f491840
--- /dev/null
+++ b/net/data/url_request_unittest/hpkp-headers.html.mock-http-headers
@@ -0,0 +1,6 @@
+HTTP/1.1 200 OK
+Cache-Control: private
+Content-Type: text/html; charset=ISO-8859-1
+X-Multiple-Entries: a
+X-Multiple-Entries: b
+Public-Key-Pins: max-age=50000; pin-sha1="K9e3/nFL5j90GuVJOJBv6WXpvcs="; pin-sha256="kd16uBd5KFa9IJjF0X+8B+BXdAWkYYRZruNKDZ0M9Zw="; pin-sha1="Wws2/Z7YhKlX73v3rYHBBxO4OLE="
diff --git a/net/data/url_request_unittest/hsts-and-hpkp-headers2.html b/net/data/url_request_unittest/hsts-and-hpkp-headers2.html
new file mode 100644
index 0000000..364322d
--- /dev/null
+++ b/net/data/url_request_unittest/hsts-and-hpkp-headers2.html
@@ -0,0 +1 @@
+This file is boring; all the action's in the .mock-http-headers.
diff --git a/net/data/url_request_unittest/hsts-and-hpkp-headers2.html.mock-http-headers b/net/data/url_request_unittest/hsts-and-hpkp-headers2.html.mock-http-headers
new file mode 100644
index 0000000..9c0feda
--- /dev/null
+++ b/net/data/url_request_unittest/hsts-and-hpkp-headers2.html.mock-http-headers
@@ -0,0 +1,8 @@
+HTTP/1.1 200 OK
+Cache-Control: private
+Content-Type: text/html; charset=ISO-8859-1
+X-Multiple-Entries: a
+X-Multiple-Entries: b
+Strict-Transport-Security: max-age=12300; includeSubdomains
+Public-Key-Pins: max-age=50000; pin-sha1="K9e3/nFL5j90GuVJOJBv6WXpvcs="; pin-sha256="kd16uBd5KFa9IJjF0X+8B+BXdAWkYYRZruNKDZ0M9Zw="; pin-sha1="Wws2/Z7YhKlX73v3rYHBBxO4OLE="
+Public-Key-Pins: max-age=50000; pin-sha1="K9e3/nFL5j90GuVJOJBv6WXpvcs="; pin-sha256="kd16uBd5KFa9IJjF0X+8B+BXdAWkYYRZruNKDZ0M9Zw="; pin-sha1="Wws2/Z7YhKlX73v3rYHBBxO4OLE="; includeSubdomains