| # 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") | |
| import("//build/go/go_library.gni") | |
| import("//build/go/go_test.gni") | |
| import("//build/go/toolchain.gni") | |
| go_library("filter") { | |
| name = "go.fuchsia.dev/fuchsia/src/connectivity/network/netstack/filter" | |
| deps = [ | |
| "//sdk/fidl/fuchsia.net.filter($go_toolchain)", | |
| "//src/connectivity/network/netstack/fidlconv", | |
| "//src/connectivity/network/netstack/sync", | |
| "//src/lib/component", | |
| "//src/lib/syslog/go", | |
| "//third_party/golibs:github.com/google/go-cmp", | |
| "//third_party/golibs:gvisor.dev/gvisor", | |
| ] | |
| sources = [ | |
| "filter.go", | |
| "filter_service.go", | |
| "filter_service_test.go", | |
| "filter_test.go", | |
| "matchers.go", | |
| ] | |
| } | |
| go_test("filter_test") { | |
| gopackages = | |
| [ "go.fuchsia.dev/fuchsia/src/connectivity/network/netstack/filter" ] | |
| deps = [ ":filter" ] | |
| } | |
| fuchsia_unittest_package("netstack-filter-gotests") { | |
| deps = [ ":filter_test" ] | |
| } | |
| group("tests") { | |
| testonly = true | |
| deps = [ ":netstack-filter-gotests" ] | |
| } |