| # 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") |
| import("//build/test.gni") |
| |
| test("sa-unittest-bin") { |
| configs += [ "//build/config:all_source" ] |
| testonly = true |
| sources = [ "sas-test.cc" ] |
| deps = [ |
| "//sdk/fidl/fuchsia.device:fuchsia.device_cpp", |
| "//sdk/fidl/fuchsia.hardware.audio:fuchsia.hardware.audio_cpp", |
| "//sdk/lib/inspect/testing/cpp:zxtest", |
| "//src/devices/testing/mock-ddk", |
| "//src/lib/ddk", |
| "//src/lib/ddktl", |
| "//src/media/audio/drivers/lib/audio-driver-proto", |
| "//src/media/audio/drivers/lib/audio-proto-utils", |
| "//src/media/audio/drivers/lib/audio-utils", |
| "//src/media/audio/lib/simple-audio-stream", |
| "//zircon/system/ulib/fbl", |
| "//zircon/system/ulib/fzl", |
| "//zircon/system/ulib/inspect", |
| "//zircon/system/ulib/sync", |
| "//zircon/system/ulib/zircon-internal", |
| "//zircon/system/ulib/zx", |
| "//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("test-package") { |
| package_name = "sa-unittest" |
| deps = [ ":sa-unittest-bin" ] |
| test_specs = { |
| environments = basic_envs |
| log_settings = { |
| max_severity = "ERROR" |
| } |
| } |
| } |