commit | 5742c3808b947b73c4e279c2f753e59e284a1910 | [log] [tgz] |
---|---|---|
author | c.padhi <c.padhi@samsung.com> | Fri May 05 17:09:54 2017 |
committer | Commit bot <commit-bot@chromium.org> | Fri May 05 17:09:54 2017 |
tree | 407c01cf88b36ebcce0540a90d4b8a20268830f3 | |
parent | 97b20197a53d323f7b2d92581d97817ea85ea0a4 [diff] |
Use ScopedTaskEnvironment instead of MessageLoop in media/capture/ 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 Review-Url: https://codereview.chromium.org/2859273004 Cr-Commit-Position: refs/heads/master@{#469691}