blob: 2e2a7db862bf703732e728c4e979adb3fdcfb6cd [file] [log] [blame]
# Copyright 2019 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("//build/rust/rustc_library.gni")
rustc_library("bt-fidl-mocks") {
with_unit_tests = true
deps = [
"//sdk/fidl/fuchsia.bluetooth:fuchsia.bluetooth-rustc",
"//sdk/fidl/fuchsia.bluetooth.gatt:fuchsia.bluetooth.gatt-rustc",
"//sdk/fidl/fuchsia.bluetooth.sys:fuchsia.bluetooth.sys-rustc",
"//src/connectivity/bluetooth/lib/fuchsia-bluetooth",
"//src/lib/fidl/rust/fidl",
"//src/lib/fuchsia-async",
"//src/lib/zircon/rust:fuchsia-zircon",
"//third_party/rust_crates:anyhow",
"//third_party/rust_crates:futures",
"//third_party/rust_crates:thiserror",
]
test_deps = [ "//sdk/fidl/fuchsia.bluetooth.sys:fuchsia.bluetooth.sys-rustc" ]
sources = [
"src/expect.rs",
"src/gatt.rs",
"src/lib.rs",
"src/sys.rs",
]
}
fuchsia_unittest_package("bt-fidl-mocks-tests") {
v2 = true
deps = [ ":bt-fidl-mocks_test" ]
}
group("tests") {
testonly = true
deps = [ ":bt-fidl-mocks-tests" ]
}