| 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_TOOLS_QUIC_TEST_TOOLS_QUIC_TEST_CLIENT_H_ | 5 #ifndef NET_TOOLS_QUIC_TEST_TOOLS_QUIC_TEST_CLIENT_H_ |
| 6 #define NET_TOOLS_QUIC_TEST_TOOLS_QUIC_TEST_CLIENT_H_ | 6 #define NET_TOOLS_QUIC_TEST_TOOLS_QUIC_TEST_CLIENT_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 246 protected: | 246 protected: |
| 247 QuicTestClient(); | 247 QuicTestClient(); |
| 248 | 248 |
| 249 void Initialize(); | 249 void Initialize(); |
| 250 | 250 |
| 251 void set_client(MockableQuicClient* client) { client_.reset(client); } | 251 void set_client(MockableQuicClient* client) { client_.reset(client); } |
| 252 | 252 |
| 253 private: | 253 private: |
| 254 class TestClientDataToResend : public QuicClient::QuicDataToResend { | 254 class TestClientDataToResend : public QuicClient::QuicDataToResend { |
| 255 public: | 255 public: |
| 256 TestClientDataToResend(BalsaHeaders* headers, | 256 TestClientDataToResend(std::unique_ptr<SpdyHeaderBlock> headers, |
| 257 StringPiece body, | 257 base::StringPiece body, |
| 258 bool fin, | 258 bool fin, |
| 259 QuicTestClient* test_client, | 259 QuicTestClient* test_client, |
| 260 QuicAckListenerInterface* delegate) | 260 QuicAckListenerInterface* delegate) |
| 261 : QuicClient::QuicDataToResend(headers, body, fin), | 261 : QuicClient::QuicDataToResend(std::move(headers), body, fin), |
| 262 test_client_(test_client), | 262 test_client_(test_client), |
| 263 delegate_(delegate) {} | 263 delegate_(delegate) {} |
| 264 | 264 |
| 265 ~TestClientDataToResend() override {} | 265 ~TestClientDataToResend() override {} |
| 266 | 266 |
| 267 void Resend() override; | 267 void Resend() override; |
| 268 | 268 |
| 269 protected: | 269 protected: |
| 270 QuicTestClient* test_client_; | 270 QuicTestClient* test_client_; |
| 271 QuicAckListenerInterface* delegate_; | 271 QuicAckListenerInterface* delegate_; |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 323 std::string override_sni_; | 323 std::string override_sni_; |
| 324 | 324 |
| 325 DISALLOW_COPY_AND_ASSIGN(QuicTestClient); | 325 DISALLOW_COPY_AND_ASSIGN(QuicTestClient); |
| 326 }; | 326 }; |
| 327 | 327 |
| 328 } // namespace test | 328 } // namespace test |
| 329 | 329 |
| 330 } // namespace net | 330 } // namespace net |
| 331 | 331 |
| 332 #endif // NET_TOOLS_QUIC_TEST_TOOLS_QUIC_TEST_CLIENT_H_ | 332 #endif // NET_TOOLS_QUIC_TEST_TOOLS_QUIC_TEST_CLIENT_H_ |
| OLD | NEW |