5#include "flutter/lib/ui/window/pointer_data.h"
9#include "gtest/gtest.h"
26 data.pointer_identifier = 0;
29 data.physical_delta_x = 0.0;
30 data.physical_delta_y = 0.0;
31 data.buttons = buttons;
35 data.pressure_min = 0.0;
36 data.pressure_max = 0.0;
38 data.distance_max = 0.0;
40 data.radius_major = 0.0;
41 data.radius_minor = 0.0;
42 data.radius_min = 0.0;
43 data.radius_max = 0.0;
44 data.orientation = 0.0;
46 data.platformData = 0;
47 data.scroll_delta_x = 0.0;
48 data.scroll_delta_y = 0.0;
51TEST(PointerDataPacketTest, CanGetPointerData) {
52 auto packet = std::make_unique<PointerDataPacket>(1);
56 packet->SetPointerData(0,
data);
58 PointerData data_recovered = packet->GetPointerData(0);
63TEST(PointerDataPacketTest, CanGetLength) {
64 auto packet = std::make_unique<PointerDataPacket>(6);
65 ASSERT_EQ(packet->GetLength(), (
size_t)6);
skia_private::AutoTArray< sk_sp< SkImageFilter > > filters TypedMatrix matrix TypedMatrix matrix SkScalar dx
void CreateSimpleSimulatedPointerData(PointerData &data, PointerData::Change change, int64_t device, double dx, double dy, int64_t buttons)
TEST(DisplayListComplexity, EmptyDisplayList)
DEF_SWITCHES_START aot vmservice shared library Name of the *so containing AOT compiled Dart assets for launching the service isolate vm snapshot data