#include "cc/input/snap_fling_controller.h"
#include <utility>
#include "cc/input/snap_fling_curve.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace cc {
namespace test {
namespace {
class MockSnapFlingClient : public SnapFlingClient { … };
class MockSnapFlingCurve : public SnapFlingCurve { … };
}
class SnapFlingControllerTest : public testing::Test { … };
TEST_F(SnapFlingControllerTest, DoesNotFilterGSBWhenIdle) { … }
TEST_F(SnapFlingControllerTest, FiltersGSUAndGSEDependingOnState) { … }
TEST_F(SnapFlingControllerTest, CreatesAndAnimatesCurveOnFirstInertialGSU) { … }
TEST_F(SnapFlingControllerTest, ScrollEndWhenHasEqualOffsetsOnInertialGSU) { … }
TEST_F(SnapFlingControllerTest, DoesNotHandleNonInertialGSU) { … }
TEST_F(SnapFlingControllerTest, AnimatesTheCurve) { … }
TEST_F(SnapFlingControllerTest, FinishesTheCurve) { … }
TEST_F(SnapFlingControllerTest, GSBNotFilteredAndResetsStateWhenActive) { … }
}
}