DescriptionUse ScopedTaskEnvironment instead of MessageLoop in tests that use v8.
This is a prerequisite to migrate v8 from base::WorkerPool to
base::TaskScheduler.
ScopedTaskEnvironment allows usage of ThreadTaskRunnerHandle and
base/task_scheduler/post_task.h within its scope. It should be
instantiated in everytest that uses either of these APIs
(i.e. no test should instantiate a MessageLoop directly).
Motivation for ScopedTaskEnvironment can be found in:
https://docs.google.com/document/d/1QabRo8c7D9LsYY3cEcaPQbOCLo8Tu-6VLykYXyl3Pkk/edit
BUG=708584
Review-Url: https://codereview.chromium.org/2852373004
Cr-Commit-Position: refs/heads/master@{#470007}
Committed: https://chromium.googlesource.com/chromium/src/+/09a43efb68e4412a8e091272df60eef6f50ac355
Patch Set 1 #Patch Set 2 : self-review #Patch Set 3 : fix-hang #
Total comments: 5
Patch Set 4 : CR-gab-12 #
Total comments: 3
Patch Set 5 : Reset-RenderViewTest #
Messages
Total messages: 31 (22 generated)
|