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

Unified Diff: Source/web/tests/mocks/MockLayerTreeView.h

Issue 1313013005: Add a test that we resume commits after inserting the body. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: remove extra incs. Created 5 years, 4 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
Index: Source/web/tests/mocks/MockLayerTreeView.h
diff --git a/Source/web/tests/mocks/MockLayerTreeView.h b/Source/web/tests/mocks/MockLayerTreeView.h
new file mode 100644
index 0000000000000000000000000000000000000000..c3fdd5bc9c7798656c05abc9219265dc1073759f
--- /dev/null
+++ b/Source/web/tests/mocks/MockLayerTreeView.h
@@ -0,0 +1,31 @@
+// Copyright 2015 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 MockLayerTreeView_h
+#define MockLayerTreeView_h
+
+#include "public/platform/WebLayerTreeView.h"
+#include "wtf/OwnPtr.h"
+
+namespace blink {
+
+class MockLayerTreeView : public WebLayerTreeView {
dcheng 2015/08/27 23:10:22 Being pedantic, these seem more like "fakes" or "s
esprehn 2015/08/28 08:31:43 We use this terminology in all our tests though, s
+public:
+ MockLayerTreeView();
+
+ void setNeedsAnimate() override { m_needsAnimate = true; }
+ bool needsAnimate() const { return m_needsAnimate; }
+
+ void setDeferCommits(bool deferCommits) override { m_deferCommits = deferCommits; }
+ bool deferCommits() const { return m_deferCommits; }
+
+private:
+ OwnPtr<WebLayerTreeView> m_layerTreeView;
+ bool m_needsAnimate;
+ bool m_deferCommits;
+};
+
+} // namespace blink
+
+#endif

Powered by Google App Engine
This is Rietveld 408576698