Commit Graph

2 Commits

Author SHA1 Message Date
Arthur Sfez cf3cef1171 Refactor testutil.TestEndpoint and use it instead of limitedEP
The new testutil.MockLinkEndpoint implementation is not composed by
channel.Channel anymore because none of its features were used.

PiperOrigin-RevId: 333167753
2020-09-22 15:06:16 -07:00
Arthur Sfez 72a30b1148 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
2020-09-15 14:49:29 -07:00