chromium/third_party/blink/renderer/platform/widget/input/elastic_overscroll_controller_exponential_unittest.cc

// Copyright 2014 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/elastic_overscroll_controller_exponential.h"

#include "base/time/time.h"
#include "build/build_config.h"
#include "cc/input/input_handler.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/public/common/input/web_input_event.h"
#include "third_party/blink/public/common/input/web_mouse_wheel_event.h"

namespace blink {

Size;
Vector2dF;

namespace {

enum Phase {};

enum InertialPhaseState {};

class MockScrollElasticityHelper : public cc::ScrollElasticityHelper {};

class ElasticOverscrollControllerExponentialTest : public testing::Test {};

// Verify that stretching  occurs in one axis at a time, and that it
// is biased to the Y axis.
TEST_F(ElasticOverscrollControllerExponentialTest, Axis) {}

// Verify that we need a total overscroll delta of at least 10 in a pinned
// direction before we start stretching.
TEST_F(ElasticOverscrollControllerExponentialTest, MinimumDeltaBeforeStretch) {}

// Verify that a stretch caused by a momentum scroll will switch to the
// animating mode, where input events are ignored, and the stretch is updated
// while animating.
TEST_F(ElasticOverscrollControllerExponentialTest, MomentumAnimate) {}

// Verify that a stretch opposing a scroll is correctly resolved.
TEST_F(ElasticOverscrollControllerExponentialTest, ReconcileStretchAndScroll) {}

// Verify that stretching  happens when the area is user scrollable.
TEST_F(ElasticOverscrollControllerExponentialTest,
       UserScrollableRequiredForStretch) {}

TEST_F(ElasticOverscrollControllerExponentialTest, UserScrollableSingleAxis) {}

// Verify that OverscrollBehaviorTypeNone disables the stretching on the
// specified axis.
TEST_F(ElasticOverscrollControllerExponentialTest, OverscrollBehavior) {}

// Test overscroll in non-scrollable direction.
TEST_F(ElasticOverscrollControllerExponentialTest,
       OverscrollBehaviorNonScrollable) {}

}  // namespace
}  // namespace blink