chromium/ui/events/gestures/motion_event_aura_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 "ui/events/gestures/motion_event_aura.h"

#include "base/numerics/angle_conversions.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/events/event.h"
#include "ui/events/test/motion_event_test_utils.h"

namespace {

ui::TouchEvent TouchWithType(ui::EventType type, int id) {}

ui::TouchEvent TouchWithPosition(ui::EventType type,
                                 int id,
                                 float x,
                                 float y,
                                 float raw_x,
                                 float raw_y) {}

ui::TouchEvent TouchWithTapParams(ui::EventType type,
                                 int id,
                                 float radius_x,
                                 float radius_y,
                                 float rotation_angle,
                                 float pressure) {}

base::TimeTicks MsToTicks(int ms) {}

ui::TouchEvent TouchWithTime(ui::EventType type, int id, int ms) {}

}  // namespace

namespace ui {

TEST(MotionEventAuraTest, PointerCountAndIds) {}

TEST(MotionEventAuraTest, GetActionIndexAfterRemoval) {}

TEST(MotionEventAuraTest, PointerLocations) {}

TEST(MotionEventAuraTest, TapParams) {}

TEST(MotionEventAuraTest, Timestamps) {}

TEST(MotionEventAuraTest, CachedAction) {}

TEST(MotionEventAuraTest, Cancel) {}

TEST(MotionEventAuraTest, ToolType) {}

TEST(MotionEventAuraTest, Flags) {}

TEST(MotionEventAuraTest, IgnoresRedundantPresses) {}

TEST(MotionEventAuraTest, IgnoresEventsWithoutPress) {}

TEST(MotionEventAuraTest, IgnoresStationaryMoves) {}

// Test after converting touch events into motion events, motion events should
// have the same unique_event_id as touch events.
TEST(MotionEventAuraTest, UniqueEventID) {}

// If we have too many active touches, start to ignore new ones.
TEST(MotionEventAuraTest, IgnoresTouchesOverCapacity) {}

TEST(MotionEventAuraTest, PenRadiusDefault) {}

}  // namespace ui