OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #ifndef NET_QUIC_TEST_TOOLS_SIMULATOR_QUIC_ENDPOINT_H_ | 5 #ifndef NET_QUIC_TEST_TOOLS_SIMULATOR_QUIC_ENDPOINT_H_ |
6 #define NET_QUIC_TEST_TOOLS_SIMULATOR_QUIC_ENDPOINT_H_ | 6 #define NET_QUIC_TEST_TOOLS_SIMULATOR_QUIC_ENDPOINT_H_ |
7 | 7 |
8 #include "net/quic/core/crypto/null_decrypter.h" | 8 #include "net/quic/core/crypto/null_decrypter.h" |
9 #include "net/quic/core/crypto/null_encrypter.h" | 9 #include "net/quic/core/crypto/null_encrypter.h" |
10 #include "net/quic/core/quic_connection.h" | 10 #include "net/quic/core/quic_connection.h" |
11 #include "net/quic/core/quic_protocol.h" | 11 #include "net/quic/core/quic_packets.h" |
12 #include "net/quic/test_tools/simulator/link.h" | 12 #include "net/quic/test_tools/simulator/link.h" |
13 #include "net/quic/test_tools/simulator/queue.h" | 13 #include "net/quic/test_tools/simulator/queue.h" |
14 #include "net/tools/quic/quic_default_packet_writer.h" | 14 #include "net/tools/quic/quic_default_packet_writer.h" |
15 | 15 |
16 namespace net { | 16 namespace net { |
17 namespace simulator { | 17 namespace simulator { |
18 | 18 |
19 // Size of the TX queue used by the kernel/NIC. 1000 is the Linux | 19 // Size of the TX queue used by the kernel/NIC. 1000 is the Linux |
20 // kernel default. | 20 // kernel default. |
21 const QuicByteCount kTxQueueSize = 1000; | 21 const QuicByteCount kTxQueueSize = 1000; |
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
160 void Act() override{}; | 160 void Act() override{}; |
161 | 161 |
162 private: | 162 private: |
163 std::unordered_map<std::string, QuicEndpoint*> mapping_; | 163 std::unordered_map<std::string, QuicEndpoint*> mapping_; |
164 }; | 164 }; |
165 | 165 |
166 } // namespace simulator | 166 } // namespace simulator |
167 } // namespace net | 167 } // namespace net |
168 | 168 |
169 #endif // NET_QUIC_TEST_TOOLS_SIMULATOR_QUIC_ENDPOINT_H_ | 169 #endif // NET_QUIC_TEST_TOOLS_SIMULATOR_QUIC_ENDPOINT_H_ |
OLD | NEW |