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

Side by Side Diff: net/tools/quic/quic_server_session_test.cc

Issue 647933002: Call SetDefaults from the QuicConfig constructor instead of requiring (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@Allow_number_of_undecryptable_packets_76707156
Patch Set: Created 6 years, 2 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/tools/quic/quic_server.cc ('k') | net/tools/quic/quic_spdy_client_stream_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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/tools/quic/quic_server_session.h" 5 #include "net/tools/quic/quic_server_session.h"
6 6
7 #include "net/quic/crypto/quic_crypto_server_config.h" 7 #include "net/quic/crypto/quic_crypto_server_config.h"
8 #include "net/quic/crypto/quic_random.h" 8 #include "net/quic/crypto/quic_random.h"
9 #include "net/quic/crypto/source_address_token.h" 9 #include "net/quic/crypto/source_address_token.h"
10 #include "net/quic/quic_connection.h" 10 #include "net/quic/quic_connection.h"
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 61
62 namespace { 62 namespace {
63 63
64 const size_t kMaxStreamsForTest = 10; 64 const size_t kMaxStreamsForTest = 10;
65 65
66 class QuicServerSessionTest : public ::testing::TestWithParam<QuicVersion> { 66 class QuicServerSessionTest : public ::testing::TestWithParam<QuicVersion> {
67 protected: 67 protected:
68 QuicServerSessionTest() 68 QuicServerSessionTest()
69 : crypto_config_(QuicCryptoServerConfig::TESTING, 69 : crypto_config_(QuicCryptoServerConfig::TESTING,
70 QuicRandom::GetInstance()) { 70 QuicRandom::GetInstance()) {
71 config_.SetDefaults();
72 config_.SetMaxStreamsPerConnection(kMaxStreamsForTest, 71 config_.SetMaxStreamsPerConnection(kMaxStreamsForTest,
73 kMaxStreamsForTest); 72 kMaxStreamsForTest);
74 config_.SetInitialFlowControlWindowToSend( 73 config_.SetInitialFlowControlWindowToSend(
75 kInitialSessionFlowControlWindowForTest); 74 kInitialSessionFlowControlWindowForTest);
76 config_.SetInitialStreamFlowControlWindowToSend( 75 config_.SetInitialStreamFlowControlWindowToSend(
77 kInitialStreamFlowControlWindowForTest); 76 kInitialStreamFlowControlWindowForTest);
78 config_.SetInitialSessionFlowControlWindowToSend( 77 config_.SetInitialSessionFlowControlWindowToSend(
79 kInitialSessionFlowControlWindowForTest); 78 kInitialSessionFlowControlWindowForTest);
80 79
81 connection_ = 80 connection_ =
(...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after
369 EXPECT_CALL(*crypto_stream, 368 EXPECT_CALL(*crypto_stream,
370 SendServerConfigUpdate(EqualsProto(expected_network_params), _)) 369 SendServerConfigUpdate(EqualsProto(expected_network_params), _))
371 .Times(1); 370 .Times(1);
372 session_->OnCongestionWindowChange(now); 371 session_->OnCongestionWindowChange(now);
373 } 372 }
374 373
375 } // namespace 374 } // namespace
376 } // namespace test 375 } // namespace test
377 } // namespace tools 376 } // namespace tools
378 } // namespace net 377 } // namespace net
OLDNEW
« no previous file with comments | « net/tools/quic/quic_server.cc ('k') | net/tools/quic/quic_spdy_client_stream_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698