Trust Tokens: Move SRR serialization into its own file
A subsequent CL (crrev.com/c/2176796, adding an expiry checker for SRRs) requires deserializing Trust Tokens signed redemption records (SRRs) outside of tests. To prepare for this, this CL moves the currently test-only SRR deserialization code to its own non-test file and add tests covering the logic. It also moves the SRR serialization code out of its current anonymous namespace to the same new standalone file. R=csharrison Bug: 1077060 Change-Id: I3803effa1104839098982d18cbb6176df803add8 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2183256 Commit-Queue: David Van Cleve <davidvc@chromium.org> Reviewed-by:Charlie Harrison <csharrison@chromium.org> Auto-Submit: David Van Cleve <davidvc@chromium.org> Cr-Commit-Position: refs/heads/master@{#766434}
Showing
Please register or sign in to comment