| # Copyright 2020 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 = [ ":predicates-lib-test-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") | |
| source_set("predicates") { | |
| sources = [ "status.cc" ] | |
| public = [ "status.h" ] | |
| visibility = [ "//*" ] | |
| public_deps = [ | |
| "//sdk/lib/fit", | |
| "//src/zircon/lib/zircon:headers", | |
| "//third_party/googletest:gtest", | |
| ] | |
| testonly = true | |
| } | |
| if (is_fuchsia) { | |
| cc_test_executable("predicates-lib-unittests") { | |
| sources = [ "predicates_test.cc" ] | |
| deps = [ | |
| ":predicates", | |
| "//src/lib/fxl/test:gtest_main", | |
| "//zircon/system/ulib/zx", | |
| ] | |
| testonly = true | |
| emit_tool_path = false | |
| } | |
| } | |
| fuchsia_unittest_component("predicates-lib-test-component") { | |
| deps = [ ":predicates-lib-unittests" ] | |
| component_name = "predicates-lib-test" | |
| } | |
| fuchsia_test_package("predicates-lib-test-package") { | |
| package_name = "predicates-lib-test-gn" | |
| test_components = [ ":predicates-lib-test-component" ] | |
| test_specs = { | |
| environments = [ emu_env ] | |
| } | |
| } |