blob: 5585a749edc1539aef3174a860f069922498471c [file]
# Copyright 2021 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/testing/host_test.gni")
if (is_host) {
host_test("fidl_llcpp_status_types_tests_host_test") {
binary_path = "$root_out_dir/fidl_llcpp_status_types_tests"
target = get_label_info(":fidl_llcpp_status_types_tests_bin",
"label_with_toolchain")
deps = [ ":fidl_llcpp_status_types_tests_bin" ]
}
}
group("message_container") {
testonly = true
deps = [
":fidl_llcpp_message_container_tests",
":fidl_llcpp_message_storage_tests",
":fidl_llcpp_status_types_tests",
":fidl_llcpp_status_types_tests_host_test($host_toolchain)",
]
}
## 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")
fidl("fidl.llcpp.linearized.test") {
testonly = true
sources = [ "linearized.test.fidl" ]
}
fidl("fidl.llcpp.empty.test") {
testonly = true
sources = [ "empty.test.fidl" ]
}
fidl("fidl.llcpp.buffersize.test") {
testonly = true
sources = [ "buffersize.test.fidl" ]
public_deps = [ "//zircon/vdso/zx" ]
}
cc_test_executable("fidl_llcpp_message_container_tests_bin") {
sources = [
"decoded_value_test.cc",
"encoded_test.cc",
"incoming_message_test.cc",
"outgoing_message_test.cc",
"outgoing_to_incoming_message_test.cc",
"wire_format_metadata_test.cc",
]
output_name = "fidl_llcpp_message_container_tests"
deps = [
":fidl.llcpp.empty.test_cpp",
":fidl.llcpp.linearized.test_cpp",
"//sdk/testing/fidl:fidl_test_cpp",
"//sdk/testing/fidl/types_tests:test.types_cpp",
"//src/lib/fidl/llcpp/tests:types_test_utils",
"//src/lib/fxl/test:gtest_main",
"//third_party/googletest:gtest",
]
testonly = true
emit_tool_path = false
}
renamed_binary("fidl_llcpp_message_container_tests_packaged_bin") {
testonly = true
source = "$root_out_dir/fidl_llcpp_message_container_tests"
source_deps = [ ":fidl_llcpp_message_container_tests_bin" ]
dest = "test/fidl_llcpp_message_container_tests"
}
fuchsia_component_manifest("fidl_llcpp_message_container_tests_manifest") {
component_name = "fidl_llcpp_message_container_tests"
manifest = "meta/fidl_llcpp_message_container_tests.cml"
}
fuchsia_test_component("fidl_llcpp_message_container_tests_component") {
cm_label = ":fidl_llcpp_message_container_tests_manifest"
deps = [ ":fidl_llcpp_message_container_tests_packaged_bin" ]
}
fuchsia_test_package("fidl_llcpp_message_container_tests") {
package_name = "fidl_llcpp_message_container_tests-gn"
test_components = [ ":fidl_llcpp_message_container_tests_component" ]
}
cc_test_executable("fidl_llcpp_status_types_tests_bin") {
sources = [ "status_test.cc" ]
output_name = "fidl_llcpp_status_types_tests"
deps = [
"//sdk/lib/fidl/cpp/wire",
"//zircon/system/ulib/zxtest",
]
testonly = true
emit_tool_path = false
}
fuchsia_unittest_package("fidl_llcpp_status_types_tests") {
package_name = "fidl_llcpp_status_types_tests-gn"
component_name = "fidl_llcpp_status_types_tests"
deps = [ ":fidl_llcpp_status_types_tests_bin" ]
visibility = [
":*",
"//src/lib:*",
]
}
cc_test_executable("fidl_llcpp_message_storage_tests_bin") {
sources = [
"any_allocator_test.cc",
"message_buffer_size_test.cc",
]
output_name = "fidl_llcpp_message_storage_tests"
deps = [
":fidl.llcpp.buffersize.test_cpp",
"//zircon/system/ulib/zxtest",
]
testonly = true
emit_tool_path = false
}
fuchsia_unittest_package("fidl_llcpp_message_storage_tests") {
package_name = "fidl_llcpp_message_storage_tests-gn"
component_name = "fidl_llcpp_message_storage_tests"
deps = [ ":fidl_llcpp_message_storage_tests_bin" ]
visibility = [
":*",
"//src/lib:*",
]
}