DescriptionUse ScopedTaskEnvironment instead of MessageLoopForUI in ash tests.
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
R=gab@chromium.org
TBR=sky@chromium.org
Review-Url: https://codereview.chromium.org/2846723004
Cr-Commit-Position: refs/heads/master@{#467987}
Committed: https://chromium.googlesource.com/chromium/src/+/40b0d9cabbed3a1447f51af3ffc5a287e86f9390
Patch Set 1 #
Messages
Total messages: 12 (7 generated)
|