| # 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/test.gni") |
| import("//zircon/system/ulib/devmgr-integration-test/isolated_devmgr.gni") |
| |
| test("hid-driver-test") { |
| configs += [ "//build/unification/config:zircon-migrated" ] |
| sources = [ "hid-driver.cc" ] |
| deps = [ |
| "//sdk/fidl/fuchsia.hardware.hidctl:fuchsia.hardware.hidctl_c", |
| "//sdk/fidl/fuchsia.hardware.input:fuchsia.hardware.input_llcpp", |
| "//sdk/lib/fdio", |
| "//src/lib/ddk", |
| "//zircon/public/lib/fbl", |
| "//zircon/public/lib/zx", |
| "//zircon/public/lib/zxtest", |
| "//zircon/system/ulib/devmgr-integration-test", |
| "//zircon/system/ulib/devmgr-launcher", |
| "//zircon/system/ulib/driver-integration-test", |
| "//zircon/system/ulib/hid", |
| ] |
| } |
| |
| isolated_devmgr_unittest_package("hid-test") { |
| package_name = "hid" |
| executable_path = "test/hid-driver-test" |
| deps = [ |
| ":hid-driver-test", |
| "//src/devices/board/drivers/integration-test", |
| "//src/devices/bus/drivers/platform", |
| "//src/ui/input/drivers/hid", |
| "//src/ui/input/drivers/hidctl", |
| ] |
| } |
| |
| group("tests") { |
| testonly = true |
| deps = [ ":hid-test" ] |
| } |