Use MessageLoop for CompositorTest.LocksTimeOut
commit4b4d89e3c7dd813d433f851166396bff25938b83
authorweiliangc <weiliangc@chromium.org>
Thu, 16 Apr 2015 03:18:58 +0000 (15 20:18 -0700)
committerCommit bot <commit-bot@chromium.org>
Thu, 16 Apr 2015 03:19:46 +0000 (16 03:19 +0000)
tree48dcb82a626fff1afb88a0f0a764363c27857897
parentc14db2e3373f6d246d6fef963cc84d4e02ff71c5
Use MessageLoop for CompositorTest.LocksTimeOut

Instead of TestSimpleTaskRunner, which DCHECKs when posting message
from worker thread, use MessageLoop and set a timeout that is
equivalent to CompositorLock's timemout.

BUG=473507
TEST=run w/ --ui-enable-impl-side-painting

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

Cr-Commit-Position: refs/heads/master@{#325385}
ui/compositor/compositor.cc
ui/compositor/compositor.h
ui/compositor/compositor_unittest.cc