| # 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/bazel/bazel_fuchsia_test_package.gni") |
| import("//build_overrides/pigweed.gni") |
| import("$dir_pw_unit_test/test.gni") |
| |
| dir_public_sco = "../public/pw_bluetooth_sapphire/internal/host/sco" |
| |
| pw_source_set("sco") { |
| public = [ |
| "$dir_public_sco/sco.h", |
| "$dir_public_sco/sco_connection.h", |
| "$dir_public_sco/sco_connection_manager.h", |
| ] |
| |
| sources = [ |
| "sco_connection.cc", |
| "sco_connection_manager.cc", |
| ] |
| |
| public_deps = [ |
| "$dir_pw_third_party/fuchsia:fit", |
| "//src/connectivity/bluetooth/core/bt-host/common", |
| "//src/connectivity/bluetooth/core/bt-host/hci", |
| "//src/connectivity/bluetooth/core/bt-host/transport", |
| ] |
| } |
| |
| pw_test("tests") { |
| sources = [ |
| "sco_connection_manager_test.cc", |
| "sco_connection_test.cc", |
| ] |
| |
| deps = [ |
| ":sco", |
| "//src/connectivity/bluetooth/core/bt-host/hci:testing", |
| "//src/connectivity/bluetooth/core/bt-host/testing", |
| "//src/connectivity/bluetooth/core/bt-host/transport:testing", |
| ] |
| |
| test_main = "//src/connectivity/bluetooth/core/bt-host/testing:gtest_main" |
| } |
| |
| bazel_fuchsia_test_package("test_pkg") { |
| test_package_name = "sco_tests" |
| test_component_names = [ "sco_test_autogen_cml" ] |
| } |