Ensure tests have an active task runner
commit4bd880a24eb013ea4c18fed29c83b8931828a5e5
authorskyostil <skyostil@chromium.org>
Mon, 11 May 2015 13:05:47 +0000 (11 06:05 -0700)
committerCommit bot <commit-bot@chromium.org>
Mon, 11 May 2015 13:06:01 +0000 (11 13:06 +0000)
treedddbef624c886ff7e116f57e0b898e6ccfb73e83
parentce97cb6b51deeb3d64fd7191d8d631244606c945
Ensure tests have an active task runner

This patch modifies a number of tests to have a more realistic threading set-up by either:

  a) adding a TestBrowserThreadBundle
  b) constructing any existing TestBrowserThreadBundle earlier or
  c) adding a MessageLoop as appropriate.

This makes it possible to later migrate ipc/ from MessageLoopProxy over to
ThreadTaskRunnerHandle, which requires an active task runner on the current thread.

BUG=465354
TBR=sievers@chromium.org

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

Cr-Commit-Position: refs/heads/master@{#329146}
content/child/indexed_db/indexed_db_dispatcher_unittest.cc
content/child/indexed_db/webidbcursor_impl_unittest.cc
content/renderer/gpu/queue_message_swap_promise_unittest.cc