blob: a4c8395a5ca8d124dc2b20f10556b154b0c3d141 [file] [log] [blame]
# Copyright 2020 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("tests") {
testonly = true
public_deps = [ ":input-report-reader-test" ]
}
fuchsia_unittest_package("input-report-reader-test") {
deps = [ ":integration_tests" ]
}
executable("integration_tests") {
testonly = true
sources = [ "integration_tests.cc" ]
deps = [
":mock_device_watcher",
"//sdk/fidl/fuchsia.input.report:fuchsia.input.report_llcpp",
"//sdk/fidl/fuchsia.ui.input",
"//src/lib/ddk",
"//src/lib/fxl/test:gtest_main",
"//src/lib/testing/loop_fixture",
"//src/ui/input/lib/hid-input-report",
"//src/ui/input/testing/fake_input_report_device",
"//src/ui/lib/input_report_reader",
"//src/ui/testing:mock_input_device",
"//zircon/system/ulib/fidl-async:fidl-async-cpp",
"//zircon/system/ulib/hid",
"//zircon/system/ulib/hid-parser",
]
}
source_set("mock_device_watcher") {
sources = [
"mock_device_watcher.cc",
"mock_device_watcher.h",
]
deps = [
"//src/lib/fxl",
"//zircon/system/ulib/hid-parser",
"//zircon/system/ulib/zx",
]
}