chromium/ui/events/ozone/evdev/touch_filter/neural_stylus_palm_detection_filter_util_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/events/ozone/evdev/touch_filter/neural_stylus_palm_detection_filter_util.h"

#include <algorithm>
#include <cstdint>
#include <utility>
#include <vector>

#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/events/ozone/evdev/event_device_test_util.h"
#include "ui/events/ozone/evdev/touch_evdev_types.h"
#include "ui/events/ozone/evdev/touch_filter/palm_detection_filter.h"
#include "ui/events/ozone/evdev/touch_filter/shared_palm_detection_filter_state.h"

ElementsAre;
IsEmpty;

namespace ui {

MATCHER_P(SampleTime, time, "Does the sample have given time.") {}

class NeuralStylusPalmDetectionFilterUtilTest
    : public testing::TestWithParam<bool> {};

INSTANTIATE_TEST_SUITE_P();

TEST_P(NeuralStylusPalmDetectionFilterUtilTest, DistilledNocturneTest) {}

TEST_P(NeuralStylusPalmDetectionFilterUtilTest, NoMinorResTest) {}

TEST_P(NeuralStylusPalmDetectionFilterUtilTest, DistillerKohakuTest) {}

TEST_P(NeuralStylusPalmDetectionFilterUtilTest, DistilledLinkTest) {}

TEST_P(NeuralStylusPalmDetectionFilterUtilTest, PalmFilterSampleTest) {}

TEST_P(NeuralStylusPalmDetectionFilterUtilTest, LinkTouchscreenSampleTest) {}

TEST_P(NeuralStylusPalmDetectionFilterUtilTest, PalmFilterStrokeTest) {}

TEST_P(NeuralStylusPalmDetectionFilterUtilTest,
       PalmFilterStrokeBiggestSizeTest) {}

TEST_P(NeuralStylusPalmDetectionFilterUtilTest, UnscaledMajorMinorResolution) {}

TEST_P(NeuralStylusPalmDetectionFilterUtilTest, StrokeGetMaxMajorTest) {}

TEST_P(NeuralStylusPalmDetectionFilterUtilTest, SampleRadiusConversion) {}

TEST(PalmFilterStrokeTest, NumberOfResampledValues) {}

TEST(PalmFilterStrokeTest, ResamplingTest) {}

/**
 * There should always be at least (max_sample_count - 1) * resample_period
 * worth of samples. However, that's not sufficient. In the cases where the gap
 * between samples is very large (larger than the sample horizon), there needs
 * to be another sample in order to calculate resampled values throughout the
 * entire range.
 */
TEST(PalmFilterStrokeTest, MultipleResampledValues) {}

}  // namespace ui