#include "third_party/blink/renderer/platform/widget/input/scroll_predictor.h"
#include "base/functional/bind.h"
#include "base/functional/callback_helpers.h"
#include "base/test/scoped_feature_list.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/public/common/features.h"
#include "third_party/blink/renderer/platform/widget/input/prediction/filter_factory.h"
#include "third_party/blink/renderer/platform/widget/input/prediction/predictor_factory.h"
#include "ui/base/prediction/empty_filter.h"
#include "ui/base/prediction/empty_predictor.h"
#include "ui/base/prediction/kalman_predictor.h"
#include "ui/base/prediction/least_squares_predictor.h"
#include "ui/base/prediction/linear_predictor.h"
#include "ui/base/ui_base_features.h"
namespace blink {
namespace test {
namespace {
constexpr double kEpsilon = …;
}
class ScrollPredictorTest : public testing::Test { … };
TEST_F(ScrollPredictorTest, ScrollResamplingStates) { … }
TEST_F(ScrollPredictorTest, ResampleGestureScrollEvents) { … }
TEST_F(ScrollPredictorTest, ScrollInDifferentDirection) { … }
TEST_F(ScrollPredictorTest, ScrollUpdateWithEmptyOriginalEventList) { … }
TEST_F(ScrollPredictorTest, LSQPredictorTest) { … }
TEST_F(ScrollPredictorTest, LinearResamplingPredictorTest) { … }
TEST_F(ScrollPredictorTest, ScrollPredictorNotChangeScrollDirection) { … }
TEST_F(ScrollPredictorTest, ScrollPredictorTypeSelection) { … }
TEST_F(ScrollPredictorTest, DefaultFilter) { … }
TEST_F(ScrollPredictorTest, FilteringPrediction) { … }
}
}