| 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 #include <stddef.h> | 5 #include <stddef.h> |
| 6 #include <sys/epoll.h> | 6 #include <sys/epoll.h> |
| 7 | 7 |
| 8 #include <list> | 8 #include <list> |
| 9 #include <memory> | 9 #include <memory> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 2191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2202 EpollServer* epoll_server) | 2202 EpollServer* epoll_server) |
| 2203 : MockableQuicClient(server_address, | 2203 : MockableQuicClient(server_address, |
| 2204 server_id, | 2204 server_id, |
| 2205 config, | 2205 config, |
| 2206 supported_versions, | 2206 supported_versions, |
| 2207 epoll_server) {} | 2207 epoll_server) {} |
| 2208 ~MockableQuicClientThatDropsBody() override {} | 2208 ~MockableQuicClientThatDropsBody() override {} |
| 2209 | 2209 |
| 2210 QuicClientSession* CreateQuicClientSession( | 2210 QuicClientSession* CreateQuicClientSession( |
| 2211 QuicConnection* connection) override { | 2211 QuicConnection* connection) override { |
| 2212 auto session = | 2212 auto* session = |
| 2213 new ClientSessionThatDropsBody(*config(), connection, server_id(), | 2213 new ClientSessionThatDropsBody(*config(), connection, server_id(), |
| 2214 crypto_config(), push_promise_index()); | 2214 crypto_config(), push_promise_index()); |
| 2215 set_session(session); | 2215 set_session(session); |
| 2216 return session; | 2216 return session; |
| 2217 } | 2217 } |
| 2218 }; | 2218 }; |
| 2219 | 2219 |
| 2220 class QuicTestClientThatDropsBody : public QuicTestClient { | 2220 class QuicTestClientThatDropsBody : public QuicTestClient { |
| 2221 public: | 2221 public: |
| 2222 QuicTestClientThatDropsBody(IPEndPoint server_address, | 2222 QuicTestClientThatDropsBody(IPEndPoint server_address, |
| (...skipping 516 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2739 client_->WaitForResponse(); | 2739 client_->WaitForResponse(); |
| 2740 // TODO(fayang): Fix this test to work with stateless rejects. | 2740 // TODO(fayang): Fix this test to work with stateless rejects. |
| 2741 if (!BothSidesSupportStatelessRejects()) { | 2741 if (!BothSidesSupportStatelessRejects()) { |
| 2742 VerifyCleanConnection(true); | 2742 VerifyCleanConnection(true); |
| 2743 } | 2743 } |
| 2744 } | 2744 } |
| 2745 | 2745 |
| 2746 } // namespace | 2746 } // namespace |
| 2747 } // namespace test | 2747 } // namespace test |
| 2748 } // namespace net | 2748 } // namespace net |
| OLD | NEW |