| 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 17 matching lines...) Expand all Loading... |
| 28 QuicCryptoClientConfig* QuicStreamFactoryPeer::GetCryptoConfig( | 28 QuicCryptoClientConfig* QuicStreamFactoryPeer::GetCryptoConfig( |
| 29 QuicStreamFactory* factory) { | 29 QuicStreamFactory* factory) { |
| 30 return &factory->crypto_config_; | 30 return &factory->crypto_config_; |
| 31 } | 31 } |
| 32 | 32 |
| 33 bool QuicStreamFactoryPeer::HasActiveSession(QuicStreamFactory* factory, | 33 bool QuicStreamFactoryPeer::HasActiveSession(QuicStreamFactory* factory, |
| 34 const QuicServerId& server_id) { | 34 const QuicServerId& server_id) { |
| 35 return factory->HasActiveSession(server_id); | 35 return factory->HasActiveSession(server_id); |
| 36 } | 36 } |
| 37 | 37 |
| 38 bool QuicStreamFactoryPeer::HasActiveJob(QuicStreamFactory* factory, |
| 39 const QuicServerId& server_id) { |
| 40 return factory->HasActiveJob(server_id); |
| 41 } |
| 42 |
| 38 bool QuicStreamFactoryPeer::HasActiveCertVerifierJob( | 43 bool QuicStreamFactoryPeer::HasActiveCertVerifierJob( |
| 39 QuicStreamFactory* factory, | 44 QuicStreamFactory* factory, |
| 40 const QuicServerId& server_id) { | 45 const QuicServerId& server_id) { |
| 41 return factory->HasActiveCertVerifierJob(server_id); | 46 return factory->HasActiveCertVerifierJob(server_id); |
| 42 } | 47 } |
| 43 | 48 |
| 44 QuicChromiumClientSession* QuicStreamFactoryPeer::GetActiveSession( | 49 QuicChromiumClientSession* QuicStreamFactoryPeer::GetActiveSession( |
| 45 QuicStreamFactory* factory, | 50 QuicStreamFactory* factory, |
| 46 const QuicServerId& server_id) { | 51 const QuicServerId& server_id) { |
| 47 DCHECK(factory->HasActiveSession(server_id)); | 52 DCHECK(factory->HasActiveSession(server_id)); |
| (...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 193 return &factory->push_promise_index_; | 198 return &factory->push_promise_index_; |
| 194 } | 199 } |
| 195 | 200 |
| 196 int QuicStreamFactoryPeer::GetNumPushStreamsCreated( | 201 int QuicStreamFactoryPeer::GetNumPushStreamsCreated( |
| 197 QuicStreamFactory* factory) { | 202 QuicStreamFactory* factory) { |
| 198 return factory->num_push_streams_created_; | 203 return factory->num_push_streams_created_; |
| 199 } | 204 } |
| 200 | 205 |
| 201 } // namespace test | 206 } // namespace test |
| 202 } // namespace net | 207 } // namespace net |
| OLD | NEW |