chromium/third_party/blink/renderer/core/input/pointer_event_manager_test.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 "third_party/blink/renderer/core/input/pointer_event_manager.h"

#include <limits>
#include <memory>

#include "base/task/single_thread_task_runner.h"
#include "base/test/scoped_feature_list.h"
#include "third_party/blink/renderer/core/dom/document.h"
#include "third_party/blink/renderer/core/dom/events/native_event_listener.h"
#include "third_party/blink/renderer/core/frame/local_frame.h"
#include "third_party/blink/renderer/core/html/html_element.h"
#include "third_party/blink/renderer/core/input/event_handler.h"
#include "third_party/blink/renderer/core/pointer_type_names.h"
#include "third_party/blink/renderer/core/testing/sim/sim_request.h"
#include "third_party/blink/renderer/core/testing/sim/sim_test.h"
#include "third_party/blink/renderer/platform/testing/runtime_enabled_features_test_helpers.h"
#include "third_party/blink/renderer/platform/testing/unit_test_helpers.h"
#include "ui/base/ui_base_features.h"

namespace blink {

namespace {
class CheckPointerEventListenerCallback final : public NativeEventListener {};

class PointerEventCoordinateListenerCallback final
    : public NativeEventListener {};

}  // namespace

class PointerEventManagerTest : public SimTest {};

TEST_F(PointerEventManagerTest, HasPointerCapture) {}

TEST_F(PointerEventManagerTest, PointerCancelsOfAllTypes) {}

// Tests that user activation in not triggered if Blink receives a pointerup
// event after a gesture scroll has started.  On a page w/o either pointer or
// touch event listeners, WidgetInputHandlerManager dispatches a kPointerup
// event to Blink after dispatching kPointerCausedUaAction to mark an
// ongoing scroll, see https://crbug.com/1313076.
TEST_F(PointerEventManagerTest, NoUserActivationWithPointerUpAfterCancel) {}

TEST_F(PointerEventManagerTest, PointerCancelForNonExistentid) {}

TEST_F(PointerEventManagerTest, PointerEventCoordinates) {}

TEST_F(PointerEventManagerTest, PointerEventMovements) {}

// Test that we are not losing fractions when truncating movements.
TEST_F(PointerEventManagerTest, PointerEventSmallFractionMovements) {}

TEST_F(PointerEventManagerTest, PointerRawUpdateMovements) {}

TEST_F(PointerEventManagerTest, PointerRawUpdateWithRelativeMotionEvent) {}

TEST_F(PointerEventManagerTest, PointerUnadjustedMovement) {}

PanAction;

class PanActionWidgetInputHandlerHost
    : public frame_test_helpers::TestWidgetInputHandlerHost {};

class PanActionTrackingWebFrameWidget
    : public frame_test_helpers::TestWebFrameWidget {};

class PanActionPointerEventTest : public PointerEventManagerTest {};

TEST_F(PanActionPointerEventTest, PanActionStylusWritable) {}

TEST_F(PanActionPointerEventTest, PanActionMoveCursor) {}

TEST_F(PanActionPointerEventTest, PanActionNoneAndScroll) {}

TEST_F(PanActionPointerEventTest, PanActionNotSetWhenTouchActive) {}

TEST_F(PanActionPointerEventTest, PanActionAdjustedStylusWritable) {}

TEST_F(PanActionPointerEventTest, PanActionAdjustedWithTappableNodeNearby) {}

TEST_F(PanActionPointerEventTest, PanActionAdjustedWhenZoomed) {}

TEST_F(PanActionPointerEventTest, PanActionSentAcrossFrames) {}

}  // namespace blink