blob: ede00945a00d8cd1dbd07465a3f07ab01179d7aa [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")
source_set("socket") {
sources = [
"socket_channel_relay.h",
"socket_factory.h",
]
deps = [
"//src/connectivity/bluetooth/core/bt-host/common",
"//zircon/system/ulib/trace:trace-driver",
]
public_deps = [
"//sdk/lib/fit",
"//src/lib/fxl",
"//zircon/public/lib/zx",
]
}
source_set("tests") {
testonly = true
sources = [
"socket_channel_relay_unittest.cc",
"socket_factory_unittest.cc",
]
deps = [
":socket",
"//garnet/public/lib/gtest",
"//src/connectivity/bluetooth/core/bt-host/gap",
"//src/connectivity/bluetooth/core/bt-host/l2cap:testing",
"//third_party/googletest:gtest",
]
}
bt_gtest_package("bt-host-socket-tests") {
deps = [ ":tests" ]
}