OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |