chromium/third_party/blink/renderer/platform/graphics/paint/cull_rect_test.cc

// Copyright 2014 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "third_party/blink/renderer/platform/graphics/paint/cull_rect.h"

#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/renderer/platform/testing/paint_property_test_helpers.h"
#include "third_party/blink/renderer/platform/testing/runtime_enabled_features_test_helpers.h"
#include "third_party/blink/renderer/platform/transforms/affine_transform.h"
#include "ui/gfx/geometry/rect_f.h"

namespace blink {

class CullRectTest : public testing::Test,
                     public testing::WithParamInterface<bool>,
                     private ScopedDynamicScrollCullRectExpansionForTest {};

INSTANTIATE_TEST_SUITE_P();

TEST_P(CullRectTest, IntersectsRect) {}

TEST_P(CullRectTest, IntersectsTransformed) {}

TEST_P(CullRectTest, Infinite) {}

TEST_P(CullRectTest, Move) {}

TEST_P(CullRectTest, MoveInfinite) {}

TEST_P(CullRectTest, ApplyTransform) {}

TEST_P(CullRectTest, ApplyTransformInfinite) {}

TEST_P(CullRectTest, ApplyScrollTranslationPartialScrollingContents1) {}

TEST_P(CullRectTest, ApplyScrollTranslationPartialScrollingContents2) {}

TEST_P(CullRectTest,
       ApplyScrollTranslationPartialScrollingContentsExpansionRatio) {}

TEST_P(CullRectTest,
       ApplyNonCompositedScrollTranslationPartialScrollingContents1) {}

TEST_P(CullRectTest,
       ApplyNonCompositedScrollTranslationPartialScrollingContents2) {}

TEST_P(CullRectTest,
       ApplyScrollTranslationPartialScrollingContentsWithoutExpansion) {}

TEST_P(CullRectTest, ApplyScrollTranslationNoIntersectionWithContainerRect) {}

TEST_P(CullRectTest,
       ApplyNonCompositedScrollTranslationNoIntersectionWithContainerRect) {}

TEST_P(CullRectTest, ApplyScrollTranslationWholeScrollingContents) {}

TEST_P(CullRectTest,
       ApplyNonCompositedScrollTranslationWholeScrollingContents) {}

TEST_P(CullRectTest,
       ApplyScrollTranslationWholeScrollingContentsWithoutExpansion) {}

TEST_P(CullRectTest, ChangedEnoughEmpty) {}

TEST_P(CullRectTest, ChangedNotEnough) {}

TEST_P(CullRectTest, ChangedEnoughOnMovement) {}

TEST_P(CullRectTest, ChangedEnoughNewRectTouchingEdge) {}

TEST_P(CullRectTest, ChangedEnoughOldRectTouchingEdge) {}

TEST_P(CullRectTest, ChangedEnoughNotExpanded) {}

TEST_P(CullRectTest, ApplyPaintPropertiesWithoutClipScroll) {}

TEST_P(CullRectTest, SingleScrollWholeCompsitedScrollingContents) {}

TEST_P(CullRectTest, ApplyTransformsWithOrigin) {}

TEST_P(CullRectTest, SingleScrollPartialScrollingContents) {}

TEST_P(CullRectTest, TransformUnderScrollTranslation) {}

TEST_P(CullRectTest, TransformEscapingScroll) {}

TEST_P(CullRectTest, SmallScrollContentsAfterBigScrollContents) {}

TEST_P(CullRectTest, BigScrollContentsAfterSmallScrollContents) {}

TEST_P(CullRectTest, NonCompositedTransformUnderClip) {}

TEST_P(CullRectTest, CompositedTranslationUnderClip) {}

TEST_P(CullRectTest, CompositedTransformUnderClipWithoutExpansion) {}

TEST_P(CullRectTest, ClipAndCompositedScrollAndClip) {}

// Test for multiple clips (e.g., overflow clip and inner border radius)
// associated with the same scroll translation.
TEST_P(CullRectTest, MultipleClips) {}

TEST_P(CullRectTest, ClipWithNonIntegralOffsetAndZeroSize) {}

TEST_P(CullRectTest, ScrollableAlongOneAxisWithClippedInput) {}

TEST_P(CullRectTest, IntersectsVerticalRange) {}

TEST_P(CullRectTest, IntersectsHorizontalRange) {}

TEST_P(CullRectTest, TransferExpansionOutsetY) {}

TEST_P(CullRectTest, TransferExpansionOutsetX) {}

TEST_P(CullRectTest, TransferExpansionOutsetBlocked) {}

}  // namespace blink