chromium/ui/events/blink/fling_booster_unittest.cc

// Copyright 2017 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/blink/fling_booster.h"

#include <memory>

#include "base/test/simple_test_tick_clock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/events/base_event_utils.h"
#include "ui/events/event_modifiers.h"

WebGestureDevice;
WebGestureEvent;
WebInputEvent;
Vector2dF;

namespace ui {
namespace test {

static constexpr base::TimeDelta kEventDelta =;

// Constants from fling_booster.cc
static constexpr double kMinBoostScrollSpeed =;
static constexpr double kMinBoostFlingSpeed =;
static constexpr base::TimeDelta kFlingBoostTimeoutDelay =;

class FlingBoosterTest : public testing::Test {};

TEST_F(FlingBoosterTest, FlingBoostBasic) {}

TEST_F(FlingBoosterTest, FlingBoostProgressedFling) {}

TEST_F(FlingBoosterTest, NoFlingBoostIfScrollDelayed) {}

TEST_F(FlingBoosterTest, NoFlingBoostIfBoostTooSlow) {}

TEST_F(FlingBoosterTest, NoFlingBoostIfPreviousStartVelocityTooSlow) {}

TEST_F(FlingBoosterTest, NoFlingBoostIfCurrentVelocityTooSlow) {}

TEST_F(FlingBoosterTest, NoFlingBoostIfFlingInDifferentDirection) {}

TEST_F(FlingBoosterTest, NoFlingBoostIfScrollInDifferentDirection) {}

TEST_F(FlingBoosterTest, NoFlingBoostIfPreventBoostingFlagIsSet) {}

TEST_F(FlingBoosterTest, NoFlingBoostIfDifferentFlingModifiers) {}

TEST_F(FlingBoosterTest, NoFlingBoostIfDifferentFlingSourceDevices) {}

// Ensure a scroll starting after the boosting cutoff time doesn't extend the
// timeout.
TEST_F(FlingBoosterTest, NoFlingBoostIfScrollBeginPastCutoffTime) {}

}  // namespace test
}  // namespace ui