#include "cc/layers/layer_impl.h"
#include <algorithm>
#include "base/memory/raw_ptr.h"
#include "cc/layers/painted_scrollbar_layer_impl.h"
#include "cc/layers/solid_color_scrollbar_layer_impl.h"
#include "cc/paint/filter_operation.h"
#include "cc/paint/filter_operations.h"
#include "cc/test/animation_test_common.h"
#include "cc/test/layer_tree_impl_test_base.h"
#include "cc/trees/layer_tree_impl.h"
#include "cc/trees/single_thread_proxy.h"
#include "cc/trees/tree_synchronizer.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/gfx/geometry/test/geometry_util.h"
namespace cc {
namespace {
#define EXECUTE_AND_VERIFY_SUBTREE_DID_NOT_CHANGE(code_to_test) …
#define EXECUTE_AND_VERIFY_SUBTREE_CHANGED(code_to_test) …
#define EXECUTE_AND_VERIFY_ONLY_LAYER_CHANGED(code_to_test) …
#define VERIFY_NEEDS_UPDATE_DRAW_PROPERTIES(code_to_test) …
#define VERIFY_NO_NEEDS_UPDATE_DRAW_PROPERTIES(code_to_test) …
class LayerImplTest : public LayerTreeImplTestBase, public ::testing::Test { … };
TEST_F(LayerImplTest, VerifyPendingLayerChangesAreTrackedProperly) { … }
TEST_F(LayerImplTest, VerifyNeedsUpdateDrawProperties) { … }
TEST_F(LayerImplTest, PerspectiveTransformHasReasonableScale) { … }
TEST_F(LayerImplTest, GetDamageReasons) { … }
class LayerImplScrollTest : public LayerImplTest { … };
class CommitToActiveTreeLayerImplScrollTest : public LayerImplScrollTest { … };
TEST_F(CommitToActiveTreeLayerImplScrollTest, ScrollByWithZeroOffset) { … }
TEST_F(CommitToActiveTreeLayerImplScrollTest, ScrollByWithNonZeroOffset) { … }
TEST_F(CommitToActiveTreeLayerImplScrollTest, ApplySentScrollsNoListener) { … }
TEST_F(CommitToActiveTreeLayerImplScrollTest, ScrollUserUnscrollableLayer) { … }
TEST_F(LayerImplScrollTest, TouchActionRegionCacheInvalidation) { … }
TEST_F(LayerImplScrollTest, PushPropertiesToMirrorsCurrentScrollOffset) { … }
TEST_F(LayerImplTest, JitterTest) { … }
}
}