chromium/ui/base/prediction/linear_resampling_unittest.cc

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

#include "ui/base/prediction/linear_resampling.h"

#include "base/test/scoped_feature_list.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/base/prediction/input_predictor_unittest_helpers.h"
#include "ui/base/ui_base_features.h"

namespace ui {
namespace test {

class LinearResamplingTest : public InputPredictorTest {};

// Test if the output name of the predictor is taking account of the
// equation order
TEST_F(LinearResamplingTest, GetName) {}

// Test that the number of events required to compute a prediction is correct
TEST_F(LinearResamplingTest, ShouldHavePrediction) {}

TEST_F(LinearResamplingTest, ResampleMinDelta) {}

TEST_F(LinearResamplingTest, ResamplingValue) {}

TEST_F(LinearResamplingTest, ResamplingMaxPrediction) {}

TEST_F(LinearResamplingTest, ResamplingBoundLastDelta) {}

// Test time interval in first order
TEST_F(LinearResamplingTest, TimeInterval) {}

// Tests resampling with the experimental latency if +3.3ms instead of
// the default -5ms.
TEST_F(LinearResamplingTest, ResamplingValueWithExperimentalLatencyTimeBased) {}

// Tests resampling with the experimental latency if +1ms (using switch) instead
// of the default -5ms.
TEST_F(LinearResamplingTest,
       ResamplingValueWithExperimentalLatencyTimeBasedSwitch) {}

// Tests resampling with the experimental latency if +0.5*`frame_interval`
// instead of the default -5ms.
TEST_F(LinearResamplingTest, ResamplingValueWithExperimentalLatencyFrameBased) {}

// Tests resampling with the experimental latency if +0.5*`frame_interval`
// (using switch) instead of the default -5ms.
TEST_F(LinearResamplingTest,
       ResamplingValueWithExperimentalLatencyFrameBasedSwitch) {}

}  // namespace test
}  // namespace ui