#include <portable_ui_test.h>
Public Member Functions | |
| void | SetUp (bool build_realm=true) |
| void | BuildRealm () |
| void | LaunchClient () |
| void | LaunchClientWithEmbeddedView () |
| bool | HasViewConnected (zx_koid_t view_ref_koid) |
| void | RegisterTouchScreen () |
| void | RegisterMouse () |
| void | RegisterKeyboard () |
| void | InjectTap (int32_t x, int32_t y) |
| void | SimulateMouseEvent (std::vector< fuchsia::ui::test::input::MouseButton > pressed_buttons, int movement_x, int movement_y) |
| void | SimulateMouseScroll (std::vector< fuchsia::ui::test::input::MouseButton > pressed_buttons, int scroll_x, int scroll_y, bool use_physical_units=false) |
| void | SimulateTextEntry (std::string text) |
Static Public Attributes | |
| static constexpr auto | kVulkanLoaderServiceName |
| static constexpr auto | kPosixSocketProviderName |
| static constexpr auto | kPointerInjectorRegistryName |
| static constexpr auto | kTestUIStack = "ui" |
| static constexpr auto | kTestUIStackRef |
| static constexpr auto | kFlutterJitRunner = "flutter_jit_runner" |
| static constexpr auto | kFlutterJitRunnerRef |
| static constexpr auto | kFlutterJitRunnerUrl |
| static constexpr auto | kFlutterRunnerEnvironment = "flutter_runner_env" |
Protected Member Functions | |
| component_testing::RealmBuilder * | realm_builder () |
| component_testing::RealmRoot * | realm_root () |
| int | touch_injection_request_count () const |
Protected Attributes | |
| uint32_t | display_width_ = 0 |
| uint32_t | display_height_ = 0 |
Definition at line 24 of file portable_ui_test.h.
| void fuchsia_test_utils::PortableUITest::BuildRealm | ( | ) |
Definition at line 44 of file portable_ui_test.cc.
Referenced by SetUp().
| bool fuchsia_test_utils::PortableUITest::HasViewConnected | ( | zx_koid_t | view_ref_koid | ) |
Definition at line 143 of file portable_ui_test.cc.
References fuchsia_test_utils::CheckViewExistsInSnapshot().
Referenced by LaunchClient().
| void fuchsia_test_utils::PortableUITest::InjectTap | ( | int32_t | x, |
| int32_t | y | ||
| ) |
Definition at line 277 of file portable_ui_test.cc.
| void fuchsia_test_utils::PortableUITest::LaunchClient | ( | ) |
Definition at line 148 of file portable_ui_test.cc.
References FML_LOG, and HasViewConnected().
Referenced by LaunchClientWithEmbeddedView().
| void fuchsia_test_utils::PortableUITest::LaunchClientWithEmbeddedView | ( | ) |
Definition at line 178 of file portable_ui_test.cc.
References FML_LOG, if(), LaunchClient(), and view.
|
inlineprotected |
Definition at line 99 of file portable_ui_test.h.
|
inlineprotected |
Definition at line 100 of file portable_ui_test.h.
| void fuchsia_test_utils::PortableUITest::RegisterKeyboard | ( | ) |
Definition at line 258 of file portable_ui_test.cc.
References FML_LOG.
| void fuchsia_test_utils::PortableUITest::RegisterMouse | ( | ) |
Definition at line 240 of file portable_ui_test.cc.
References FML_LOG.
| void fuchsia_test_utils::PortableUITest::RegisterTouchScreen | ( | ) |
Definition at line 221 of file portable_ui_test.cc.
References FML_LOG.
| void fuchsia_test_utils::PortableUITest::SetUp | ( | bool | build_realm = true | ) |
Definition at line 35 of file portable_ui_test.cc.
References BuildRealm().
| void fuchsia_test_utils::PortableUITest::SimulateMouseEvent | ( | std::vector< fuchsia::ui::test::input::MouseButton > | pressed_buttons, |
| int | movement_x, | ||
| int | movement_y | ||
| ) |
Definition at line 291 of file portable_ui_test.cc.
References FML_LOG.
| void fuchsia_test_utils::PortableUITest::SimulateMouseScroll | ( | std::vector< fuchsia::ui::test::input::MouseButton > | pressed_buttons, |
| int | scroll_x, | ||
| int | scroll_y, | ||
| bool | use_physical_units = false |
||
| ) |
Definition at line 306 of file portable_ui_test.cc.
References FML_LOG.
| void fuchsia_test_utils::PortableUITest::SimulateTextEntry | ( | std::string | text | ) |
Definition at line 327 of file portable_ui_test.cc.
|
inlineprotected |
Definition at line 105 of file portable_ui_test.h.
|
protected |
Definition at line 103 of file portable_ui_test.h.
|
protected |
Definition at line 102 of file portable_ui_test.h.
|
staticconstexpr |
Definition at line 39 of file portable_ui_test.h.
|
staticconstexpr |
Definition at line 40 of file portable_ui_test.h.
|
staticconstexpr |
Definition at line 42 of file portable_ui_test.h.
|
staticconstexpr |
Definition at line 45 of file portable_ui_test.h.
|
staticconstexpr |
Definition at line 32 of file portable_ui_test.h.
|
staticconstexpr |
Definition at line 30 of file portable_ui_test.h.
|
staticconstexpr |
Definition at line 36 of file portable_ui_test.h.
|
staticconstexpr |
Definition at line 37 of file portable_ui_test.h.
|
staticconstexpr |
Definition at line 28 of file portable_ui_test.h.