class FlatlandTouchIntegrationTest

Defined at line 132 of file ../../src/ui/scenic/tests/flatland_integration_tests/flatland_touch_integration_test.cc

Protected Members

unique_ptr root_session_
ViewRef root_view_ref_
float display_width_
float display_height_
unique_ptr injector_
static const uint32_t kDeviceId
static const uint32_t kPointerId
static array kIdentityMatrix

Protected Methods

void SetUp ()

clang-format on

Defined at line 144 of file ../../src/ui/scenic/tests/flatland_integration_tests/flatland_touch_integration_test.cc

void InjectNewViewport (fupi::Viewport viewport)

Defined at line 189 of file ../../src/ui/scenic/tests/flatland_integration_tests/flatland_touch_integration_test.cc

void Inject (float x, float y, fupi::EventPhase phase)

Defined at line 205 of file ../../src/ui/scenic/tests/flatland_integration_tests/flatland_touch_integration_test.cc

void RegisterInjector (fuv::ViewRef context_view_ref, fuv::ViewRef target_view_ref, fupi::DispatchPolicy dispatch_policy, std::array<float, 9> viewport_to_context_transform)

Defined at line 227 of file ../../src/ui/scenic/tests/flatland_integration_tests/flatland_touch_integration_test.cc

void StartWatchLoop (SimpleWatcherClient<fup::TouchSource> & touch_source, std::vector<fup::TouchEvent> & out_events, fup::TouchResponseType response_type)

Starts a recursive TouchSource::Watch() loop that collects all received events into

|out_events|.

Defined at line 256 of file ../../src/ui/scenic/tests/flatland_integration_tests/flatland_touch_integration_test.cc

void ConnectChildView (FlatlandClientWithEventHandler & flatland, fuv::ViewportCreationToken && token, fuchsia_math::SizeU size, fuc::TransformId viewport_transform_id, fuc::ContentId viewport_content_id)

Defined at line 290 of file ../../src/ui/scenic/tests/flatland_integration_tests/flatland_touch_integration_test.cc

void InjectionHelper (const std::vector<std::array<float, 2>> & points, const std::vector<fup::TouchEvent> & view_events, float x_offset, float y_offset)

Injects |points| and checks that the events received in |view_events| match with an offset.

Defined at line 320 of file ../../src/ui/scenic/tests/flatland_integration_tests/flatland_touch_integration_test.cc

fuchsia_math::SizeU FullScreenSize ()

Defined at line 362 of file ../../src/ui/scenic/tests/flatland_integration_tests/flatland_touch_integration_test.cc

std::array<std::array<float, 2>, 2> FullScreenExtents ()

Defined at line 367 of file ../../src/ui/scenic/tests/flatland_integration_tests/flatland_touch_integration_test.cc