commit | 39a2ba43e67ba75529e838adc853f2ad1f2ce473 | [log] [tgz] |
---|---|---|
author | fdoray <fdoray@chromium.org> | Thu May 11 00:05:42 2017 |
committer | Commit bot <commit-bot@chromium.org> | Thu May 11 00:05:42 2017 |
tree | 3f6837e6c3ccf1322eccd9058d7b14d69c55f041 | |
parent | 366b2246d6fcba8fd2cef00f3ef03acd53a5d47c [diff] |
Use ScopedTaskEnvironment instead of MessageLoop in service_manager::test::ServiceTest. 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/2878453002 Cr-Commit-Position: refs/heads/master@{#470758}