commit | 638b48e2f217dd8fe276e91906d7c3a6f6506eac | [log] [tgz] |
---|---|---|
author | fdoray <fdoray@chromium.org> | Fri Apr 28 16:10:43 2017 |
committer | Commit bot <commit-bot@chromium.org> | Fri Apr 28 16:10:43 2017 |
tree | 346f63d23c48190cddb327336734f0e1046f27c3 | |
parent | e17ef94d67dfe018efe33b4a6c95337ca193e388 [diff] |
Use ScopedTaskEnvironment instead of MessageLoopForUI in remoting 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=garykac@chromium.org Review-Url: https://codereview.chromium.org/2846943002 Cr-Commit-Position: refs/heads/master@{#468018}