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/quic/core/quic_server_session_base.h" | 5 #include "net/quic/core/quic_server_session_base.h" |
6 | 6 |
7 #include <cstdint> | 7 #include <cstdint> |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 QuicServerSessionBase::Helper* helper, | 79 QuicServerSessionBase::Helper* helper, |
80 const QuicCryptoServerConfig* crypto_config, | 80 const QuicCryptoServerConfig* crypto_config, |
81 QuicCompressedCertsCache* compressed_certs_cache) | 81 QuicCompressedCertsCache* compressed_certs_cache) |
82 : QuicServerSessionBase(config, | 82 : QuicServerSessionBase(config, |
83 connection, | 83 connection, |
84 visitor, | 84 visitor, |
85 helper, | 85 helper, |
86 crypto_config, | 86 crypto_config, |
87 compressed_certs_cache) {} | 87 compressed_certs_cache) {} |
88 | 88 |
89 ~TestServerSession() override{}; | 89 ~TestServerSession() override { delete connection(); }; |
90 | 90 |
91 protected: | 91 protected: |
92 QuicSpdyStream* CreateIncomingDynamicStream(QuicStreamId id) override { | 92 QuicSpdyStream* CreateIncomingDynamicStream(QuicStreamId id) override { |
93 if (!ShouldCreateIncomingDynamicStream(id)) { | 93 if (!ShouldCreateIncomingDynamicStream(id)) { |
94 return nullptr; | 94 return nullptr; |
95 } | 95 } |
96 QuicSpdyStream* stream = new QuicSimpleServerStream(id, this); | 96 QuicSpdyStream* stream = new QuicSimpleServerStream(id, this); |
97 ActivateStream(stream); | 97 ActivateStream(stream); |
98 return stream; | 98 return stream; |
99 } | 99 } |
(...skipping 457 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
557 EXPECT_FALSE( | 557 EXPECT_FALSE( |
558 QuicServerSessionBasePeer::IsBandwidthResumptionEnabled(session_.get())); | 558 QuicServerSessionBasePeer::IsBandwidthResumptionEnabled(session_.get())); |
559 session_->OnConfigNegotiated(); | 559 session_->OnConfigNegotiated(); |
560 EXPECT_FALSE( | 560 EXPECT_FALSE( |
561 QuicServerSessionBasePeer::IsBandwidthResumptionEnabled(session_.get())); | 561 QuicServerSessionBasePeer::IsBandwidthResumptionEnabled(session_.get())); |
562 } | 562 } |
563 | 563 |
564 } // namespace | 564 } // namespace |
565 } // namespace test | 565 } // namespace test |
566 } // namespace net | 566 } // namespace net |
OLD | NEW |