chromium/third_party/blink/renderer/platform/widget/input/scroll_predictor_unittest.cc

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

#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 =;

}  // namespace

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

// Check the right filter is selected
TEST_F(ScrollPredictorTest, DefaultFilter) {}

// We first send 100 events to the scroll predictor with kalman predictor
// enabled and filtering disabled and save the results.
// We then send the same events with kalman and the empty filter, we should
// expect the same results.
TEST_F(ScrollPredictorTest, FilteringPrediction) {}

}  // namespace test
}  // namespace blink