blob: 5c65452021576ba74108c299f6270709e98211e1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
// Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef THIRD_PARTY_BLINK_RENDERER_PLATFORM_WIDGET_INPUT_PREDICTION_INPUT_FILTER_UNITTEST_HELPERS_H_
#define THIRD_PARTY_BLINK_RENDERER_PLATFORM_WIDGET_INPUT_PREDICTION_INPUT_FILTER_UNITTEST_HELPERS_H_
#include "third_party/blink/renderer/platform/widget/input/prediction/input_filter.h"
#include "base/macros.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace blink {
namespace test {
constexpr double kEpsilon = 0.0001;
// Base class for predictor unit tests
class InputFilterTest : public testing::Test {
public:
InputFilterTest();
~InputFilterTest() override;
void TestCloneFilter();
void TestResetFilter();
protected:
std::unique_ptr<InputFilter> filter_;
DISALLOW_COPY_AND_ASSIGN(InputFilterTest);
};
} // namespace test
} // namespace blink
#endif // THIRD_PARTY_BLINK_RENDERER_PLATFORM_WIDGET_INPUT_PREDICTION_INPUT_FILTER_UNITTEST_HELPERS_H_
|