blob: c6dda29d001a957f4e1f0af3aa2d7084065c5c0d [file] [log] [blame]
# Copyright 2022 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_test.gni")
rustc_test("connect") {
edition = "2021"
deps = [
"//sdk/fidl/fuchsia.net:fuchsia.net-rustc",
"//src/connectivity/lib/net-declare",
"//src/connectivity/network/testing/netemul/network-context/fidl:network-rustc",
"//src/connectivity/network/testing/netemul/rust:lib",
"//src/connectivity/network/tests/integration/common:netstack_testing_common",
"//src/connectivity/network/tests/integration/macros:netstack_testing_macros",
"//src/lib/fuchsia-async",
"//src/lib/tcp-stream-ext",
"//third_party/rust_crates:futures-util",
"//third_party/rust_crates:libc",
"//third_party/rust_crates:socket2",
]
sources = [ "src/lib.rs" ]
configs -= [ "//build/config/rust:allow_unused_results" ]
}
fuchsia_unittest_package("netstack-connect-tests") {
deps = [
":connect",
"//src/connectivity/network/netstack:component-debug",
"//src/connectivity/network/testing/netemul/service:netemul-sandbox",
]
}
group("tests") {
testonly = true
deps = [ ":netstack-connect-tests" ]
}