| 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_base.h" | 5 #include "net/tools/quic/quic_server_session_base.h" |
| 6 | 6 |
| 7 #include "base/macros.h" | 7 #include "base/macros.h" |
| 8 #include "net/quic/crypto/quic_crypto_server_config.h" | 8 #include "net/quic/crypto/quic_crypto_server_config.h" |
| 9 #include "net/quic/crypto/quic_random.h" | 9 #include "net/quic/crypto/quic_random.h" |
| 10 #include "net/quic/proto/cached_network_parameters.pb.h" | 10 #include "net/quic/proto/cached_network_parameters.pb.h" |
| (...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 143 session_->Initialize(); | 143 session_->Initialize(); |
| 144 visitor_ = QuicConnectionPeer::GetVisitor(connection_); | 144 visitor_ = QuicConnectionPeer::GetVisitor(connection_); |
| 145 } | 145 } |
| 146 | 146 |
| 147 StrictMock<MockQuicServerSessionVisitor> owner_; | 147 StrictMock<MockQuicServerSessionVisitor> owner_; |
| 148 MockConnectionHelper helper_; | 148 MockConnectionHelper helper_; |
| 149 StrictMock<MockConnection>* connection_; | 149 StrictMock<MockConnection>* connection_; |
| 150 QuicConfig config_; | 150 QuicConfig config_; |
| 151 QuicCryptoServerConfig crypto_config_; | 151 QuicCryptoServerConfig crypto_config_; |
| 152 QuicCompressedCertsCache compressed_certs_cache_; | 152 QuicCompressedCertsCache compressed_certs_cache_; |
| 153 scoped_ptr<TestServerSession> session_; | 153 std::unique_ptr<TestServerSession> session_; |
| 154 scoped_ptr<CryptoHandshakeMessage> handshake_message_; | 154 std::unique_ptr<CryptoHandshakeMessage> handshake_message_; |
| 155 QuicConnectionVisitorInterface* visitor_; | 155 QuicConnectionVisitorInterface* visitor_; |
| 156 }; | 156 }; |
| 157 | 157 |
| 158 // Compares CachedNetworkParameters. | 158 // Compares CachedNetworkParameters. |
| 159 MATCHER_P(EqualsProto, network_params, "") { | 159 MATCHER_P(EqualsProto, network_params, "") { |
| 160 CachedNetworkParameters reference(network_params); | 160 CachedNetworkParameters reference(network_params); |
| 161 return (arg->bandwidth_estimate_bytes_per_second() == | 161 return (arg->bandwidth_estimate_bytes_per_second() == |
| 162 reference.bandwidth_estimate_bytes_per_second() && | 162 reference.bandwidth_estimate_bytes_per_second() && |
| 163 arg->bandwidth_estimate_bytes_per_second() == | 163 arg->bandwidth_estimate_bytes_per_second() == |
| 164 reference.bandwidth_estimate_bytes_per_second() && | 164 reference.bandwidth_estimate_bytes_per_second() && |
| (...skipping 379 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 544 EXPECT_FALSE( | 544 EXPECT_FALSE( |
| 545 QuicServerSessionBasePeer::IsBandwidthResumptionEnabled(session_.get())); | 545 QuicServerSessionBasePeer::IsBandwidthResumptionEnabled(session_.get())); |
| 546 session_->OnConfigNegotiated(); | 546 session_->OnConfigNegotiated(); |
| 547 EXPECT_FALSE( | 547 EXPECT_FALSE( |
| 548 QuicServerSessionBasePeer::IsBandwidthResumptionEnabled(session_.get())); | 548 QuicServerSessionBasePeer::IsBandwidthResumptionEnabled(session_.get())); |
| 549 } | 549 } |
| 550 | 550 |
| 551 } // namespace | 551 } // namespace |
| 552 } // namespace test | 552 } // namespace test |
| 553 } // namespace net | 553 } // namespace net |
| OLD | NEW |