blob: afeafec4f5fa37a0f67fc29b6e304b57e64620ff [file] [log] [blame]
# Copyright 2018 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.
source_set("ethertap") {
sources = [
"ethernet_client.cc",
"ethernet_client.h",
"ethertap_client.cc",
"ethertap_client.h",
]
deps = [
"//sdk/lib/fdio",
"//src/lib/fxl",
"//zircon/public/lib/fbl",
"//zircon/public/lib/zx",
"//zircon/system/ulib/async:async-cpp",
"//zircon/system/ulib/async-default",
"//zircon/system/ulib/fzl",
]
public_deps = [
"//sdk/fidl/fuchsia.hardware.ethernet",
"//sdk/fidl/fuchsia.hardware.ethertap",
]
}
source_set("network_service") {
testonly = true
sources = [
"endpoint.cc",
"endpoint.h",
"endpoint_manager.cc",
"endpoint_manager.h",
"fake_endpoint.cc",
"fake_endpoint.h",
"interceptors/interceptor.h",
"interceptors/latency.h",
"interceptors/packet_loss.h",
"interceptors/reorder.h",
"network.cc",
"network.h",
"network_context.cc",
"network_manager.cc",
"network_manager.h",
]
deps = [
":ethertap",
"//sdk/lib/fdio",
"//src/lib/fxl",
"//zircon/public/lib/async-cpp",
"//zircon/public/lib/fbl",
"//zircon/system/ulib/async-default",
]
public_deps = [
"//sdk/fidl/fuchsia.net.tun",
"//src/connectivity/network/testing/netemul/lib/fidl:internal",
"//src/connectivity/network/testing/netemul/lib/fidl:network",
]
}
source_set("netdump") {
sources = [
"netdump.cc",
"netdump.h",
"netdump_types.h",
]
deps = [ "//src/lib/fxl" ]
public_deps =
[ "//src/connectivity/network/testing/netemul/lib/fidl:network" ]
}
executable("network_test_bin") {
testonly = true
output_name = "network_test"
sources = [
"ethertap_client_unittest.cc",
"interceptors/interceptors_unittest.cc",
"netdump_parser.cc",
"netdump_parser.h",
"netdump_unittest.cc",
"network_service_unittest.cc",
]
deps = [
":ethertap",
":netdump",
":network_service",
"//sdk/lib/sys/cpp/testing:integration",
"//src/connectivity/lib/network-device/cpp",
"//src/connectivity/network/testing/netemul/lib/fidl:devmgr",
"//src/lib/fxl",
"//src/lib/fxl/test:gtest_main",
"//src/lib/testing/predicates",
"//zircon/system/ulib/fzl",
]
public_deps = [ "//sdk/fidl/fuchsia.hardware.ethertap" ]
}