chromium/third_party/blink/renderer/platform/widget/input/input_event_prediction_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/input_event_prediction.h"

#include <string>

#include "base/test/scoped_feature_list.h"
#include "base/time/time.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/public/common/features.h"
#include "third_party/blink/public/common/input/synthetic_web_input_event_builders.h"
#include "ui/base/ui_base_features.h"

namespace blink {

PredictorType;

class InputEventPredictionTest : public testing::Test {};

TEST_F(InputEventPredictionTest, PredictorType) {}

TEST_F(InputEventPredictionTest, MouseEvent) {}

TEST_F(InputEventPredictionTest, SingleTouchPoint) {}

TEST_F(InputEventPredictionTest, MouseEventTypePen) {}

TEST_F(InputEventPredictionTest, MultipleTouchPoint) {}

TEST_F(InputEventPredictionTest, TouchAndStylusResetMousePredictor) {}

// TouchScrollStarted event removes all touch points.
TEST_F(InputEventPredictionTest, TouchScrollStartedRemoveAllTouchPoints) {}

TEST_F(InputEventPredictionTest, ResamplingDisabled) {}

// Test that when dt > maxResampling, resampling is cut off .
TEST_F(InputEventPredictionTest, NoResampleWhenExceedMaxResampleTime) {}

// Test that when dt between events is 6ms, first predicted point is 6ms ahead.
TEST_F(InputEventPredictionTest, PredictedEventsTimeIntervalEqualRealEvents) {}

// Test that touch points other than kStateMove will not have predicted events.
TEST_F(InputEventPredictionTest, TouchPointStates) {}

}  // namespace blink