base: Clarify that MAIN_THREAD_MOCK_TIME affects base::Time::Now()
When using ScopedTaskEnvironment::NowSource::MAIN_THREAD_MOCK_TIME, both base::Time::Now() and base::TimeTicks::Now() are affected. However, this isn't clear in the comment and there's no unit test covering it. This CL updates the comment and added tests to cover both base::Time::Now() and base::TimeTicks::Now(). Bug: 917527 Test: New tests added. Change-Id: Ida9b5f334e12e0bceb9e952f97f0ee9ef01ffc45 Reviewed-on: https://chromium-review.googlesource.com/c/1450402 Commit-Queue: Xiaohan Wang <xhwang@chromium.org> Commit-Queue: Gabriel Charette <gab@chromium.org> Reviewed-by:Gabriel Charette <gab@chromium.org> Cr-Commit-Position: refs/heads/master@{#628456}
Showing
Please register or sign in to comment