Remove access race in TestSimpleTaskRunner::RunUntilIdle().

Before this CL, TestSimpleTaskRunner::RunUntilIdle() accessed
|pending_tasks_| without holding a lock. This is racy since
|pending_tasks_| can be written from another thread (e.g. from
PostDelayedTask()).

Bug: 811415
Change-Id: Ie0bac8f466ffd4f32fce1088449402480cdaeba7
Reviewed-on: https://chromium-review.googlesource.com/914735
Reviewed-by: Daniel Cheng <dcheng@chromium.org>
Commit-Queue: François Doray <fdoray@chromium.org>
Cr-Commit-Position: refs/heads/master@{#536350}

CrOS-Libchrome-Original-Commit: 5d8bc4ffb7597a0331adbe43d9d8ec6eaf3ade46
1 file changed
tree: 595aefb1d479330fa28d30691a8e85f1e0b39c05
  1. base/
  2. build/
  3. components/
  4. dbus/
  5. device/
  6. ipc/
  7. mojo/
  8. testing/
  9. third_party/
  10. ui/