commit | 4093b79b5e57860bd7b90a9bc41bae5629d84c61 | [log] [tgz] |
---|---|---|
author | fdoray <fdoray@chromium.org> | Tue May 09 17:49:23 2017 |
committer | Commit bot <commit-bot@chromium.org> | Tue May 09 17:49:23 2017 |
tree | 82d177468c1266bba38982f0a998c564140cc8b2 | |
parent | 4f54bee9b89dd593c338dbc684f806bb73b48256 [diff] |
Use ScopedTaskEnvironment instead of MessageLoopForUI in ViewsTestBase. 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/2867663007 Cr-Commit-Position: refs/heads/master@{#470374}