#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 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(MotionEventAuraTest, UniqueEventID) { … }
TEST(MotionEventAuraTest, IgnoresTouchesOverCapacity) { … }
TEST(MotionEventAuraTest, PenRadiusDefault) { … }
}