commit | 0d83127c40b39d0e9a54c1c1a474632017b9fc34 | [log] [tgz] |
---|---|---|
author | fdoray <[email protected]> | Thu Apr 06 16:50:19 2017 |
committer | Commit bot <[email protected]> | Thu Apr 06 16:50:19 2017 |
tree | ec49238f00b48a23ab4904b90f45a455f4c855ed | |
parent | 4cf067df249b8dbf265eeb944ed7c9b0ef420b08 [diff] |
Use ScopedTaskEnvironment instead of MessageLoop in components unit tests. ScopedTaskEnvironment allows usage of ThreadTaskRunnerHandle and base/task_scheduler/post_task.h within its scope. It should be instantiated in every unit test 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 [email protected] [email protected] Review-Url: https://codereview.chromium.org/2798963003 Cr-Commit-Position: refs/heads/master@{#462510}