blob: 18627b0643c250703680865c61aed05aa8352c4e [file]
# Copyright 2026 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.
group("tests") {
testonly = true
deps = [ ":trf_codegen_runtime_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("trf_codegen_runtime") {
testonly = true
sources = [ "src/lib.rs" ]
edition = "2024"
visibility = [ "//*" ]
deps = [
"//sdk/fidl/fuchsia.io:fuchsia.io_rust",
"//sdk/fidl/fuchsia.sys2:fuchsia.sys2_rust",
"//sdk/fidl/fuchsia.testing.harness:fuchsia.testing.harness_rust",
"//src/lib/fidl/rust/fidl",
"//src/lib/fuchsia-component",
"//src/lib/fuchsia-fs",
"//src/testing/trf_codegen/fidl:fuchsia.trf.factory_rust",
"//third_party/rust_crates:anyhow",
"//third_party/rust_crates:futures",
]
}
if (is_fuchsia) {
rustc_test("trf_codegen_runtime_test") {
sources = [ "src/lib.rs" ]
edition = "2024"
deps = [
"//sdk/fidl/fuchsia.io:fuchsia.io_rust",
"//sdk/fidl/fuchsia.sys2:fuchsia.sys2_rust",
"//sdk/fidl/fuchsia.testing.harness:fuchsia.testing.harness_rust",
"//src/lib/fidl/rust/fidl",
"//src/lib/fuchsia-component",
"//src/lib/fuchsia-fs",
"//src/testing/trf_codegen/fidl:fuchsia.trf.factory_rust",
"//third_party/rust_crates:anyhow",
"//third_party/rust_crates:futures",
] +
[
"//src/lib/fuchsia",
"//src/lib/fuchsia-async",
]
}
}
fuchsia_unittest_component("trf_codegen_runtime_tests_component") {
deps = [ ":trf_codegen_runtime_test" ]
component_name = "trf_codegen_runtime_tests"
}
fuchsia_test_package("trf_codegen_runtime_tests_package") {
package_name = "trf_codegen_runtime_tests-gn"
test_components = [ ":trf_codegen_runtime_tests_component" ]
deps = [ "//src/lib/fuchsia-component-test/realm_builder_server:realm_builder_server_component" ]
}