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
5 files changed
tree: 79e6f9fef977059a86841ca8c8a09c083e0531b6
  1. base/
  2. build/
  3. components/
  4. dbus/
  5. device/
  6. ipc/
  7. mojo/
  8. testing/
  9. third_party/
  10. ui/