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

Side by Side Diff: net/quic/test_tools/quic_stream_factory_peer.cc

Issue 2229393003: net: Use stl utilities from the base namespace (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 4 years, 4 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/quic/test_tools/quic_session_peer.cc ('k') | net/quic/test_tools/quic_test_utils.cc » ('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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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/test_tools/quic_stream_factory_peer.h" 5 #include "net/quic/test_tools/quic_stream_factory_peer.h"
6 6
7 #include <string> 7 #include <string>
8 #include <vector> 8 #include <vector>
9 9
10 #include "net/cert/x509_certificate.h" 10 #include "net/cert/x509_certificate.h"
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 void QuicStreamFactoryPeer::MaybeInitialize(QuicStreamFactory* factory) { 140 void QuicStreamFactoryPeer::MaybeInitialize(QuicStreamFactory* factory) {
141 factory->MaybeInitialize(); 141 factory->MaybeInitialize();
142 } 142 }
143 143
144 bool QuicStreamFactoryPeer::HasInitializedData(QuicStreamFactory* factory) { 144 bool QuicStreamFactoryPeer::HasInitializedData(QuicStreamFactory* factory) {
145 return factory->has_initialized_data_; 145 return factory->has_initialized_data_;
146 } 146 }
147 147
148 bool QuicStreamFactoryPeer::SupportsQuicAtStartUp(QuicStreamFactory* factory, 148 bool QuicStreamFactoryPeer::SupportsQuicAtStartUp(QuicStreamFactory* factory,
149 HostPortPair host_port_pair) { 149 HostPortPair host_port_pair) {
150 return ContainsKey(factory->quic_supported_servers_at_startup_, 150 return base::ContainsKey(factory->quic_supported_servers_at_startup_,
151 host_port_pair); 151 host_port_pair);
152 } 152 }
153 153
154 bool QuicStreamFactoryPeer::CryptoConfigCacheIsEmpty( 154 bool QuicStreamFactoryPeer::CryptoConfigCacheIsEmpty(
155 QuicStreamFactory* factory, 155 QuicStreamFactory* factory,
156 const QuicServerId& quic_server_id) { 156 const QuicServerId& quic_server_id) {
157 return factory->CryptoConfigCacheIsEmpty(quic_server_id); 157 return factory->CryptoConfigCacheIsEmpty(quic_server_id);
158 } 158 }
159 159
160 void QuicStreamFactoryPeer::CacheDummyServerConfig( 160 void QuicStreamFactoryPeer::CacheDummyServerConfig(
161 QuicStreamFactory* factory, 161 QuicStreamFactory* factory,
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 return &factory->push_promise_index_; 201 return &factory->push_promise_index_;
202 } 202 }
203 203
204 int QuicStreamFactoryPeer::GetNumPushStreamsCreated( 204 int QuicStreamFactoryPeer::GetNumPushStreamsCreated(
205 QuicStreamFactory* factory) { 205 QuicStreamFactory* factory) {
206 return factory->num_push_streams_created_; 206 return factory->num_push_streams_created_;
207 } 207 }
208 208
209 } // namespace test 209 } // namespace test
210 } // namespace net 210 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/test_tools/quic_session_peer.cc ('k') | net/quic/test_tools/quic_test_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698