Use FileDescriptor for TcpSocketTest fixture members

Use the FileDescriptor helper class to manage the lifetime of file descriptors
held as TcpSocketTest members. This will help prevent leaks if some part of the
test setup fails.

Also rename `first_fd` and `second_fd` to be a) more meaningfully named and
b) conform to Google C++ naming conventions for class members.

Updates #8028

PiperOrigin-RevId: 478527874
This commit is contained in:
Alex Konradi
2022-10-03 09:41:54 -07:00
committed by gVisor bot
parent f53c349d51
commit 89a8a238a9
File diff suppressed because it is too large Load Diff