OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "net/tools/quic/quic_time_wait_list_manager.h" | 5 #include "net/tools/quic/quic_time_wait_list_manager.h" |
6 | 6 |
7 #include <errno.h> | 7 #include <errno.h> |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 #include "net/quic/core/crypto/crypto_protocol.h" | 10 #include "net/quic/core/crypto/crypto_protocol.h" |
(...skipping 12 matching lines...) Expand all Loading... |
23 #include "net/tools/quic/test_tools/mock_epoll_server.h" | 23 #include "net/tools/quic/test_tools/mock_epoll_server.h" |
24 #include "net/tools/quic/test_tools/mock_quic_server_session_visitor.h" | 24 #include "net/tools/quic/test_tools/mock_quic_server_session_visitor.h" |
25 #include "testing/gmock/include/gmock/gmock.h" | 25 #include "testing/gmock/include/gmock/gmock.h" |
26 #include "testing/gtest/include/gtest/gtest.h" | 26 #include "testing/gtest/include/gtest/gtest.h" |
27 | 27 |
28 using net::test::kTestPort; | 28 using net::test::kTestPort; |
29 using net::test::BuildUnsizedDataPacket; | 29 using net::test::BuildUnsizedDataPacket; |
30 using net::test::NoOpFramerVisitor; | 30 using net::test::NoOpFramerVisitor; |
31 using net::test::QuicVersionMax; | 31 using net::test::QuicVersionMax; |
32 using net::test::QuicVersionMin; | 32 using net::test::QuicVersionMin; |
33 using net::test::ValueRestore; | |
34 using net::test::MockPacketWriter; | 33 using net::test::MockPacketWriter; |
35 | 34 |
36 using testing::Args; | 35 using testing::Args; |
37 using testing::Assign; | 36 using testing::Assign; |
38 using testing::DoAll; | 37 using testing::DoAll; |
39 using testing::Matcher; | 38 using testing::Matcher; |
40 using testing::MatcherInterface; | 39 using testing::MatcherInterface; |
41 using testing::NiceMock; | 40 using testing::NiceMock; |
42 using testing::Return; | 41 using testing::Return; |
43 using testing::ReturnPointee; | 42 using testing::ReturnPointee; |
(...skipping 506 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
550 EXPECT_EQ(static_cast<size_t>(FLAGS_quic_time_wait_list_max_connections), | 549 EXPECT_EQ(static_cast<size_t>(FLAGS_quic_time_wait_list_max_connections), |
551 time_wait_list_manager_.num_connections()); | 550 time_wait_list_manager_.num_connections()); |
552 EXPECT_FALSE(IsConnectionIdInTimeWait(id_to_evict)); | 551 EXPECT_FALSE(IsConnectionIdInTimeWait(id_to_evict)); |
553 EXPECT_TRUE(IsConnectionIdInTimeWait(current_connection_id)); | 552 EXPECT_TRUE(IsConnectionIdInTimeWait(current_connection_id)); |
554 } | 553 } |
555 } | 554 } |
556 | 555 |
557 } // namespace | 556 } // namespace |
558 } // namespace test | 557 } // namespace test |
559 } // namespace net | 558 } // namespace net |
OLD | NEW |