| # 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") { |
| deps = [ |
| "//sdk/fidl/fuchsia.net.filter.deprecated:fuchsia.net.filter.deprecated_go($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") { |
| library = ":filter" |
| } |
| |
| fuchsia_unittest_package("netstack-filter-gotests") { |
| deps = [ ":filter_test" ] |
| } |
| |
| group("tests") { |
| testonly = true |
| deps = [ ":netstack-filter-gotests" ] |
| } |