commit | 27ff7475715673ebc736e4b198c3e90696d83022 | [log] [tgz] |
---|---|---|
author | fdoray <fdoray@chromium.org> | Thu Apr 27 19:41:15 2017 |
committer | Commit bot <commit-bot@chromium.org> | Thu Apr 27 19:41:15 2017 |
tree | 58b82cd35e851a2db30413eef55854cd3e56a8e2 | |
parent | ca6cb1bca33700042f30ef9ffd6813b88aa37f36 [diff] |
Use ScopedTaskEnvironment instead of MessageLoopForUI in device 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=reillyg@chromium.org Review-Url: https://codereview.chromium.org/2849613002 Cr-Commit-Position: refs/heads/master@{#467760}