| Index: net/socket/socket_test_util.h
|
| diff --git a/net/socket/socket_test_util.h b/net/socket/socket_test_util.h
|
| index bd9725c3889ed971220ccbe7a087b172b9726984..523e9acd7cc0f31fd933d5e8f2a7970ecbf0076d 100644
|
| --- a/net/socket/socket_test_util.h
|
| +++ b/net/socket/socket_test_util.h
|
| @@ -5,6 +5,8 @@
|
| #ifndef NET_SOCKET_SOCKET_TEST_UTIL_H_
|
| #define NET_SOCKET_SOCKET_TEST_UTIL_H_
|
|
|
| +#include <stdint.h>
|
| +
|
| #include <cstring>
|
| #include <deque>
|
| #include <string>
|
| @@ -1237,6 +1239,12 @@ extern const int kSOCKS5OkRequestLength;
|
| extern const char kSOCKS5OkResponse[];
|
| extern const int kSOCKS5OkResponseLength;
|
|
|
| +// Helper function to get the total data size of the MockReads in |reads|.
|
| +int64_t CountReadBytes(const MockRead reads[], size_t reads_size);
|
| +
|
| +// Helper function to get the total data size of the MockWrites in |writes|.
|
| +int64_t CountWriteBytes(const MockWrite writes[], size_t writes_size);
|
| +
|
| } // namespace net
|
|
|
| #endif // NET_SOCKET_SOCKET_TEST_UTIL_H_
|
|
|