Ladybird: Add ability to add test fixtures for LibWeb tests

This will be used to add test fixtures that use external
resources or require a specific setup.
This commit is contained in:
Andrew Kaster 2024-11-05 16:44:19 -07:00 committed by Andrew Kaster
commit ba78b294a0
Notes: github-actions[bot] 2024-11-09 20:31:06 +00:00
6 changed files with 98 additions and 0 deletions

View file

@ -24,6 +24,8 @@ class Application : public WebView::Application {
WEB_VIEW_APPLICATION(Application)
public:
~Application();
static Application& the()
{
return static_cast<Application&>(WebView::Application::the());
@ -33,6 +35,7 @@ public:
virtual void create_platform_options(WebView::ChromeOptions&, WebView::WebContentOptions&) override;
ErrorOr<void> launch_services();
ErrorOr<void> launch_test_fixtures();
static Requests::RequestClient& request_client() { return *the().m_request_client; }
static ImageDecoderClient::Client& image_decoder_client() { return *the().m_image_decoder_client; }