blob: 7f846b9189cd077f02d912e15385f833f05e5712 [file] [log] [blame]
# Copyright 2017 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.
static_library("l2cap") {
sources = [
"channel.cc",
"channel.h",
"channel_manager.cc",
"channel_manager.h",
"fragmenter.cc",
"fragmenter.h",
"l2cap.h",
"le_signaling_channel.cc",
"le_signaling_channel.h",
"logical_link.cc",
"logical_link.h",
"pdu.cc",
"pdu.h",
"recombiner.cc",
"recombiner.h",
"sdu.h",
"signaling_channel.cc",
"signaling_channel.h",
]
deps = [
"//garnet/drivers/bluetooth/lib/hci",
"//garnet/public/lib/fxl",
]
}
source_set("testing") {
testonly = true
sources = [
"fake_channel.cc",
"fake_channel.h",
"fake_channel_test.cc",
"fake_channel_test.h",
]
deps = [
":l2cap",
"//garnet/drivers/bluetooth/lib/common",
"//garnet/public/lib/fxl",
"//third_party/gtest",
]
}
source_set("tests") {
testonly = true
sources = [
"channel_manager_unittest.cc",
"fragmenter_unittest.cc",
"le_signaling_channel_unittest.cc",
"pdu_unittest.cc",
"recombiner_unittest.cc",
"signaling_channel_unittest.cc",
]
deps = [
":l2cap",
":testing",
"//garnet/drivers/bluetooth/lib/hci",
"//garnet/drivers/bluetooth/lib/testing",
"//third_party/gtest",
]
}