blob: 4d65201829bbc0faf2a99c8ff3a73f02801238b0 [file] [log] [blame]
# 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/components.gni")
executable("bin") {
testonly = true
output_name = "network_context"
sources = [ "main.cc" ]
deps = [
"lib:network_service",
"//sdk/lib/component/outgoing/cpp",
"//sdk/lib/device-watcher/cpp",
"//sdk/lib/fidl/cpp",
"//sdk/lib/sys/cpp",
"//sdk/lib/syslog/cpp",
"//zircon/system/ulib/async-loop:async-loop-cpp",
"//zircon/system/ulib/async-loop:async-loop-default",
"//zircon/system/ulib/fdio-caller",
]
}
fuchsia_component("network-context") {
testonly = true
manifest = "meta/network-context.cml"
deps = [ ":bin" ]
}
fuchsia_component("network-test") {
testonly = true
manifest = "meta/network-test.cml"
deps = [
"lib:network_test_bin",
"//src/connectivity/network/tun/network-tun:component",
]
}
fuchsia_test_package("network-tests") {
test_components = [ ":network-test" ]
}
group("tests") {
testonly = true
deps = [ ":network-tests" ]
}