blob: 44868dc0425d6c6f755a0dcfeed25c915c0fd8d3 [file] [log] [blame]
# 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("//build/testing/cc_test_executable.gni")
cc_test_executable("display-pixel-ratio-test-bin") {
testonly = true
sources = [ "display_pixel_ratio_test.cc" ]
deps = [
"//sdk/fidl/fuchsia.ui.display.singleton:fuchsia.ui.display.singleton_hlcpp",
"//src/lib/fxl/test:gtest_main",
"//src/lib/testing/loop_fixture",
"//src/ui/a11y/testing/fidl:test.accessibility_hlcpp",
"//src/ui/testing/ui_test_manager",
"//src/ui/testing/util",
"//third_party/googletest:gmock",
"//third_party/googletest:gtest",
]
}
fuchsia_test_component("display-pixel-ratio-test-component") {
manifest = "meta/display-pixel-ratio-test.cml"
deps = [ ":display-pixel-ratio-test-bin" ]
test_type = "vulkan"
}
fuchsia_test_package("display-pixel-ratio-test") {
test_components = [ ":display-pixel-ratio-test-component" ]
test_specs = {
log_settings = {
# TODO(https://fxbug.dev/42174827): Investigate flakes and remove allowing ERROR severity.
max_severity = "ERROR"
}
environments = [
{
dimensions = {
# Ensure the device has Vulkan.
device_type = "AEMU"
}
},
]
}
}
group("tests") {
testonly = true
deps = [ ":display-pixel-ratio-test" ]
}