diff options
author | Arthur Sfez <asfez@google.com> | 2020-09-15 14:47:34 -0700 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2020-09-15 14:49:29 -0700 |
commit | 72a30b11486b48394fa0edca500b80e4ca83b10c (patch) | |
tree | aa98e6266cc85773ddf7c1653c16606b87a27149 /pkg/tcpip/network/testutil/BUILD | |
parent | 7f89a26e18edfe4335eaab965fb7a03eaebb2682 (diff) |
Move reusable IPv4 test code into a testutil module and refactor it
The refactor aims to simplify the package, by replacing the Go channel with a
PacketBuffer slice.
This code will be reused by tests for IPv6 fragmentation.
PiperOrigin-RevId: 331860411
Diffstat (limited to 'pkg/tcpip/network/testutil/BUILD')
-rw-r--r-- | pkg/tcpip/network/testutil/BUILD | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/pkg/tcpip/network/testutil/BUILD b/pkg/tcpip/network/testutil/BUILD new file mode 100644 index 000000000..e218563d0 --- /dev/null +++ b/pkg/tcpip/network/testutil/BUILD @@ -0,0 +1,17 @@ +load("//tools:defs.bzl", "go_library") + +package(licenses = ["notice"]) + +go_library( + name = "testutil", + srcs = [ + "testutil.go", + ], + visibility = ["//pkg/tcpip/network/ipv4:__pkg__"], + deps = [ + "//pkg/tcpip", + "//pkg/tcpip/buffer", + "//pkg/tcpip/link/channel", + "//pkg/tcpip/stack", + ], +) |