| # 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", |
| "ethertap_types.h", |
| ] |
| |
| deps = [ |
| "//zircon/public/fidl/fuchsia-hardware-ethernet", |
| "//zircon/public/lib/async-default", |
| "//zircon/public/lib/fbl", |
| "//zircon/public/lib/fdio", |
| "//zircon/public/lib/fzl", |
| "//zircon/public/lib/zx", |
| ] |
| } |
| |
| source_set("network_service") { |
| testonly = true |
| sources = [ |
| "endpoint.cc", |
| "endpoint.h", |
| "endpoint_manager.cc", |
| "endpoint_manager.h", |
| "fake_endpoint.cc", |
| "fake_endpoint.h", |
| "network.cc", |
| "network.h", |
| "network_context.cc", |
| "network_manager.cc", |
| "network_manager.h", |
| ] |
| |
| deps = [ |
| ":ethertap", |
| "//garnet/public/lib/netemul/fidl:network", |
| "//zircon/public/lib/fdio", |
| ] |
| } |
| |
| executable("network_test_bin") { |
| testonly = true |
| |
| output_name = "network_test" |
| |
| sources = [ |
| "ethertap_client_unittest.cc", |
| "network_service_unittest.cc", |
| ] |
| |
| deps = [ |
| ":ethertap", |
| ":network_service", |
| "//garnet/public/lib/component/cpp/testing", |
| "//garnet/public/lib/fxl/test:gtest_main", |
| "//zircon/public/lib/fzl", |
| ] |
| } |