blob: 436a5f420aa590b08c8044cecf1467c45e9983b2 [file]
# Copyright 2023 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")
import("//build/components.gni")
bazel_test_suite("bazel_tests") {
target_tests = [ "//src/sys/lib/socket_parsing:socket_parsing_tests" ]
}
group("tests") {
testonly = true
deps = [
":bazel_tests",
":socket_parsing_tests_package",
]
}
## 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("socket_parsing") {
sources = [ "src/lib.rs" ]
edition = "2024"
visibility = [
":*",
"//src/sys/lib/elf_runner:*",
]
deps = [
"//sdk/rust/zx",
"//src/lib/fuchsia-async",
"//third_party/rust_crates:futures",
"//third_party/rust_crates:thiserror",
]
}
rustc_test("socket_parsing_lib_test") {
sources = [ "src/lib.rs" ]
edition = "2024"
deps = [
"//sdk/rust/zx",
"//src/lib/fuchsia-async",
"//third_party/rust_crates:futures",
"//third_party/rust_crates:thiserror",
] + [ "//src/lib/fuchsia" ]
}
fuchsia_unittest_component("socket_parsing_tests_component") {
deps = [ ":socket_parsing_lib_test" ]
component_name = "socket_parsing_tests"
}
fuchsia_test_package("socket_parsing_tests_package") {
package_name = "socket_parsing_tests-gn"
test_components = [ ":socket_parsing_tests_component" ]
}