commit | bc23556815ace00e5f26b5e3d63d07cf8eafabd9 | [log] [tgz] |
---|---|---|
author | fdoray <fdoray@chromium.org> | Fri Apr 28 12:36:39 2017 |
committer | Commit bot <commit-bot@chromium.org> | Fri Apr 28 12:36:39 2017 |
tree | ed3aa8d7d4fcace585d1120b69727894ef932a03 | |
parent | 01014b7ca4112940ca3080729beba9701321620e [diff] |
Use ScopedTaskEnvironment instead of MessageLoopForUI in ios 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=marq@chromium.org Review-Url: https://codereview.chromium.org/2846073002 Cr-Commit-Position: refs/heads/master@{#467968}