| # Copyright 2022 The Fuchsia Authors. All rights reserved. |
| # Use of this source code is governed by a BSD-style license that can be |
| # found in the LICENSE file. |
| |
| import("//build/components.gni") |
| import("//src/lib/vulkan/vulkan.gni") |
| |
| group("tests") { |
| testonly = true |
| public_deps = [ |
| ":web_runner_pixel_test", |
| |
| # TODO(https://fxbug.dev/42070261): These should be provided by the Product |
| # configurations on which these tests run rather than as deps. |
| # TODO(https://fxbug.dev/42070261): Should these be deps of the individual test |
| # targets above? |
| "//src/chromium:web_context_provider_for_test", |
| "//src/graphics/bin/vulkan_loader", |
| ] |
| } |
| |
| executable("web_runner_pixel_test_bin") { |
| testonly = true |
| sources = [ "web_runner_pixeltest.cc" ] |
| deps = [ |
| "//sdk/fidl/fuchsia.accessibility.semantics:fuchsia.accessibility.semantics_hlcpp", |
| "//sdk/fidl/fuchsia.buildinfo:fuchsia.buildinfo_hlcpp", |
| "//sdk/fidl/fuchsia.component:fuchsia.component_hlcpp", |
| "//sdk/fidl/fuchsia.fonts:fuchsia.fonts_hlcpp", |
| "//sdk/fidl/fuchsia.hardware.display:fuchsia.hardware.display_hlcpp", |
| "//sdk/fidl/fuchsia.input.injection:fuchsia.input.injection_hlcpp", |
| "//sdk/fidl/fuchsia.intl:fuchsia.intl_hlcpp", |
| "//sdk/fidl/fuchsia.kernel:fuchsia.kernel_hlcpp", |
| "//sdk/fidl/fuchsia.logger:fuchsia.logger_hlcpp", |
| "//sdk/fidl/fuchsia.memorypressure:fuchsia.memorypressure_hlcpp", |
| "//sdk/fidl/fuchsia.metrics:fuchsia.metrics_hlcpp", |
| "//sdk/fidl/fuchsia.net.interfaces:fuchsia.net.interfaces_hlcpp", |
| "//sdk/fidl/fuchsia.posix.socket:fuchsia.posix.socket_hlcpp", |
| "//sdk/fidl/fuchsia.process:fuchsia.process_hlcpp", |
| "//sdk/fidl/fuchsia.scheduler:fuchsia.scheduler_hlcpp", |
| "//sdk/fidl/fuchsia.tracing.provider:fuchsia.tracing.provider_hlcpp", |
| "//sdk/fidl/fuchsia.ui.app:fuchsia.ui.app_hlcpp", |
| "//sdk/fidl/fuchsia.ui.composition:fuchsia.ui.composition_hlcpp", |
| "//sdk/fidl/fuchsia.ui.input:fuchsia.ui.input_hlcpp", |
| "//sdk/fidl/fuchsia.ui.scenic:fuchsia.ui.scenic_hlcpp", |
| "//sdk/fidl/fuchsia.ui.views:fuchsia.ui.views_hlcpp", |
| "//sdk/fidl/fuchsia.vulkan.loader:fuchsia.vulkan.loader_hlcpp", |
| "//sdk/fidl/fuchsia.web:fuchsia.web_hlcpp", |
| "//src/lib/fxl/test:gtest_main", |
| "//src/lib/testing/loop_fixture", |
| "//src/ui/testing/util", |
| "//third_party/googletest:gtest", |
| ] |
| } |
| |
| fuchsia_test_component("web_runner_pixel_test_component") { |
| restricted_features = [ "allow_non_hermetic_packages" ] |
| manifest = "meta/web_runner_pixeltest.cml" |
| deps = [ |
| ":web_runner_pixel_test_bin", |
| "//src/cobalt/bin/testing/mock_cobalt", |
| "//src/connectivity/network:netstack-for-tests", |
| "//src/developer/build_info/testing:fake-build-info-component", |
| "//src/developer/memory/monitor:component", |
| "//src/fonts:font_provider_hermetic_for_test", |
| "//src/testing/fidl/intl_property_manager:intl_property_manager_component", |
| "//src/ui/bin/text:text_manager_comp", |
| |
| # Include some default config (it doesn't matter which, since we're going to override it). |
| "//src/ui/testing/test_ui_stack:flatland_scene_manager_config", |
| "//src/ui/testing/test_ui_stack:test-ui-stack-component", |
| "//src/ui/tests/integration_graphics_tests/web-pixel-tests/chromium_pixel_client:chromium_pixel_client_component", |
| "//src/ui/tests/integration_graphics_tests/web-pixel-tests/chromium_pixel_client:chromium_pixel_client_default_config", |
| "//src/ui/tests/integration_graphics_tests/web-pixel-tests/http_server:http_server_component", |
| ] |
| test_type = "system" |
| } |
| |
| fuchsia_test_package("web_runner_pixel_test") { |
| test_components = [ ":web_runner_pixel_test_component" ] |
| |
| test_specs = { |
| log_settings = { |
| max_severity = "ERROR" |
| } |
| environments = [ |
| { |
| dimensions = { |
| # Ensure the device has Vulkan. |
| device_type = "AEMU" |
| } |
| }, |
| ] |
| } |
| } |