Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(29)

Side by Side Diff: net/tools/quic/quic_server_session_base_test.cc

Issue 1893083002: Change scoped_ptr to std::unique_ptr in //net. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: scopedptr-net-all: iwyu Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « net/tools/quic/quic_server_session_base.h ('k') | net/tools/quic/quic_simple_client.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « net/tools/quic/quic_server_session_base.h ('k') | net/tools/quic/quic_simple_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698