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 #ifndef NET_HTTP_HTTP_STREAM_FACTORY_TEST_UTIL_H_ | 5 #ifndef NET_HTTP_HTTP_STREAM_FACTORY_TEST_UTIL_H_ |
6 #define NET_HTTP_HTTP_STREAM_FACTORY_TEST_UTIL_H_ | 6 #define NET_HTTP_HTTP_STREAM_FACTORY_TEST_UTIL_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 #include "base/memory/ptr_util.h" | 10 #include "base/memory/ptr_util.h" |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 HttpStreamFactoryImpl::JobType job_type, | 109 HttpStreamFactoryImpl::JobType job_type, |
110 HttpNetworkSession* session, | 110 HttpNetworkSession* session, |
111 const HttpRequestInfo& request_info, | 111 const HttpRequestInfo& request_info, |
112 RequestPriority priority, | 112 RequestPriority priority, |
113 ProxyInfo proxy_info, | 113 ProxyInfo proxy_info, |
114 const SSLConfig& server_ssl_config, | 114 const SSLConfig& server_ssl_config, |
115 const SSLConfig& proxy_ssl_config, | 115 const SSLConfig& proxy_ssl_config, |
116 HostPortPair destination, | 116 HostPortPair destination, |
117 GURL origin_url, | 117 GURL origin_url, |
118 NextProto alternative_protocol, | 118 NextProto alternative_protocol, |
| 119 QuicVersion quic_version, |
119 const ProxyServer& alternative_proxy_server, | 120 const ProxyServer& alternative_proxy_server, |
120 bool enable_ip_based_pooling, | 121 bool enable_ip_based_pooling, |
121 NetLog* net_log); | 122 NetLog* net_log); |
122 | 123 |
123 ~MockHttpStreamFactoryImplJob() override; | 124 ~MockHttpStreamFactoryImplJob() override; |
124 | 125 |
125 MOCK_METHOD0(Resume, void()); | 126 MOCK_METHOD0(Resume, void()); |
126 | 127 |
127 MOCK_METHOD0(Orphan, void()); | 128 MOCK_METHOD0(Orphan, void()); |
128 }; | 129 }; |
(...skipping 23 matching lines...) Expand all Loading... |
152 HttpStreamFactoryImpl::JobType job_type, | 153 HttpStreamFactoryImpl::JobType job_type, |
153 HttpNetworkSession* session, | 154 HttpNetworkSession* session, |
154 const HttpRequestInfo& request_info, | 155 const HttpRequestInfo& request_info, |
155 RequestPriority priority, | 156 RequestPriority priority, |
156 const ProxyInfo& proxy_info, | 157 const ProxyInfo& proxy_info, |
157 const SSLConfig& server_ssl_config, | 158 const SSLConfig& server_ssl_config, |
158 const SSLConfig& proxy_ssl_config, | 159 const SSLConfig& proxy_ssl_config, |
159 HostPortPair destination, | 160 HostPortPair destination, |
160 GURL origin_url, | 161 GURL origin_url, |
161 NextProto alternative_protocol, | 162 NextProto alternative_protocol, |
| 163 QuicVersion quic_version, |
162 bool enable_ip_based_pooling, | 164 bool enable_ip_based_pooling, |
163 NetLog* net_log) override; | 165 NetLog* net_log) override; |
164 | 166 |
165 std::unique_ptr<HttpStreamFactoryImpl::Job> CreateAltProxyJob( | 167 std::unique_ptr<HttpStreamFactoryImpl::Job> CreateAltProxyJob( |
166 HttpStreamFactoryImpl::Job::Delegate* delegate, | 168 HttpStreamFactoryImpl::Job::Delegate* delegate, |
167 HttpStreamFactoryImpl::JobType job_type, | 169 HttpStreamFactoryImpl::JobType job_type, |
168 HttpNetworkSession* session, | 170 HttpNetworkSession* session, |
169 const HttpRequestInfo& request_info, | 171 const HttpRequestInfo& request_info, |
170 RequestPriority priority, | 172 RequestPriority priority, |
171 const ProxyInfo& proxy_info, | 173 const ProxyInfo& proxy_info, |
(...skipping 18 matching lines...) Expand all Loading... |
190 private: | 192 private: |
191 MockHttpStreamFactoryImplJob* main_job_; | 193 MockHttpStreamFactoryImplJob* main_job_; |
192 MockHttpStreamFactoryImplJob* alternative_job_; | 194 MockHttpStreamFactoryImplJob* alternative_job_; |
193 bool override_main_job_url_; | 195 bool override_main_job_url_; |
194 GURL main_job_alternative_url_; | 196 GURL main_job_alternative_url_; |
195 }; | 197 }; |
196 | 198 |
197 } // namespace net | 199 } // namespace net |
198 | 200 |
199 #endif // NET_HTTP_HTTP_STREAM_FACTORY_TEST_UTIL_H_ | 201 #endif // NET_HTTP_HTTP_STREAM_FACTORY_TEST_UTIL_H_ |
OLD | NEW |