| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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_simple_server_stream.h" | 5 #include "net/tools/quic/quic_simple_server_stream.h" |
| 6 | 6 |
| 7 #include <list> | 7 #include <list> |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <utility> | 9 #include <utility> |
| 10 | 10 |
| (...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 179 public: | 179 public: |
| 180 QuicSimpleServerStreamTest() | 180 QuicSimpleServerStreamTest() |
| 181 : connection_( | 181 : connection_( |
| 182 new StrictMock<MockQuicConnection>(&helper_, | 182 new StrictMock<MockQuicConnection>(&helper_, |
| 183 &alarm_factory_, | 183 &alarm_factory_, |
| 184 Perspective::IS_SERVER, | 184 Perspective::IS_SERVER, |
| 185 SupportedVersions(GetParam()))), | 185 SupportedVersions(GetParam()))), |
| 186 crypto_config_(new QuicCryptoServerConfig( | 186 crypto_config_(new QuicCryptoServerConfig( |
| 187 QuicCryptoServerConfig::TESTING, | 187 QuicCryptoServerConfig::TESTING, |
| 188 QuicRandom::GetInstance(), | 188 QuicRandom::GetInstance(), |
| 189 ::net::test::CryptoTestUtils::ProofSourceForTesting())), | 189 crypto_test_utils::ProofSourceForTesting())), |
| 190 compressed_certs_cache_( | 190 compressed_certs_cache_( |
| 191 QuicCompressedCertsCache::kQuicCompressedCertsCacheSize), | 191 QuicCompressedCertsCache::kQuicCompressedCertsCacheSize), |
| 192 session_(connection_, | 192 session_(connection_, |
| 193 &session_owner_, | 193 &session_owner_, |
| 194 &session_helper_, | 194 &session_helper_, |
| 195 crypto_config_.get(), | 195 crypto_config_.get(), |
| 196 &compressed_certs_cache_, | 196 &compressed_certs_cache_, |
| 197 &response_cache_), | 197 &response_cache_), |
| 198 body_("hello world") { | 198 body_("hello world") { |
| 199 header_list_.OnHeaderBlockStart(); | 199 header_list_.OnHeaderBlockStart(); |
| (...skipping 439 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 639 }; | 639 }; |
| 640 StringPiece data(arr, arraysize(arr)); | 640 StringPiece data(arr, arraysize(arr)); |
| 641 QuicStreamFrame frame(stream_->id(), true, 0, data); | 641 QuicStreamFrame frame(stream_->id(), true, 0, data); |
| 642 // Verify that we don't crash when we get a invalid headers in stream frame. | 642 // Verify that we don't crash when we get a invalid headers in stream frame. |
| 643 stream_->OnStreamFrame(frame); | 643 stream_->OnStreamFrame(frame); |
| 644 } | 644 } |
| 645 | 645 |
| 646 } // namespace | 646 } // namespace |
| 647 } // namespace test | 647 } // namespace test |
| 648 } // namespace net | 648 } // namespace net |
| OLD | NEW |