Index: ui/compositor/test/fake_compositor_lock.h |
diff --git a/ui/compositor/test/fake_compositor_lock.h b/ui/compositor/test/fake_compositor_lock.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..5a5fc31cb42268f0dde59bd46530b25c7015271c |
--- /dev/null |
+++ b/ui/compositor/test/fake_compositor_lock.h |
@@ -0,0 +1,23 @@ |
+// Copyright 2017 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef UI_COMPOSITOR_FAKE_COMPOSITOR_LOCK_H_ |
+#define UI_COMPOSITOR_FAKE_COMPOSITOR_LOCK_H_ |
+ |
+#include "ui/compositor/compositor_lock.h" |
+ |
+namespace ui { |
+ |
+class FakeCompositorLock : public CompositorLock { |
+ public: |
+ explicit FakeCompositorLock(CompositorLockClient* client, |
+ CompositorLockDelegate* delegate); |
+ |
+ // Allow tests to cause the lock to timeout. |
+ using CompositorLock::TimeoutLock; |
+}; |
+ |
+} // namespace |
+ |
+#endif // UI_COMPOSITOR_FAKE_COMPOSITOR_LOCK_H_ |