| Index: net/tools/quic/quic_client_test.cc
|
| diff --git a/net/tools/quic/quic_client_test.cc b/net/tools/quic/quic_client_test.cc
|
| index 8f3ff967fef1133858dc8b38d6bec30894d83d57..458a5b7a3b3060eb3d23473a4cbc2e0e7bf29b71 100644
|
| --- a/net/tools/quic/quic_client_test.cc
|
| +++ b/net/tools/quic/quic_client_test.cc
|
| @@ -11,6 +11,7 @@
|
|
|
| #include "base/files/file_enumerator.h"
|
| #include "base/files/file_util.h"
|
| +#include "net/quic/platform/api/quic_test.h"
|
| #include "net/quic/platform/api/quic_text_utils.h"
|
| #include "net/quic/test_tools/crypto_test_utils.h"
|
| #include "net/quic/test_tools/quic_test_utils.h"
|
| @@ -60,7 +61,9 @@ QuicClient* CreateAndInitializeQuicClient(EpollServer* eps, uint16_t port) {
|
| return client;
|
| }
|
|
|
| -TEST(QuicClientTest, DoNotLeakSocketFDs) {
|
| +class QuicClientTest : public QuicTest {};
|
| +
|
| +TEST_F(QuicClientTest, DoNotLeakSocketFDs) {
|
| // Make sure that the QuicClient doesn't leak socket FDs. Doing so could cause
|
| // port exhaustion in long running processes which repeatedly create clients.
|
|
|
| @@ -87,7 +90,7 @@ TEST(QuicClientTest, DoNotLeakSocketFDs) {
|
| EXPECT_EQ(number_of_open_fds, NumOpenSocketFDs());
|
| }
|
|
|
| -TEST(QuicClientTest, CreateAndCleanUpUDPSockets) {
|
| +TEST_F(QuicClientTest, CreateAndCleanUpUDPSockets) {
|
| // Create a ProofVerifier before counting the number of open FDs to work
|
| // around some ASAN weirdness.
|
| crypto_test_utils::ProofVerifierForTesting().reset();
|
|
|