| OLD | NEW |
| 1 // Copyright (c) 2015 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2015 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/test_tools/quic_test_server.h" | 5 #include "net/tools/quic/test_tools/quic_test_server.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "base/run_loop.h" | 8 #include "base/run_loop.h" |
| 9 #include "base/synchronization/lock.h" | 9 #include "base/synchronization/lock.h" |
| 10 #include "base/thread_task_runner_handle.h" | 10 #include "base/thread_task_runner_handle.h" |
| 11 #include "net/base/ip_endpoint.h" | 11 #include "net/base/ip_endpoint.h" |
| 12 #include "net/base/net_errors.h" | 12 #include "net/base/net_errors.h" |
| 13 #include "net/quic/crypto/crypto_handshake.h" | 13 #include "net/quic/crypto/crypto_handshake.h" |
| 14 #include "net/quic/crypto/quic_crypto_server_config.h" | 14 #include "net/quic/crypto/quic_crypto_server_config.h" |
| 15 #include "net/quic/crypto/quic_random.h" | 15 #include "net/quic/crypto/quic_random.h" |
| 16 #include "net/quic/quic_config.h" | 16 #include "net/quic/quic_config.h" |
| 17 #include "net/quic/quic_connection.h" | 17 #include "net/quic/quic_connection.h" |
| 18 #include "net/quic/quic_connection_helper.h" | 18 #include "net/quic/quic_connection_helper.h" |
| 19 #include "net/quic/quic_packet_writer.h" | 19 #include "net/quic/quic_packet_writer.h" |
| 20 #include "net/quic/quic_protocol.h" | 20 #include "net/quic/quic_protocol.h" |
| 21 #include "net/tools/quic/quic_dispatcher.h" | 21 #include "net/tools/quic/quic_dispatcher.h" |
| 22 #include "net/tools/quic/quic_epoll_connection_helper.h" | 22 #include "net/tools/quic/quic_epoll_connection_helper.h" |
| 23 #include "net/tools/quic/quic_server_session.h" | 23 #include "net/tools/quic/quic_server_session.h" |
| 24 #include "net/tools/quic/quic_spdy_server_stream.h" | 24 #include "net/tools/quic/quic_simple_server_stream.h" |
| 25 | 25 |
| 26 namespace net { | 26 namespace net { |
| 27 namespace tools { | 27 namespace tools { |
| 28 namespace test { | 28 namespace test { |
| 29 | 29 |
| 30 class CustomStreamSession : public QuicServerSession { | 30 class CustomStreamSession : public QuicServerSession { |
| 31 public: | 31 public: |
| 32 CustomStreamSession( | 32 CustomStreamSession( |
| 33 const QuicConfig& config, | 33 const QuicConfig& config, |
| 34 QuicConnection* connection, | 34 QuicConnection* connection, |
| (...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 164 QuicConnection* connection, | 164 QuicConnection* connection, |
| 165 QuicServerSessionVisitor* visitor, | 165 QuicServerSessionVisitor* visitor, |
| 166 const QuicCryptoServerConfig* crypto_config) | 166 const QuicCryptoServerConfig* crypto_config) |
| 167 : QuicServerSession(config, connection, visitor, crypto_config) { | 167 : QuicServerSession(config, connection, visitor, crypto_config) { |
| 168 SendGoAway(QUIC_PEER_GOING_AWAY, ""); | 168 SendGoAway(QUIC_PEER_GOING_AWAY, ""); |
| 169 } | 169 } |
| 170 | 170 |
| 171 } // namespace test | 171 } // namespace test |
| 172 } // namespace tools | 172 } // namespace tools |
| 173 } // namespace net | 173 } // namespace net |
| OLD | NEW |