summaryrefslogtreecommitdiffhomepage
path: root/test/util/BUILD
diff options
context:
space:
mode:
authorGhanan Gowripalan <ghanan@google.com>2021-07-22 16:34:55 -0700
committergVisor bot <gvisor-bot@google.com>2021-07-22 16:37:15 -0700
commitaa2698170041e9bc00542378269231b5eaeffd5d (patch)
treee033d115eee728364e8cb3bd6e11fe037a25dad0 /test/util/BUILD
parent24487496a30666103f21c2d42be69d0f8ba2b388 (diff)
Move socket_test_util to //test/util
...and rename the library to socket_util. PiperOrigin-RevId: 386348306
Diffstat (limited to 'test/util/BUILD')
-rw-r--r--test/util/BUILD26
1 files changed, 25 insertions, 1 deletions
diff --git a/test/util/BUILD b/test/util/BUILD
index cc83221ea..4a4401ba8 100644
--- a/test/util/BUILD
+++ b/test/util/BUILD
@@ -1,4 +1,4 @@
-load("//tools:defs.bzl", "cc_library", "cc_test", "coreutil", "gbenchmark", "gtest", "select_system")
+load("//tools:defs.bzl", "cc_library", "cc_test", "coreutil", "default_net_util", "gbenchmark", "gtest", "select_system")
package(
default_visibility = ["//:sandbox"],
@@ -414,3 +414,27 @@ cc_library(
":temp_path",
],
)
+
+cc_library(
+ name = "socket_util",
+ testonly = 1,
+ srcs = [
+ "socket_util.cc",
+ "socket_util_impl.cc",
+ ],
+ hdrs = ["socket_util.h"],
+ defines = select_system(),
+ deps = default_net_util() + [
+ gtest,
+ "@com_google_absl//absl/memory",
+ "@com_google_absl//absl/strings",
+ "@com_google_absl//absl/strings:str_format",
+ "@com_google_absl//absl/time",
+ "@com_google_absl//absl/types:optional",
+ "//test/util:file_descriptor",
+ "//test/util:posix_error",
+ "//test/util:temp_path",
+ "//test/util:test_util",
+ "//test/util:thread_util",
+ ],
+)