blob: 8b22362743b732115a37b3d3f6cb9cbc7a556878 [file]
# Copyright 2025 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/bazel/bazel_test_suite.gni")
bazel_test_suite("bazel_tests") {
target_tests = [ "//src/developer/lib/usb_vsock:usb-vsock-target-tests" ]
}
group("tests") {
testonly = true
deps = [
":bazel_tests",
":usb-vsock-target-tests",
":usb_vsock_test",
]
}
## BAZEL2GN SENTINEL - DO NOT EDIT BELOW THIS LINE ##
#
# ________ _________ ________ ________
# |\ ____\|\___ ___\\ __ \|\ __ \
# \ \ \___|\|___ \ \_\ \ \|\ \ \ \|\ \
# \ \_____ \ \ \ \ \ \ \\\ \ \ ____\
# \|____|\ \ \ \ \ \ \ \\\ \ \ \___|
# ____\_\ \ \ \__\ \ \_______\ \__\
# |\_________\ \|__| \|_______|\|__|
# \|_________|
#
#
# AUTO-GENERATED - DO NOT EDIT
#
# The targets below are auto-generated based on the targets defined in the
# BUILD.bazel file from the same directory. If you made changes to targets in
# Bazel, instead of editing this file manually, run:
#
# > fx bazel2gn
#
# Please do NOT edit this file directly. Instead, edit the BUILD.bazel file and
# rerun bazel2gn.
import("//build/tools/bazel2gn/bazel_migration.gni")
rustc_library("usb_vsock") {
sources = [
"src/connection.rs",
"src/connection/overflow_writer.rs",
"src/connection/pause_state.rs",
"src/lib.rs",
"src/packet.rs",
"src/transport.rs",
]
edition = "2024"
visibility = [
":*",
"//src/developer/ffx/lib/usb_driver_api:*",
"//src/developer/ffx/lib/usb_vsock_host:*",
"//src/developer/ffx/tools/usb_driver/impl:*",
"//src/developer/lib:*",
"//src/developer/remote-control/usb/usb-vsock-service:*",
]
deps = [
"//src/lib/fuchsia-async",
"//src/lib/fuchsia-sync",
"//third_party/rust_crates:futures",
"//third_party/rust_crates:log",
"//third_party/rust_crates:zerocopy",
]
}
rustc_test("usb_vsock_test") {
sources = [
"src/connection.rs",
"src/connection/overflow_writer.rs",
"src/connection/pause_state.rs",
"src/lib.rs",
"src/packet.rs",
"src/transport.rs",
]
edition = "2024"
deps = [
"//src/lib/fuchsia-async",
"//src/lib/fuchsia-sync",
"//third_party/rust_crates:futures",
"//third_party/rust_crates:log",
"//third_party/rust_crates:zerocopy",
] +
[
"//src/lib/fuchsia",
"//third_party/rust_crates:test-case",
]
}
fuchsia_unittest_package("usb-vsock-target-tests") {
package_name = "usb-vsock-target-tests-gn"
component_name = "usb-vsock-target-tests"
deps = [ ":usb_vsock_test" ]
}