|  | # 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. | 
|  |  | 
|  | import("//build/components.gni") | 
|  | import("//build/go/go_library.gni") | 
|  | import("//build/go/go_test.gni") | 
|  |  | 
|  | go_library("routes") { | 
|  | deps = [ | 
|  | "//src/connectivity/network/netstack/fidlconv", | 
|  | "//src/connectivity/network/netstack/routetypes", | 
|  | "//src/connectivity/network/netstack/sync", | 
|  | "//src/connectivity/network/netstack/util", | 
|  | "//src/lib/syslog/go", | 
|  | "//third_party/golibs:gvisor.dev/gvisor", | 
|  | ] | 
|  |  | 
|  | sources = [ | 
|  | "routes.go", | 
|  | "routes_test.go", | 
|  | ] | 
|  | } | 
|  |  | 
|  | go_test("routes_test") { | 
|  | library = ":routes" | 
|  | } | 
|  |  | 
|  | fuchsia_unittest_package("netstack-routes-gotests") { | 
|  | deps = [ ":routes_test" ] | 
|  | } | 
|  |  | 
|  | group("tests") { | 
|  | testonly = true | 
|  | deps = [ ":netstack-routes-gotests" ] | 
|  | } |