#include "cc/input/single_scrollbar_animation_controller_thinning.h"
#include "base/memory/raw_ptr.h"
#include "base/time/time.h"
#include "cc/layers/solid_color_scrollbar_layer_impl.h"
#include "cc/test/layer_tree_impl_test_base.h"
#include "cc/trees/layer_tree_impl.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/gfx/geometry/test/geometry_util.h"
_;
Bool;
Mock;
NiceMock;
namespace cc {
namespace {
const float kIdleThicknessScale = …;
class MockSingleScrollbarAnimationControllerClient
: public ScrollbarAnimationControllerClient { … };
class SingleScrollbarAnimationControllerThinningTest
: public LayerTreeImplTestBase,
public testing::Test,
public testing::WithParamInterface<bool> { … };
gfx::PointF NearScrollbar(float offset_x, float offset_y) { … }
class SingleScrollbarAnimationControllerThinningAuraTest
: public SingleScrollbarAnimationControllerThinningTest { … };
class SingleScrollbarAnimationControllerThinningFluentTest
: public SingleScrollbarAnimationControllerThinningTest { … };
TEST_P(SingleScrollbarAnimationControllerThinningTest, Idle) { … }
TEST_P(SingleScrollbarAnimationControllerThinningTest, MouseNear) { … }
TEST_P(SingleScrollbarAnimationControllerThinningTest, MouseOver) { … }
TEST_F(SingleScrollbarAnimationControllerThinningAuraTest,
MouseNearThenAwayWhileAnimating) { … }
TEST_P(SingleScrollbarAnimationControllerThinningTest,
MouseCaptureAndReleaseOutOfBar) { … }
TEST_P(SingleScrollbarAnimationControllerThinningTest,
MouseCaptureAndReleaseOnBar) { … }
TEST_P(SingleScrollbarAnimationControllerThinningTest, ThicknessAnimated) { … }
TEST_F(SingleScrollbarAnimationControllerThinningFluentTest, MouseOverTrack) { … }
TEST_F(SingleScrollbarAnimationControllerThinningFluentTest,
MouseOverHiddenBar) { … }
TEST_F(SingleScrollbarAnimationControllerThinningFluentTest,
ShowTickmarksAndReleaseOutsideBar) { … }
TEST_F(SingleScrollbarAnimationControllerThinningFluentTest,
ShowTickmarksAndMouseLeave) { … }
TEST_F(SingleScrollbarAnimationControllerThinningFluentTest,
ThickeningToThinningOnMouseLeave) { … }
TEST_F(SingleScrollbarAnimationControllerThinningFluentTest,
DoesntAnimateOnFullModeMouseLeave) { … }
TEST_P(SingleScrollbarAnimationControllerThinningTest,
HoverTrackAndMoveThumbUnderPointer) { … }
TEST_F(SingleScrollbarAnimationControllerThinningAuraTest,
DidScrollUpdateQueuesAnimations) { … }
INSTANTIATE_TEST_SUITE_P(…);
}
}