| OLD | NEW |
| 1 // Copyright (c) 2016 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2016 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/http/http_stream_factory_test_util.h" | 5 #include "net/http/http_stream_factory_test_util.h" |
| 6 | 6 |
| 7 #include "net/proxy/proxy_info.h" | 7 #include "net/proxy/proxy_info.h" |
| 8 | 8 |
| 9 using ::testing::_; | 9 using ::testing::_; |
| 10 | 10 |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 NetLog* net_log) | 26 NetLog* net_log) |
| 27 : HttpStreamFactoryImpl::Job(delegate, | 27 : HttpStreamFactoryImpl::Job(delegate, |
| 28 job_type, | 28 job_type, |
| 29 session, | 29 session, |
| 30 request_info, | 30 request_info, |
| 31 priority, | 31 priority, |
| 32 server_ssl_config, | 32 server_ssl_config, |
| 33 proxy_ssl_config, | 33 proxy_ssl_config, |
| 34 destination, | 34 destination, |
| 35 origin_url, | 35 origin_url, |
| 36 net_log) { | 36 net_log) {} |
| 37 DCHECK(!is_waiting()); | |
| 38 } | |
| 39 | 37 |
| 40 MockHttpStreamFactoryImplJob::MockHttpStreamFactoryImplJob( | 38 MockHttpStreamFactoryImplJob::MockHttpStreamFactoryImplJob( |
| 41 HttpStreamFactoryImpl::Job::Delegate* delegate, | 39 HttpStreamFactoryImpl::Job::Delegate* delegate, |
| 42 HttpStreamFactoryImpl::JobType job_type, | 40 HttpStreamFactoryImpl::JobType job_type, |
| 43 HttpNetworkSession* session, | 41 HttpNetworkSession* session, |
| 44 const HttpRequestInfo& request_info, | 42 const HttpRequestInfo& request_info, |
| 45 RequestPriority priority, | 43 RequestPriority priority, |
| 46 const SSLConfig& server_ssl_config, | 44 const SSLConfig& server_ssl_config, |
| 47 const SSLConfig& proxy_ssl_config, | 45 const SSLConfig& proxy_ssl_config, |
| 48 HostPortPair destination, | 46 HostPortPair destination, |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 131 DCHECK(!alternative_job_); | 129 DCHECK(!alternative_job_); |
| 132 alternative_job_ = new MockHttpStreamFactoryImplJob( | 130 alternative_job_ = new MockHttpStreamFactoryImplJob( |
| 133 delegate, job_type, session, request_info, priority, SSLConfig(), | 131 delegate, job_type, session, request_info, priority, SSLConfig(), |
| 134 SSLConfig(), destination, origin_url, AlternativeService(), | 132 SSLConfig(), destination, origin_url, AlternativeService(), |
| 135 alternative_proxy_server, nullptr); | 133 alternative_proxy_server, nullptr); |
| 136 | 134 |
| 137 return alternative_job_; | 135 return alternative_job_; |
| 138 } | 136 } |
| 139 | 137 |
| 140 } // namespace net | 138 } // namespace net |
| OLD | NEW |