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

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

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.cpp
diff --git a/Source/web/tests/mocks/MockLayerTreeView.cpp b/Source/web/tests/mocks/MockLayerTreeView.cpp
new file mode 100644
index 0000000000000000000000000000000000000000..913fa5d5e8bc37af3568b69aff40541014fef5cf
--- /dev/null
+++ b/Source/web/tests/mocks/MockLayerTreeView.cpp
@@ -0,0 +1,21 @@
+// 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.
+
+#include "config.h"
+#include "web/tests/mocks/MockLayerTreeView.h"
+
+#include "public/platform/Platform.h"
+#include "public/platform/WebUnitTestSupport.h"
+
+namespace blink {
+
+MockLayerTreeView::MockLayerTreeView()
+ : m_layerTreeView(adoptPtr(Platform::current()->unitTestSupport()->createLayerTreeViewForTesting()))
+ , m_needsAnimate(false)
+ , m_deferCommits(true)
+{
+ ASSERT(m_layerTreeView);
+}
+
+} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698