Fix video-raf test flakiness
Despite hand coded test values, the difference between base::TimeTicks::Now() and the Document's origin time can result in times aligned with a 5 microseconds clock. This is a test failure, because we don't know whether or not the time values were successfully clamped. This CL uses the reference monotonic time instead of base::TimeTicks::Now() when initializing the test values, which guarantees deterministic results. Bug: 1057319 Change-Id: I26ee485545a75ba25bc2e9187e78f032fce767e6 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2083737Reviewed-by:Dale Curtis <dalecurtis@chromium.org> Commit-Queue: Thomas Guilbert <tguilbert@chromium.org> Auto-Submit: Thomas Guilbert <tguilbert@chromium.org> Cr-Commit-Position: refs/heads/master@{#746147}
Showing
Please register or sign in to comment