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

Unified Diff: third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilderTest.h

Issue 2589003002: Split paint property update tests out of PaintPropertyTreeBuilderTest (Closed)
Patch Set: Rebase, minor cleanup Created 4 years 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: third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilderTest.h
diff --git a/third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilderTest.h b/third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilderTest.h
new file mode 100644
index 0000000000000000000000000000000000000000..1f936e7cb3c159df3fd94e5db7f321fdb581e5a4
--- /dev/null
+++ b/third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilderTest.h
@@ -0,0 +1,48 @@
+// Copyright 2016 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 "core/layout/LayoutTestHelper.h"
+#include "platform/testing/RuntimeEnabledFeaturesTestHelpers.h"
+#include "platform/testing/UnitTestHelpers.h"
+#include "testing/gtest/include/gtest/gtest.h"
+
+namespace blink {
+
+class TransformPaintPropertyNode;
+class ClipPaintPropertyNode;
+class ScrollPaintPropertyNode;
+class LayoutPoint;
+
+typedef bool TestParamRootLayerScrolling;
+class PaintPropertyTreeBuilderTest
+ : public ::testing::WithParamInterface<TestParamRootLayerScrolling>,
+ private ScopedSlimmingPaintV2ForTest,
+ private ScopedRootLayerScrollingForTest,
+ public RenderingTest {
+ public:
+ PaintPropertyTreeBuilderTest()
+ : ScopedSlimmingPaintV2ForTest(true),
+ ScopedRootLayerScrollingForTest(GetParam()),
+ RenderingTest(SingleChildFrameLoaderClient::create()) {}
+
+ protected:
+ void loadTestData(const char* fileName);
+
+ // The following helpers return paint property nodes associated with the main
+ // FrameView, accounting for differences from the RootLayerScrolls setting.
+ const TransformPaintPropertyNode* framePreTranslation();
+ const TransformPaintPropertyNode* frameScrollTranslation();
+ const ClipPaintPropertyNode* frameContentClip();
+ const ScrollPaintPropertyNode* frameScroll(FrameView* = nullptr);
+
+ // Return the local border box's paint offset. For more details, see
+ // ObjectPaintProperties::localBorderBoxProperties().
+ LayoutPoint paintOffset(const LayoutObject*);
+
+ private:
+ void SetUp() override;
+ void TearDown() override;
+};
+
+} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/core/BUILD.gn ('k') | third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilderTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698