commit | 7d69e09eb7600639c9be1c778bcde7e5f867bae9 | [log] [tgz] |
---|---|---|
author | fdoray <fdoray@chromium.org> | Fri Apr 07 00:16:57 2017 +0900 |
committer | Qijiang Fan <fqj@google.com> | Fri Jun 05 05:46:00 2020 +0900 |
tree | ce026dbabc1dfb8896c7e592ee8fdfe9aeb8d882 | |
parent | 1cf35911025502d7e598bd9fceacee25fe4bbf24 [diff] |
Add base::test::ScopedTaskEnvironment. ScopedTaskEnvironment allows usage of these APIs within its scope: - ThreadTaskRunnerHandle, on the thread where it lives - base/task_scheduler/post_task.h, on any thread Tests that need either of these APIs should instantiate a ScopedTaskEnvironment. Design doc https://docs.google.com/document/d/1QabRo8c7D9LsYY3cEcaPQbOCLo8Tu-6VLykYXyl3Pkk/edit BUG=708584 Review-Url: https://codereview.chromium.org/2796403002 Cr-Commit-Position: refs/heads/master@{#462477} CrOS-Libchrome-Original-Commit: a1f53b7c3cca3156dcf7cd7a57264d888ea318ef