chromium/cc/layers/layer_impl_unittest.cc

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

#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) {}

// |LayerImpl::all_touch_action_regions_| is a cache of all regions on
// |LayerImpl::touch_action_region_| and must be invalidated on changes.
TEST_F(LayerImplScrollTest, TouchActionRegionCacheInvalidation) {}

TEST_F(LayerImplScrollTest, PushPropertiesToMirrorsCurrentScrollOffset) {}

TEST_F(LayerImplTest, JitterTest) {}

}  // namespace
}  // namespace cc