Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(108)

Unified Diff: ui/compositor/test/fake_compositor_lock.h

Issue 2773433003: Fix CompositorResizeLock to do something. (Closed)
Patch Set: resizelock: observer-rebase Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/compositor/compositor_unittest.cc ('k') | ui/compositor/test/fake_compositor_lock.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..d79b34fe7f034c9bfd2a7774815e646f9d13add5
--- /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,
+ base::WeakPtr<CompositorLockDelegate> delegate);
+
+ // Allow tests to cause the lock to timeout.
+ using CompositorLock::TimeoutLock;
+};
+
+} // namespace
+
+#endif // UI_COMPOSITOR_FAKE_COMPOSITOR_LOCK_H_
« no previous file with comments | « ui/compositor/compositor_unittest.cc ('k') | ui/compositor/test/fake_compositor_lock.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698