blob: 9acf7625a5918b8c1b12416cfc22c8d605711a36 [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("//src/connectivity/bluetooth/core/bt-host/build/bt_gtest_package.gni")
static_library("sco") {
sources = [
"sco.h",
"sco_connection.cc",
"sco_connection.h",
"sco_connection_manager.cc",
"sco_connection_manager.h",
]
public_deps = [
"//sdk/lib/fit",
"//src/connectivity/bluetooth/core/bt-host/common",
"//src/connectivity/bluetooth/core/bt-host/hci",
"//src/connectivity/bluetooth/core/bt-host/transport",
]
}
source_set("tests") {
testonly = true
sources = [
"sco_connection_manager_unittest.cc",
"sco_connection_unittest.cc",
]
deps = [
":sco",
"//src/connectivity/bluetooth/core/bt-host/hci:testing",
"//src/connectivity/bluetooth/core/bt-host/socket",
"//src/connectivity/bluetooth/core/bt-host/testing",
"//src/connectivity/bluetooth/core/bt-host/transport:testing",
"//src/lib/testing/loop_fixture",
"//third_party/googletest:gtest",
]
# TODO(fxbug.dev/95833): This target uses the deprecated C bindings.
# Consider switching to the C++ bindings. See linked bug for details.
configs += [ "//build/c:fidl-deprecated-c-bindings" ]
}
bt_gtest_package("bt-host-sco-tests") {
deps = [ ":tests" ]
}