Flutter Engine
The Flutter Engine
|
#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 |
Private Member Functions | |
virtual void | ExtendRealm ()=0 |
virtual std::string | GetTestUIStackUrl ()=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.
|
privatepure virtual |
|
privatepure virtual |
bool fuchsia_test_utils::PortableUITest::HasViewConnected | ( | zx_koid_t | view_ref_koid | ) |
Definition at line 147 of file portable_ui_test.cc.
void fuchsia_test_utils::PortableUITest::InjectTap | ( | int32_t | x, |
int32_t | y | ||
) |
Definition at line 281 of file portable_ui_test.cc.
void fuchsia_test_utils::PortableUITest::LaunchClient | ( | ) |
Definition at line 152 of file portable_ui_test.cc.
void fuchsia_test_utils::PortableUITest::LaunchClientWithEmbeddedView | ( | ) |
Definition at line 182 of file portable_ui_test.cc.
|
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 262 of file portable_ui_test.cc.
void fuchsia_test_utils::PortableUITest::RegisterMouse | ( | ) |
Definition at line 244 of file portable_ui_test.cc.
void fuchsia_test_utils::PortableUITest::RegisterTouchScreen | ( | ) |
Definition at line 225 of file portable_ui_test.cc.
void fuchsia_test_utils::PortableUITest::SetUp | ( | bool | build_realm = true | ) |
Definition at line 35 of file portable_ui_test.cc.
void fuchsia_test_utils::PortableUITest::SimulateMouseEvent | ( | std::vector< fuchsia::ui::test::input::MouseButton > | pressed_buttons, |
int | movement_x, | ||
int | movement_y | ||
) |
Definition at line 295 of file portable_ui_test.cc.
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 310 of file portable_ui_test.cc.
void fuchsia_test_utils::PortableUITest::SimulateTextEntry | ( | std::string | text | ) |
Definition at line 331 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.