DescriptionDeflake origin trial token validator tests
This removes the dependency on the system clock of the origin trial
token validator tests. All static functions in the TrialTokenValidator
namespace which validate tokens now take a base::Time argument which is used to
compare against the tokens provided.
BUG=672294
R=chasej@chromium.org,nhiroki@chromium.org
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.android:android_n5x_swarming_rel
Review-Url: https://codereview.chromium.org/2555333006
Cr-Commit-Position: refs/heads/master@{#491601}
Committed: https://chromium.googlesource.com/chromium/src/+/334e05fb8a8035585a25b1ce419425ac64b3889a
Patch Set 1 #Patch Set 2 : Also fix GetValidTokensFromHeaders #Patch Set 3 : Add a clock for testing to serviceworkerversion #
Total comments: 5
Patch Set 4 : Switch WrapUnique to MakeUnique #Messages
Total messages: 30 (19 generated)
|