blob: ff0f8f43afab8515edc8794f38b480a93e4eeed5 [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_test("fidl") {
output_name = "fidl_on_overnet_tests"
edition = "2021"
deps = [
"//sdk/fidl/fuchsia.overnet:fuchsia.overnet-rustc",
"//src/connectivity/overnet/lib/core",
"//src/lib/fidl/rust/fidl",
"//src/lib/fidl/rust/handle_tests:fidl_handle_tests",
"//src/lib/fuchsia",
"//src/lib/fuchsia-async",
"//third_party/rust_crates:anyhow",
"//third_party/rust_crates:async-trait",
"//third_party/rust_crates:futures",
"//third_party/rust_crates:log",
"//third_party/rust_crates:parking_lot",
]
if (is_host) {
deps += [ "//src/connectivity/overnet/lib/core:test_certs" ]
}
sources = [
"src/channel.rs",
"src/lib.rs",
"src/socket.rs",
]
inputs = [
"//third_party/rust_crates/mirrors/quiche/quiche/examples/cert.crt",
"//third_party/rust_crates/mirrors/quiche/quiche/examples/cert.key",
"//third_party/rust_crates/mirrors/quiche/quiche/examples/rootca.crt",
]
}
fuchsia_unittest_package("overnet-fidl-tests") {
deps = [
":fidl",
"//src/connectivity/overnet/overnetstack:certificates",
]
}
group("tests") {
testonly = true
deps = [
":fidl($host_toolchain)",
":overnet-fidl-tests",
]
}