blob: a7f332c6c1b0aa38c1a03e1f008e343ea704e9ab [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")
group("conformance") {
testonly = true
deps = [
":mouse-conformance-test",
":touch-conformance-test",
]
}
############# TOUCH CONFORMANCE TEST #############
executable("touch-validator-bin") {
testonly = true
sources = [ "touch-validator.cc" ]
output_name = "touch-validator"
deps = [
"//sdk/fidl/fuchsia.ui.pointer:fuchsia.ui.pointer_hlcpp",
"//sdk/fidl/fuchsia.ui.test.conformance:fuchsia.ui.test.conformance_hlcpp",
"//sdk/fidl/fuchsia.ui.test.context:fuchsia.ui.test.context_hlcpp",
"//sdk/fidl/fuchsia.ui.test.input:fuchsia.ui.test.input_hlcpp",
"//sdk/lib/sys/cpp",
"//src/lib/fxl/test:gtest_main",
"//src/lib/testing/loop_fixture",
"//third_party/googletest:gtest",
"//zircon/system/ulib/async-loop:async-loop-cpp",
"//zircon/system/ulib/async-loop:async-loop-default",
]
}
fuchsia_component("touch-validator") {
testonly = true
manifest = "meta/touch-validator.cml"
deps = [ ":touch-validator-bin" ]
}
fuchsia_test_component("touch-conformance-test-component") {
testonly = true
component_name = "touch-conformance-test"
manifest = "meta/touch-conformance-test.cml"
}
fuchsia_test_package("touch-conformance-test") {
test_components = [ ":touch-conformance-test-component" ]
deps = [
":touch-validator",
"//src/ui/testing/context:ui-context-factory-component",
]
test_specs = {
log_settings = {
max_severity = "ERROR"
}
environments = [
{
dimensions = {
# Ensure the device has Vulkan.
device_type = "AEMU"
}
},
]
}
}
############# MOUSE CONFORMANCE TEST #############
executable("mouse-validator-bin") {
testonly = true
sources = [ "mouse-validator.cc" ]
output_name = "mouse-validator"
deps = [
"//sdk/fidl/fuchsia.ui.test.conformance:fuchsia.ui.test.conformance_hlcpp",
"//sdk/fidl/fuchsia.ui.test.context:fuchsia.ui.test.context_hlcpp",
"//sdk/fidl/fuchsia.ui.test.input:fuchsia.ui.test.input_hlcpp",
"//sdk/lib/sys/cpp",
"//src/lib/fxl/test:gtest_main",
"//src/lib/testing/loop_fixture",
"//third_party/googletest:gtest",
"//zircon/system/ulib/async-loop:async-loop-cpp",
"//zircon/system/ulib/async-loop:async-loop-default",
]
}
fuchsia_component("mouse-validator") {
testonly = true
manifest = "meta/mouse-validator.cml"
deps = [ ":mouse-validator-bin" ]
}
fuchsia_test_component("mouse-conformance-test-component") {
testonly = true
component_name = "mouse-conformance-test"
manifest = "meta/mouse-conformance-test.cml"
}
fuchsia_test_package("mouse-conformance-test") {
test_components = [ ":mouse-conformance-test-component" ]
deps = [
":mouse-validator",
"//src/ui/testing/context:ui-context-factory-component",
]
test_specs = {
log_settings = {
max_severity = "ERROR"
}
environments = [
{
dimensions = {
# Ensure the device has Vulkan.
device_type = "AEMU"
}
},
]
}
}