| # 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. | |
| group("tests") { | |
| testonly = true | |
| deps = [ ":net_interfaces_tests" ] | |
| } | |
| ## 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") | |
| group("cpp") { | |
| public_deps = [ ":net-interfaces" ] | |
| visibility = [ | |
| ":*", | |
| "//src/connectivity/network/mdns/service:*", | |
| "//src/virtualization/bin/vmm/device/virtio_net:*", | |
| ] | |
| } | |
| static_library("net-interfaces") { | |
| sources = [ "net_interfaces.cc" ] | |
| public = [ "net_interfaces.h" ] | |
| deps = [ "//src/lib/fxl" ] | |
| deps += [ | |
| "//src/connectivity/network/lib/net_interfaces:net_interfaces_includes", | |
| ] | |
| visibility = [ | |
| ":*", | |
| "//src/connectivity/network/mdns/service:*", | |
| "//src/virtualization/bin/vmm/device/virtio_net:*", | |
| ] | |
| public_deps = | |
| [ "//sdk/fidl/fuchsia.net.interfaces:fuchsia.net.interfaces_hlcpp" ] | |
| } | |
| cc_test_executable("net_interfaces_test") { | |
| sources = [ | |
| "net_interfaces_test.cc", | |
| "test_common.cc", | |
| "test_common.h", | |
| ] | |
| deps = [ | |
| ":cpp", | |
| "//src/lib/fxl/test:gtest_main", | |
| "//src/lib/testing/predicates", | |
| ] | |
| testonly = true | |
| emit_tool_path = false | |
| } | |
| fuchsia_unittest_package("net_interfaces_tests") { | |
| package_name = "net_interfaces_tests-gn" | |
| component_name = "net_interfaces_tests" | |
| deps = [ ":net_interfaces_test" ] | |
| } |