OLD | NEW |
(Empty) | |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef UI_COMPOSITOR_FAKE_COMPOSITOR_LOCK_H_ |
| 6 #define UI_COMPOSITOR_FAKE_COMPOSITOR_LOCK_H_ |
| 7 |
| 8 #include "ui/compositor/compositor_lock.h" |
| 9 |
| 10 namespace ui { |
| 11 |
| 12 class FakeCompositorLock : public CompositorLock { |
| 13 public: |
| 14 explicit FakeCompositorLock(CompositorLockClient* client, |
| 15 CompositorLockDelegate* delegate, |
| 16 base::SequencedTaskRunner* task_runner, |
| 17 base::TimeDelta timeout); |
| 18 |
| 19 // Allow tests to cause the lock to timeout. |
| 20 using CompositorLock::TimeoutLock; |
| 21 |
| 22 private: |
| 23 ~FakeCompositorLock() {} |
| 24 }; |
| 25 |
| 26 } // namespace |
| 27 |
| 28 #endif // UI_COMPOSITOR_FAKE_COMPOSITOR_LOCK_H_ |
OLD | NEW |