commit | 822e6b2520c585093f6fa163b7475bd4dc77dfac | [log] [tgz] |
---|---|---|
author | fdoray <fdoray@chromium.org> | Thu Apr 27 20:47:03 2017 |
committer | Commit bot <commit-bot@chromium.org> | Thu Apr 27 20:47:03 2017 |
tree | 449c43390b6d9c277f40918257e74e3e2a5fa7a5 | |
parent | 6bc101ebf27a7a56f28d5264aed265ec43a8db45 [diff] |
Use ScopedTaskEnvironment instead of MessageLoopForUI in chromeos 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=stevenjb@chromium.org Review-Url: https://codereview.chromium.org/2845973003 Cr-Commit-Position: refs/heads/master@{#467781}