| 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 321 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 332 const QuicCryptoServerConfig* crypto_config) | 332 const QuicCryptoServerConfig* crypto_config) |
| 333 : QuicServerSessionBase(config, connection, &visitor_, crypto_config) { | 333 : QuicServerSessionBase(config, connection, &visitor_, crypto_config) { |
| 334 Initialize(); | 334 Initialize(); |
| 335 } | 335 } |
| 336 | 336 |
| 337 TestQuicSpdyServerSession::~TestQuicSpdyServerSession() {} | 337 TestQuicSpdyServerSession::~TestQuicSpdyServerSession() {} |
| 338 | 338 |
| 339 QuicCryptoServerStreamBase* | 339 QuicCryptoServerStreamBase* |
| 340 TestQuicSpdyServerSession::CreateQuicCryptoServerStream( | 340 TestQuicSpdyServerSession::CreateQuicCryptoServerStream( |
| 341 const QuicCryptoServerConfig* crypto_config) { | 341 const QuicCryptoServerConfig* crypto_config) { |
| 342 return new QuicCryptoServerStream(crypto_config, this); | 342 return new QuicCryptoServerStream( |
| 343 crypto_config, FLAGS_enable_quic_stateless_reject_support, this); |
| 343 } | 344 } |
| 344 | 345 |
| 345 QuicCryptoServerStream* TestQuicSpdyServerSession::GetCryptoStream() { | 346 QuicCryptoServerStream* TestQuicSpdyServerSession::GetCryptoStream() { |
| 346 return static_cast<QuicCryptoServerStream*>( | 347 return static_cast<QuicCryptoServerStream*>( |
| 347 QuicServerSessionBase::GetCryptoStream()); | 348 QuicServerSessionBase::GetCryptoStream()); |
| 348 } | 349 } |
| 349 | 350 |
| 350 TestQuicSpdyClientSession::TestQuicSpdyClientSession( | 351 TestQuicSpdyClientSession::TestQuicSpdyClientSession( |
| 351 QuicConnection* connection, | 352 QuicConnection* connection, |
| 352 const QuicConfig& config, | 353 const QuicConfig& config, |
| (...skipping 436 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 789 // strike register worries that we've just overflowed a uint32_t time. | 790 // strike register worries that we've just overflowed a uint32_t time. |
| 790 (*server_connection)->AdvanceTime(connection_start_time); | 791 (*server_connection)->AdvanceTime(connection_start_time); |
| 791 } | 792 } |
| 792 | 793 |
| 793 QuicStreamId QuicClientDataStreamId(int i) { | 794 QuicStreamId QuicClientDataStreamId(int i) { |
| 794 return kClientDataStreamId1 + 2 * i; | 795 return kClientDataStreamId1 + 2 * i; |
| 795 } | 796 } |
| 796 | 797 |
| 797 } // namespace test | 798 } // namespace test |
| 798 } // namespace net | 799 } // namespace net |
| OLD | NEW |