| # Copyright 2021 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/drivers.gni") |
| import("//build/test.gni") |
| import("//build/testing/cc_test_executable.gni") |
| |
| cc_test_executable("usb-audio-test-bin") { |
| testonly = true |
| sources = [ "usb-audio-test.cc" ] |
| deps = [ |
| "../:shared", |
| "//sdk/lib/async-loop:async-loop-default", |
| "//sdk/lib/async_patterns/testing/cpp", |
| "//sdk/lib/component/outgoing/cpp", |
| "//sdk/lib/inspect/testing/cpp:zxtest", |
| "//src/devices/testing/mock-ddk", |
| "//src/devices/usb/lib/usb", |
| "//src/devices/usb/lib/usb-endpoint:fake-usb-endpoint-server-zxtest", |
| "//zircon/system/ulib/zxtest", |
| ] |
| |
| # TODO(https://fxbug.dev/42176699): This target uses mutable tables which are deprecated, |
| # rather than builders. |
| configs += [ "//build/cpp:fidl-wire-deprecated-mutable-tables" ] |
| } |
| |
| fuchsia_unittest_package("usb-audio-test-package") { |
| package_name = "usb-audio-test" |
| deps = [ ":usb-audio-test-bin" ] |
| test_specs = { |
| environments = basic_envs |
| log_settings = { |
| max_severity = "ERROR" |
| } |
| } |
| } |