| 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 "net/quic/test_tools/quic_test_utils.h" | 5 #include "net/quic/test_tools/quic_test_utils.h" |
| 6 | 6 |
| 7 #include <memory> | 7 #include <memory> |
| 8 | 8 |
| 9 #include "base/sha1.h" | 9 #include "base/sha1.h" |
| 10 #include "base/stl_util.h" | 10 #include "base/stl_util.h" |
| (...skipping 416 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 427 TestQuicSpdyServerSession::~TestQuicSpdyServerSession() { | 427 TestQuicSpdyServerSession::~TestQuicSpdyServerSession() { |
| 428 delete connection(); | 428 delete connection(); |
| 429 } | 429 } |
| 430 | 430 |
| 431 QuicCryptoServerStreamBase* | 431 QuicCryptoServerStreamBase* |
| 432 TestQuicSpdyServerSession::CreateQuicCryptoServerStream( | 432 TestQuicSpdyServerSession::CreateQuicCryptoServerStream( |
| 433 const QuicCryptoServerConfig* crypto_config, | 433 const QuicCryptoServerConfig* crypto_config, |
| 434 QuicCompressedCertsCache* compressed_certs_cache) { | 434 QuicCompressedCertsCache* compressed_certs_cache) { |
| 435 return new QuicCryptoServerStream(crypto_config, compressed_certs_cache, | 435 return new QuicCryptoServerStream(crypto_config, compressed_certs_cache, |
| 436 FLAGS_enable_quic_stateless_reject_support, | 436 FLAGS_enable_quic_stateless_reject_support, |
| 437 this); | 437 this, &helper_); |
| 438 } | 438 } |
| 439 | 439 |
| 440 QuicCryptoServerStream* TestQuicSpdyServerSession::GetCryptoStream() { | 440 QuicCryptoServerStream* TestQuicSpdyServerSession::GetCryptoStream() { |
| 441 return static_cast<QuicCryptoServerStream*>( | 441 return static_cast<QuicCryptoServerStream*>( |
| 442 QuicServerSessionBase::GetCryptoStream()); | 442 QuicServerSessionBase::GetCryptoStream()); |
| 443 } | 443 } |
| 444 | 444 |
| 445 TestQuicSpdyClientSession::TestQuicSpdyClientSession( | 445 TestQuicSpdyClientSession::TestQuicSpdyClientSession( |
| 446 QuicConnection* connection, | 446 QuicConnection* connection, |
| 447 const QuicConfig& config, | 447 const QuicConfig& config, |
| (...skipping 480 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 928 // strike register worries that we've just overflowed a uint32_t time. | 928 // strike register worries that we've just overflowed a uint32_t time. |
| 929 (*server_connection)->AdvanceTime(connection_start_time); | 929 (*server_connection)->AdvanceTime(connection_start_time); |
| 930 } | 930 } |
| 931 | 931 |
| 932 QuicStreamId QuicClientDataStreamId(int i) { | 932 QuicStreamId QuicClientDataStreamId(int i) { |
| 933 return kClientDataStreamId1 + 2 * i; | 933 return kClientDataStreamId1 + 2 * i; |
| 934 } | 934 } |
| 935 | 935 |
| 936 } // namespace test | 936 } // namespace test |
| 937 } // namespace net | 937 } // namespace net |
| OLD | NEW |