commit | a17b470805f5201d8a60826c34a378371aca74a0 | [log] [tgz] |
---|---|---|
author | fdoray <fdoray@chromium.org> | Tue Nov 22 08:53:31 2016 +0900 |
committer | Qijiang Fan <fqj@google.com> | Fri Jun 05 04:43:04 2020 +0900 |
tree | 79e6f9fef977059a86841ca8c8a09c083e0531b6 | |
parent | 08fb0b88f81282751322e995430f3baf87853dd7 [diff] |
Create base::test::ScopedTaskScheduler. ScopedTaskScheduler initializes a TaskScheduler and allows usage of the base/task_scheduler/post_task.h API within a scope. To make tests deterministic, the TaskScheduler initialized by ScopedTaskScheduler has a single thread. BUG=553459 Review-Url: https://codereview.chromium.org/2511473004 Cr-Commit-Position: refs/heads/master@{#433702} CrOS-Libchrome-Original-Commit: 8602d8a7269695a80f9d796ba7b2d69209f8cbdd