class UITestRealm

Defined at line 39 of file ../../src/ui/testing/ui_test_realm/ui_test_realm.h

Library class to manage test realm on behalf of UI integration test clients.

Public Methods

void ~UITestRealm ()

Defined at line 112 of file ../../src/ui/testing/ui_test_realm/ui_test_realm.h

const std::optional<component_testing::RealmRoot> & realm_root ()

Defined at line 130 of file ../../src/ui/testing/ui_test_realm/ui_test_realm.h

const Config & config ()

Defined at line 132 of file ../../src/ui/testing/ui_test_realm/ui_test_realm.h

void UITestRealm (Config config)

Defined at line 167 of file ../../src/ui/testing/ui_test_realm/ui_test_realm.cc

component_testing::Realm AddSubrealm ()

Adds a child to the realm under construction, and returns the new child.

Must NOT be called after BuildRealm().

Defined at line 196 of file ../../src/ui/testing/ui_test_realm/ui_test_realm.cc

void Build ()

Calls realm_builder_.Build();

Defined at line 468 of file ../../src/ui/testing/ui_test_realm/ui_test_realm.cc

void Teardown (component_testing::ScopedChild::TeardownCallback on_teardown_complete)

Calls realm_builder_.Teardown();

Defined at line 505 of file ../../src/ui/testing/ui_test_realm/ui_test_realm.cc

std::unique_ptr<sys::ServiceDirectory> CloneExposedServicesDirectory ()

Returns a clone of the realm's exposed services directory.

Clients should call this method once, and retain the handle returned.

MUST be called AFTER Build().

Defined at line 509 of file ../../src/ui/testing/ui_test_realm/ui_test_realm.cc

Enumerations

enum class AccessibilityOwnerType
Name Value Comments
FAKE 1

Use the fake a11y manager. Clients should prefer using the fake a11y
manager for tests that require a11y services, but do not test a11y
functionality (e.g. tests that run a chromium client).

REAL 2

Use the real a11y manager. Clients should only use the real a11y manager
for tests that exercise accessibility-specific functionality.

Defined at line 41 of file ../../src/ui/testing/ui_test_realm/ui_test_realm.h

Records