Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(73)

Side by Side Diff: net/quic/test_tools/quic_test_utils.cc

Issue 1783713003: Add a boolean use_stateless_rejects_if_peer_supported argument to the QuicCryptoServerStream constr… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « net/quic/quic_crypto_server_stream.cc ('k') | net/tools/quic/quic_dispatcher_test.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « net/quic/quic_crypto_server_stream.cc ('k') | net/tools/quic/quic_dispatcher_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698