blob: 3e08d251107f7b804970eb7c0c62ca27cdf40fd0 [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.
import("//build/package.gni")
import("//build/test.gni")
import("//build/test/test_package.gni")
static_library("inet") {
sources = [
"ip_address.cc",
"ip_address.h",
"ip_port.cc",
"ip_port.h",
"socket_address.cc",
"socket_address.h",
]
public_deps = [
"//sdk/fidl/fuchsia.netstack",
"//src/lib/fxl",
"//zircon/public/fidl/fuchsia-net",
]
}
test("tests") {
output_name = "libinet_tests"
sources = [
"test/ip_address_test.cc",
]
deps = [
":inet",
"//third_party/googletest:gtest_main",
]
}
test_package("libinet_tests") {
deps = [
":tests",
]
tests = [
{
name = "libinet_tests"
environments = basic_envs
},
]
}