0
Files
src/content/test
David Van Cleve 6e339a26c7 Trust Tokens: add (disabled) initial end-to-end tests
This CL comprises some test-only changes adding rigging to support
end-to-end Trust Tokens tests, as well as some first-pass tests
themselves, disabled pending the necessary code landing in the child CL.

The additions:
1. TrustTokenRequestHandler, which is a server responsible for
satisfying issuance and redemption requests and inspecting subsequent
signed requests to confirm invariants hold;
2. signed_request_verification_util.{h, cc} get more utility methods for
parsing and verifying the contents of Sec-Signature headers and SRRs
3. TrustTokenRequestCanonicalizer and TrustTokenRequestSigningHelper's
unit tests get some refactoring in order to share code with the new
end-to-end test infra
4. The tests! They live in //content/test. I'm starting out with simple
end-to-end tests using the Fetch, XHR, and iframe APIs, as well as one
test that makes sure hasTrustToken returns true after a successful
issuance.

R=csharrison

Test: Tests pass in the child CL.
Bug: 1063140
Change-Id: I0ad51d7559bb5c066693e82150ed3c40a2f58102
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2163845
Commit-Queue: David Van Cleve <davidvc@chromium.org>
Reviewed-by: Charlie Harrison <csharrison@chromium.org>
Cr-Commit-Position: refs/heads/master@{#763822}
2020-04-29 15:17:52 +00:00
..
2020-04-29 02:20:54 +00:00