#include "cc/input/scroll_snap_data.h"
#include <limits>
#include <memory>
#include "cc/input/snap_selection_strategy.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace cc {
Type;
class ScrollSnapDataTest : public testing::Test { … };
TEST_F(ScrollSnapDataTest, StartAlignmentCalculation) { … }
TEST_F(ScrollSnapDataTest, CenterAlignmentCalculation) { … }
TEST_F(ScrollSnapDataTest, EndAlignmentCalculation) { … }
TEST_F(ScrollSnapDataTest, UnreachableSnapPositionCalculation) { … }
TEST_F(ScrollSnapDataTest, FindsClosestSnapPositionIndependently) { … }
TEST_F(ScrollSnapDataTest, FindsClosestSnapPositionOnAxisValueBoth) { … }
TEST_F(ScrollSnapDataTest, DoesNotSnapOnNonScrolledAxis) { … }
TEST_F(ScrollSnapDataTest, DoesNotSnapOnNonVisibleAreas) { … }
TEST_F(ScrollSnapDataTest, SnapOnClosestAxisFirstIfVisibilityConflicts) { … }
TEST_F(ScrollSnapDataTest, DoesNotSnapToPositionsOutsideProximityRange) { … }
TEST_F(ScrollSnapDataTest, MandatoryReturnsToCurrentIfNoValidAreaForward) { … }
TEST_F(ScrollSnapDataTest, MandatorySnapsBackwardIfNoValidAreaForward) { … }
TEST_F(ScrollSnapDataTest, ShouldNotPassScrollSnapStopAlwaysElement) { … }
TEST_F(ScrollSnapDataTest, SnapStopAlwaysOverridesCoveringSnapArea) { … }
TEST_F(ScrollSnapDataTest, SnapStopAlwaysInReverseDirection) { … }
TEST_F(ScrollSnapDataTest, SnapStopAlwaysNotInterferingWithDirectionStrategy) { … }
TEST_F(ScrollSnapDataTest, SnapToOneTargetElementOnX) { … }
TEST_F(ScrollSnapDataTest, SnapToOneTargetElementOnY) { … }
TEST_F(ScrollSnapDataTest, SnapToTwoTargetElementsMutualVisible) { … }
TEST_F(ScrollSnapDataTest, SnapToTwoTargetElementsNotMutualVisible) { … }
TEST_F(ScrollSnapDataTest, SnapToFocusedElementHorizontal) { … }
TEST_F(ScrollSnapDataTest, SnapToFocusedElementVertical) { … }
TEST_F(ScrollSnapDataTest, SnapToFocusedElementBoth) { … }
TEST_F(ScrollSnapDataTest, ReportCoveringArea) { … }
TEST_F(ScrollSnapDataTest, CoveringWithOverlap1) { … }
TEST_F(ScrollSnapDataTest, CoveringWithOverlap2) { … }
}