DescriptionAdd 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}
Committed: https://chromium.googlesource.com/chromium/src/+/a1f53b7c3cca3156dcf7cd7a57264d888ea318ef
Patch Set 1 #Patch Set 2 : self-review #Patch Set 3 : self-review #
Total comments: 8
Patch Set 4 : CR-gab-9 #
Messages
Total messages: 20 (14 generated)
|