| 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/core/quic_session.h" | 5 #include "net/quic/core/quic_session.h" |
| 6 | 6 |
| 7 #include <set> | 7 #include <set> |
| 8 #include <utility> | 8 #include <utility> |
| 9 | 9 |
| 10 #include "base/memory/ptr_util.h" | 10 #include "base/memory/ptr_util.h" |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 } | 108 } |
| 109 | 109 |
| 110 private: | 110 private: |
| 111 QuicSession* const session_; | 111 QuicSession* const session_; |
| 112 const QuicStreamId stream_id_; | 112 const QuicStreamId stream_id_; |
| 113 }; | 113 }; |
| 114 | 114 |
| 115 class TestSession : public QuicSpdySession { | 115 class TestSession : public QuicSpdySession { |
| 116 public: | 116 public: |
| 117 explicit TestSession(QuicConnection* connection) | 117 explicit TestSession(QuicConnection* connection) |
| 118 : QuicSpdySession(connection, DefaultQuicConfig()), | 118 : QuicSpdySession(connection, nullptr, DefaultQuicConfig()), |
| 119 crypto_stream_(this), | 119 crypto_stream_(this), |
| 120 writev_consumes_all_data_(false) { | 120 writev_consumes_all_data_(false) { |
| 121 Initialize(); | 121 Initialize(); |
| 122 this->connection()->SetEncrypter(ENCRYPTION_FORWARD_SECURE, | 122 this->connection()->SetEncrypter(ENCRYPTION_FORWARD_SECURE, |
| 123 new NullEncrypter()); | 123 new NullEncrypter()); |
| 124 } | 124 } |
| 125 | 125 |
| 126 ~TestSession() override { delete connection(); } | 126 ~TestSession() override { delete connection(); } |
| 127 | 127 |
| 128 TestCryptoStream* GetCryptoStream() override { return &crypto_stream_; } | 128 TestCryptoStream* GetCryptoStream() override { return &crypto_stream_; } |
| (...skipping 1168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1297 if (version() <= QUIC_VERSION_35) { | 1297 if (version() <= QUIC_VERSION_35) { |
| 1298 EXPECT_FALSE(session_.force_hol_blocking()); | 1298 EXPECT_FALSE(session_.force_hol_blocking()); |
| 1299 } else { | 1299 } else { |
| 1300 EXPECT_TRUE(session_.force_hol_blocking()); | 1300 EXPECT_TRUE(session_.force_hol_blocking()); |
| 1301 } | 1301 } |
| 1302 } | 1302 } |
| 1303 | 1303 |
| 1304 } // namespace | 1304 } // namespace |
| 1305 } // namespace test | 1305 } // namespace test |
| 1306 } // namespace net | 1306 } // namespace net |
| OLD | NEW |