| # Copyright 2018 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("//src/media/audio/hardware.gni") |
| |
| fuchsia_unittest_package("audio_core_hardware_tests") { |
| manifest = "meta/audio_core_hardware_tests.cmx" |
| deps = [ ":audio_core_hardware_tests_bin" ] |
| test_specs = { |
| # By definition this validates software that requires real audio input hardware. |
| environments = built_in_input_hardware_envs |
| } |
| } |
| |
| executable("audio_core_hardware_tests_bin") { |
| testonly = true |
| output_name = "audio_core_hardware_tests" |
| |
| sources = [ |
| "audio_core_hardware_test.cc", |
| "audio_core_hardware_test.h", |
| ] |
| |
| deps = [ |
| "//sdk/fidl/fuchsia.media", |
| "//sdk/lib/sys/cpp", |
| "//sdk/lib/syslog/cpp", |
| "//src/lib/fxl/test:gtest_main", |
| "//src/lib/fxl/test:test_settings", |
| "//src/media/audio/lib/test:test_fixture", |
| "//zircon/system/ulib/fzl", |
| ] |
| |
| # TODO(fxbug.dev/58162): delete the below and fix compiler warnings |
| configs += [ "//build/config:Wno-conversion" ] |
| } |