[ScopedTaskEnvironment] Introduce the TimeSource trait to replace MOCK_TIME...
[ScopedTaskEnvironment] Introduce the TimeSource trait to replace MOCK_TIME MainThreadTypes and NowSource The impl now only relies on the new trait (after a conversion from the TimeSourceForTraits() helper). Only basic test were added as the current tests cover the old modes and TimeSourceForTraits(). Tests will be cleaned up after the migration (which will reduce the number of parametrized test instantiation :)). Users of the old traits will be mass-migrated in a follow-up scripted change. R=alexclarke@chromium.org, fdoray@chromium.org Bug: 946657 Change-Id: Ice18fe1e170a519fc40873783ad4ef18665e268d Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1689400 Commit-Queue: Gabriel Charette <gab@chromium.org> Reviewed-by:Alex Clarke <alexclarke@chromium.org> Reviewed-by:
François Doray <fdoray@chromium.org> Cr-Commit-Position: refs/heads/master@{#676390}
Showing
Please register or sign in to comment