class WebAppBase
Defined at line 86 of file ../../src/ui/tests/integration_input_tests/web-test-base/web-app-base.h
This base class serves as a bridge between the integration test and a web
application running within a Fuchsia web frame. It allows sub-class to
inject JavaScript, and use message port communication between this class and
the web app.
Protected Members
Client out_message_port_
Public Methods
void WebAppBase ()
Defined at line 73 of file ../../src/ui/tests/integration_input_tests/web-test-base/web-app-base.cc
Protected Methods
void Setup (const std::string & web_app_name, const std::string & js_code, fuchsia_web::ContextFeatureFlags context_feature_flags)
Parameters:
- `web_app_name`: only used in logs.
- `js_code`: injected to web page. It requires REGISTER_PORT/
WINDOW_RESIZED handling in receiveMessage(), see mouse-input-chromium
for example.
- `context_feature_flags`: the feature flags to create web context.
Defined at line 75 of file ../../src/ui/tests/integration_input_tests/web-test-base/web-app-base.cc
void SendMessageToWebPage (fidl::ServerEnd<fuchsia_web::MessagePort> message_port, const std::string & message)
Defined at line 171 of file ../../src/ui/tests/integration_input_tests/web-test-base/web-app-base.cc