blob: ea3293ffb4bf145b62435799a41fb50c64a66221 [file] [log] [blame]
# Copyright 2024 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("socket_proxy_integration_test") {
edition = "2021"
deps = [
"../testing",
"//sdk/fidl/fuchsia.net:fuchsia.net_rust",
"//sdk/fidl/fuchsia.net.policy.properties:fuchsia.net.policy.properties_rust",
"//sdk/fidl/fuchsia.net.policy.socketproxy:fuchsia.net.policy.socketproxy_rust",
"//sdk/fidl/fuchsia.posix:fuchsia.posix_rust",
"//sdk/fidl/fuchsia.posix.socket:fuchsia.posix.socket_rust",
"//sdk/fidl/fuchsia.posix.socket.raw:fuchsia.posix.socket.raw_rust",
"//sdk/rust/zx",
"//src/connectivity/lib/net-declare",
"//src/lib/fidl/rust/fidl",
"//src/lib/fuchsia",
"//src/lib/fuchsia-async",
"//src/lib/fuchsia-component",
"//src/lib/fuchsia-component-test",
"//third_party/rust_crates:anyhow",
"//third_party/rust_crates:assert_matches",
"//third_party/rust_crates:futures",
"//third_party/rust_crates:log",
"//third_party/rust_crates:pretty_assertions",
"//third_party/rust_crates:test-case",
]
sources = [ "src/lib.rs" ]
configs -= [ "//build/config/rust/lints:allow_unused_results" ]
}
fuchsia_test_component("component") {
component_name = "socket-proxy-integration-test"
manifest = "meta/socket_proxy_integration_test.cml"
deps = [ ":socket_proxy_integration_test" ]
test_type = "system"
}
fuchsia_test_package("socket-proxy-integration-tests") {
test_components = [ ":component" ]
deps = [
# The component under test.
"../:component",
"//src/connectivity/network/netstack:component-debug",
]
}
group("tests") {
testonly = true
deps = [ ":socket-proxy-integration-tests" ]
}