| 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 "base/sha1.h" | 7 #include "base/sha1.h" |
| 8 #include "base/stl_util.h" | 8 #include "base/stl_util.h" |
| 9 #include "base/strings/string_number_conversions.h" | 9 #include "base/strings/string_number_conversions.h" |
| 10 #include "net/quic/crypto/crypto_framer.h" | 10 #include "net/quic/crypto/crypto_framer.h" |
| (...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 335 &visitor_, | 335 &visitor_, |
| 336 crypto_config, | 336 crypto_config, |
| 337 compressed_certs_cache) { | 337 compressed_certs_cache) { |
| 338 Initialize(); | 338 Initialize(); |
| 339 } | 339 } |
| 340 | 340 |
| 341 TestQuicSpdyServerSession::~TestQuicSpdyServerSession() {} | 341 TestQuicSpdyServerSession::~TestQuicSpdyServerSession() {} |
| 342 | 342 |
| 343 QuicCryptoServerStreamBase* | 343 QuicCryptoServerStreamBase* |
| 344 TestQuicSpdyServerSession::CreateQuicCryptoServerStream( | 344 TestQuicSpdyServerSession::CreateQuicCryptoServerStream( |
| 345 const QuicCryptoServerConfig* crypto_config) { | 345 const QuicCryptoServerConfig* crypto_config, |
| 346 return new QuicCryptoServerStream( | 346 QuicCompressedCertsCache* compressed_certs_cache) { |
| 347 crypto_config, FLAGS_enable_quic_stateless_reject_support, this); | 347 return new QuicCryptoServerStream(crypto_config, compressed_certs_cache, |
| 348 FLAGS_enable_quic_stateless_reject_support, |
| 349 this); |
| 348 } | 350 } |
| 349 | 351 |
| 350 QuicCryptoServerStream* TestQuicSpdyServerSession::GetCryptoStream() { | 352 QuicCryptoServerStream* TestQuicSpdyServerSession::GetCryptoStream() { |
| 351 return static_cast<QuicCryptoServerStream*>( | 353 return static_cast<QuicCryptoServerStream*>( |
| 352 QuicServerSessionBase::GetCryptoStream()); | 354 QuicServerSessionBase::GetCryptoStream()); |
| 353 } | 355 } |
| 354 | 356 |
| 355 TestQuicSpdyClientSession::TestQuicSpdyClientSession( | 357 TestQuicSpdyClientSession::TestQuicSpdyClientSession( |
| 356 QuicConnection* connection, | 358 QuicConnection* connection, |
| 357 const QuicConfig& config, | 359 const QuicConfig& config, |
| (...skipping 437 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 795 // strike register worries that we've just overflowed a uint32_t time. | 797 // strike register worries that we've just overflowed a uint32_t time. |
| 796 (*server_connection)->AdvanceTime(connection_start_time); | 798 (*server_connection)->AdvanceTime(connection_start_time); |
| 797 } | 799 } |
| 798 | 800 |
| 799 QuicStreamId QuicClientDataStreamId(int i) { | 801 QuicStreamId QuicClientDataStreamId(int i) { |
| 800 return kClientDataStreamId1 + 2 * i; | 802 return kClientDataStreamId1 + 2 * i; |
| 801 } | 803 } |
| 802 | 804 |
| 803 } // namespace test | 805 } // namespace test |
| 804 } // namespace net | 806 } // namespace net |
| OLD | NEW |