class SemanticsIntegrationTestV2

Defined at line 63 of file ../../src/ui/a11y/lib/semantics/tests/semantics_integration_test_fixture.h

Public Members

static const auto kSemanticsManager
static const auto kSemanticsManagerRef

Public Methods

void SetUp ()

Defined at line 66 of file ../../src/ui/a11y/lib/semantics/tests/semantics_integration_test_fixture.cc

void SemanticsIntegrationTestV2 ()

Defined at line 68 of file ../../src/ui/a11y/lib/semantics/tests/semantics_integration_test_fixture.h

void ~SemanticsIntegrationTestV2 ()

Defined at line 70 of file ../../src/ui/a11y/lib/semantics/tests/semantics_integration_test_fixture.h

void ConfigureRealm ()

Defined at line 75 of file ../../src/ui/a11y/lib/semantics/tests/semantics_integration_test_fixture.h

void TearDown ()

Defined at line 90 of file ../../src/ui/a11y/lib/semantics/tests/semantics_integration_test_fixture.cc

float ExpectedPixelScaleForDisplayPixelDensity (float display_pixel_density)

Returns the expected pixel scale factor observed by the client view with

the given `display_pixel_density`.

Protected Methods

sys::ComponentContext * context ()

Defined at line 82 of file ../../src/ui/a11y/lib/semantics/tests/semantics_integration_test_fixture.h

a11y::ViewManager * view_manager ()

Defined at line 83 of file ../../src/ui/a11y/lib/semantics/tests/semantics_integration_test_fixture.h

std::optional<Realm> & realm ()

Defined at line 84 of file ../../src/ui/a11y/lib/semantics/tests/semantics_integration_test_fixture.h

sys::ServiceDirectory * svc ()

Defined at line 85 of file ../../src/ui/a11y/lib/semantics/tests/semantics_integration_test_fixture.h

zx_koid_t view_ref_koid ()

Defined at line 86 of file ../../src/ui/a11y/lib/semantics/tests/semantics_integration_test_fixture.h

void SetupScene ()

Initializes the scene, and waits for the client view to render.

Defined at line 120 of file ../../src/ui/a11y/lib/semantics/tests/semantics_integration_test_fixture.cc

const Node * FindNodeWithLabel (const Node * node, zx_koid_t view_ref_koid, std::string label)

Recursively traverses the node hierarchy, rooted at |node|, to find the first descendant

with |label|.

Defined at line 129 of file ../../src/ui/a11y/lib/semantics/tests/semantics_integration_test_fixture.cc

a11y::SemanticTransform GetTransformForNode (zx_koid_t view_ref_koid, uint32_t node_id)

Get the transform between the view's local space and the node's local space.

Defined at line 155 of file ../../src/ui/a11y/lib/semantics/tests/semantics_integration_test_fixture.cc

fuchsia::math::PointF CalculateCenterOfSemanticNodeBoundingBoxCoordinate (zx_koid_t view_ref_koid, const fuchsia::accessibility::semantics::Node * node)

Calculates the point in the view's local space corresponding to the point at the center of the

semantic node's bounding box.

Defined at line 208 of file ../../src/ui/a11y/lib/semantics/tests/semantics_integration_test_fixture.cc

std::optional<uint32_t> HitTest (zx_koid_t view_ref_koid, fuchsia::math::PointF target)

Perform a hit test against the target node and return the node ID of the node (if any) that is

hit.

Defined at line 191 of file ../../src/ui/a11y/lib/semantics/tests/semantics_integration_test_fixture.cc

bool PerformAccessibilityAction (zx_koid_t view_ref_koid, uint32_t node_id, fuchsia::accessibility::semantics::Action action)

Perform an accessibility action against the target node and return whether or not the action

was handled

Defined at line 233 of file ../../src/ui/a11y/lib/semantics/tests/semantics_integration_test_fixture.cc

void WaitForScaleFactor ()

Waits for the root semantic node's transform to include a scale of 1 /

expected_scale_factor.

This scale factor is required for hit testing and scrolling, but may not be

present in the first committed version of the semantic tree. So, we should

gate spatial semantics tests on receipt of the correct scale factor.

Defined at line 243 of file ../../src/ui/a11y/lib/semantics/tests/semantics_integration_test_fixture.cc