CTPolicyEnforcer::CheckCompliance: allow for a testing |Clock|.
This is a followup to b5cccac5, and has the same motivation: to improve testability of Certificate Transparency enforcement. Injecting the time of evaluation allows a test to be written that shows that while a call may return |CT_POLICY_COMPLIES_VIA_SCTS| today, the same inputs may return |CT_POLICY_BUILD_NOT_TIMELY| tomorrow. Change-Id: If4a4519ccaf7b1470477fc4c1978de1d14e58aa8 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1626016 Commit-Queue: Matt Braithwaite <mab@google.com> Reviewed-by:Ryan Sleevi <rsleevi@chromium.org> Cr-Commit-Position: refs/heads/master@{#664063}
Showing
Please register or sign in to comment