Running delayed tasks immediately in ServiceWorkerRegistrationTest
This patch uses TimeSource::MOCK_TIME trait to construct ScopedTaskEnvironment, which will enable the delayed tasks to be handled when reaching idle. By doing so, we can get rid of the usage of RunUntilActivated(). Bug: 988930 Change-Id: I6c3ea276e7ce300eb525c886404c1e54a312a0c3 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1747858Reviewed-by:Makoto Shimazu <shimazu@chromium.org> Commit-Queue: Minggang Wang <minggang.wang@intel.com> Cr-Commit-Position: refs/heads/master@{#686739}
Showing
Please register or sign in to comment