| # Copyright 2019 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") | |
| group("tests") { | |
| testonly = true | |
| deps = [ | |
| ":containers_cpp_host_unittests($host_toolchain)", | |
| ":containers_cpp_tests", | |
| ] | |
| } | |
| # TODO(https://fxbug.dev/570694755): bazel2gn does not translate host_test() yet. | |
| if (is_host) { | |
| host_test("containers_cpp_host_unittests") { | |
| binary_path = "$root_out_dir/containers_cpp_unittests" | |
| target = get_label_info(":containers_cpp_unittests", "label_with_toolchain") | |
| deps = [ ":containers_cpp_unittests" ] | |
| } | |
| } | |
| ## 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") | |
| source_set("cpp") { | |
| public = [ | |
| "circular_deque.h", | |
| "mpsc_queue.h", | |
| "ownership.h", | |
| "template_util.h", | |
| "vector_buffer.h", | |
| ] | |
| configs += [ "//build/config:Wno-conversion" ] | |
| visibility = [ "//*" ] | |
| public_deps = [ "//zircon/third_party/ulib/safemath" ] | |
| } | |
| cc_test_executable("containers_cpp_unittests") { | |
| sources = [ | |
| "circular_deque_unittest.cc", | |
| "mpsc_queue_unittest.cc", | |
| "test_objects.h", | |
| "vector_buffer_unittest.cc", | |
| ] | |
| configs += [ "//build/config:Wno-conversion" ] | |
| deps = [ | |
| ":cpp", | |
| "//src/lib/fxl/test:gtest_main", | |
| "//third_party/googletest:gtest", | |
| ] | |
| testonly = true | |
| emit_tool_path = false | |
| } | |
| fuchsia_unittest_package("containers_cpp_tests") { | |
| package_name = "containers_cpp_tests-gn" | |
| component_name = "containers_cpp_tests" | |
| deps = [ ":containers_cpp_unittests" ] | |
| } |