| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |