| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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_SPDY_CHROMIUM_SPDY_TEST_UTIL_COMMON_H_ | 5 #ifndef NET_SPDY_CHROMIUM_SPDY_TEST_UTIL_COMMON_H_ |
| 6 #define NET_SPDY_CHROMIUM_SPDY_TEST_UTIL_COMMON_H_ | 6 #define NET_SPDY_CHROMIUM_SPDY_TEST_UTIL_COMMON_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 185 static std::unique_ptr<HttpNetworkSession> SpdyCreateSession( | 185 static std::unique_ptr<HttpNetworkSession> SpdyCreateSession( |
| 186 SpdySessionDependencies* session_deps); | 186 SpdySessionDependencies* session_deps); |
| 187 | 187 |
| 188 // Variant that ignores session_deps->socket_factory, and uses the passed in | 188 // Variant that ignores session_deps->socket_factory, and uses the passed in |
| 189 // |factory| instead. | 189 // |factory| instead. |
| 190 static std::unique_ptr<HttpNetworkSession> SpdyCreateSessionWithSocketFactory( | 190 static std::unique_ptr<HttpNetworkSession> SpdyCreateSessionWithSocketFactory( |
| 191 SpdySessionDependencies* session_deps, | 191 SpdySessionDependencies* session_deps, |
| 192 ClientSocketFactory* factory); | 192 ClientSocketFactory* factory); |
| 193 static HttpNetworkSession::Params CreateSessionParams( | 193 static HttpNetworkSession::Params CreateSessionParams( |
| 194 SpdySessionDependencies* session_deps); | 194 SpdySessionDependencies* session_deps); |
| 195 static HttpNetworkSession::Context CreateSessionContext( |
| 196 SpdySessionDependencies* session_deps); |
| 195 | 197 |
| 196 // NOTE: host_resolver must be ordered before http_auth_handler_factory. | 198 // NOTE: host_resolver must be ordered before http_auth_handler_factory. |
| 197 std::unique_ptr<MockHostResolverBase> host_resolver; | 199 std::unique_ptr<MockHostResolverBase> host_resolver; |
| 198 std::unique_ptr<CertVerifier> cert_verifier; | 200 std::unique_ptr<CertVerifier> cert_verifier; |
| 199 std::unique_ptr<ChannelIDService> channel_id_service; | 201 std::unique_ptr<ChannelIDService> channel_id_service; |
| 200 std::unique_ptr<TransportSecurityState> transport_security_state; | 202 std::unique_ptr<TransportSecurityState> transport_security_state; |
| 201 std::unique_ptr<CTVerifier> cert_transparency_verifier; | 203 std::unique_ptr<CTVerifier> cert_transparency_verifier; |
| 202 std::unique_ptr<CTPolicyEnforcer> ct_policy_enforcer; | 204 std::unique_ptr<CTPolicyEnforcer> ct_policy_enforcer; |
| 203 std::unique_ptr<ProxyService> proxy_service; | 205 std::unique_ptr<ProxyService> proxy_service; |
| 204 scoped_refptr<SSLConfigService> ssl_config_service; | 206 scoped_refptr<SSLConfigService> ssl_config_service; |
| (...skipping 332 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 537 | 539 |
| 538 GURL default_url_; | 540 GURL default_url_; |
| 539 | 541 |
| 540 // Track a FIFO list of the stream_id of all created requests by priority. | 542 // Track a FIFO list of the stream_id of all created requests by priority. |
| 541 std::map<int, std::vector<int>> priority_to_stream_id_list_; | 543 std::map<int, std::vector<int>> priority_to_stream_id_list_; |
| 542 }; | 544 }; |
| 543 | 545 |
| 544 } // namespace net | 546 } // namespace net |
| 545 | 547 |
| 546 #endif // NET_SPDY_CHROMIUM_SPDY_TEST_UTIL_COMMON_H_ | 548 #endif // NET_SPDY_CHROMIUM_SPDY_TEST_UTIL_COMMON_H_ |
| OLD | NEW |