| # Copyright 2019 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/test.gni") |
| |
| test("hid-driver-test") { |
| sources = [ "hid-driver.cc" ] |
| deps = [ |
| "//sdk/fidl/fuchsia.driver.test:fuchsia.driver.test_hlcpp", |
| "//sdk/fidl/fuchsia.hardware.hidctl:fuchsia.hardware.hidctl_cpp", |
| "//sdk/fidl/fuchsia.hardware.input:fuchsia.hardware.input_cpp", |
| "//sdk/fidl/fuchsia.input.report:fuchsia.input.report_cpp", |
| "//sdk/lib/component/incoming/cpp", |
| "//sdk/lib/device-watcher/cpp", |
| "//sdk/lib/driver_test_realm/realm_builder/cpp", |
| "//sdk/lib/fdio", |
| "//src/lib/ddk", |
| "//src/ui/input/lib/hid", |
| "//zircon/system/ulib/async-loop:async-loop-cpp", |
| "//zircon/system/ulib/async-loop:async-loop-default", |
| "//zircon/system/ulib/fbl", |
| "//zircon/system/ulib/fdio-caller", |
| "//zircon/system/ulib/zx", |
| "//zircon/system/ulib/zxtest", |
| ] |
| } |
| |
| fuchsia_unittest_component("hid-driver-test-component") { |
| deps = [ ":hid-driver-test" ] |
| } |
| |
| fuchsia_test_package("hidctl-integration-test") { |
| test_components = [ ":hid-driver-test-component" ] |
| deps = [ |
| "//src/devices/misc/drivers/test-parent", |
| "//src/ui/input/drivers/hid", |
| "//src/ui/input/drivers/hid-input-report", |
| "//src/ui/input/drivers/hidctl", |
| ] |
| } |
| |
| fuchsia_test_package("hid-driver-test-package") { |
| test_components = [ ":hid-driver-test-component" ] |
| deps = [ |
| "//src/devices/misc/drivers/test-parent", |
| "//src/ui/input/drivers/hid", |
| "//src/ui/input/drivers/hid-input-report:hid-input-report-v2", |
| "//src/ui/input/drivers/hidctl", |
| ] |
| } |
| |
| group("tests") { |
| testonly = true |
| deps = [ |
| ":hid-driver-test-package", |
| ":hidctl-integration-test", |
| ] |
| } |