diff options
author | Andrei Vagin <avagin@google.com> | 2019-03-19 17:32:23 -0700 |
---|---|---|
committer | Shentubot <shentubot@google.com> | 2019-03-19 17:33:20 -0700 |
commit | 87cce0ec08b9d629a5e3a88be411b1721d767301 (patch) | |
tree | 86c7f3b29933a86a1b7efb22694fb8413c70e780 /test/util/test_util.cc | |
parent | 7b33df68450bdb9519cf650a8d92fa4a81f37fa0 (diff) |
netstack: reduce MSS from SYN to account tcp options
See: https://tools.ietf.org/html/rfc6691#section-2
PiperOrigin-RevId: 239305632
Change-Id: Ie8eb912a43332e6490045dc95570709c5b81855e
Diffstat (limited to 'test/util/test_util.cc')
-rw-r--r-- | test/util/test_util.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/util/test_util.cc b/test/util/test_util.cc index 7b40260d1..ebcbca238 100644 --- a/test/util/test_util.cc +++ b/test/util/test_util.cc @@ -26,6 +26,7 @@ #include <ctime> #include <vector> + #include "absl/base/attributes.h" #include "absl/strings/numbers.h" #include "absl/strings/str_cat.h" @@ -234,6 +235,7 @@ bool Equivalent(uint64_t current, uint64_t target, double tolerance) { auto abs_diff = target > current ? target - current : current - target; return abs_diff <= static_cast<uint64_t>(tolerance * target); } + void TestInit(int* argc, char*** argv) { ::testing::InitGoogleTest(argc, *argv); ::gflags::ParseCommandLineFlags(argc, argv, true); |