scheduler: Refactor unit tests and shut down the scheduler in tests
commitf6f5f1a7f7079c6df449d8740cbb08163cd272db
authorskyostil <skyostil@chromium.org>
Mon, 1 Jun 2015 11:53:38 +0000 (1 04:53 -0700)
committerCommit bot <commit-bot@chromium.org>
Mon, 1 Jun 2015 11:54:07 +0000 (1 11:54 +0000)
tree93294df5403ac4eb54f19f151b70959b392a1df2
parent4fbf5ea656f565a313aac29f99805552121a1003
scheduler: Refactor unit tests and shut down the scheduler in tests

This patch refactors some of the scheduler unit tests to remove
duplicated code and ensures that the renderer scheduler is shut down
after each test. A future patch will add a DCHECK that requires the
scheduler to be shut down prior to deletion to guard against stale
pointers to the Blink heap.

BUG=463143

Review URL: https://codereview.chromium.org/1165703003

Cr-Commit-Position: refs/heads/master@{#332179}
components/scheduler/renderer/renderer_scheduler_impl_unittest.cc
components/scheduler/renderer/webthread_impl_for_renderer_scheduler_unittest.cc