Chromium Code Reviews| 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_SPDY_TEST_UTIL_COMMON_H_ | 5 #ifndef NET_SPDY_SPDY_TEST_UTIL_COMMON_H_ |
| 6 #define NET_SPDY_SPDY_TEST_UTIL_COMMON_H_ | 6 #define NET_SPDY_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 11 matching lines...) Expand all Loading... | |
| 22 #include "net/base/test_completion_callback.h" | 22 #include "net/base/test_completion_callback.h" |
| 23 #include "net/cert/cert_verifier.h" | 23 #include "net/cert/cert_verifier.h" |
| 24 #include "net/dns/mock_host_resolver.h" | 24 #include "net/dns/mock_host_resolver.h" |
| 25 #include "net/http/http_auth_handler_factory.h" | 25 #include "net/http/http_auth_handler_factory.h" |
| 26 #include "net/http/http_network_session.h" | 26 #include "net/http/http_network_session.h" |
| 27 #include "net/http/http_response_info.h" | 27 #include "net/http/http_response_info.h" |
| 28 #include "net/http/http_server_properties_impl.h" | 28 #include "net/http/http_server_properties_impl.h" |
| 29 #include "net/http/transport_security_state.h" | 29 #include "net/http/transport_security_state.h" |
| 30 #include "net/proxy/proxy_server.h" | 30 #include "net/proxy/proxy_server.h" |
| 31 #include "net/proxy/proxy_service.h" | 31 #include "net/proxy/proxy_service.h" |
| 32 #include "net/quic/crypto/quic_random.h" | |
| 33 #include "net/quic/test_tools/mock_crypto_client_stream_factory.h" | |
| 32 #include "net/socket/next_proto.h" | 34 #include "net/socket/next_proto.h" |
| 33 #include "net/socket/socket_test_util.h" | 35 #include "net/socket/socket_test_util.h" |
| 34 #include "net/spdy/spdy_protocol.h" | 36 #include "net/spdy/spdy_protocol.h" |
| 35 #include "net/ssl/ssl_config_service_defaults.h" | 37 #include "net/ssl/ssl_config_service_defaults.h" |
| 36 #include "net/url_request/url_request_context.h" | 38 #include "net/url_request/url_request_context.h" |
| 37 #include "net/url_request/url_request_context_storage.h" | 39 #include "net/url_request/url_request_context_storage.h" |
| 38 #include "testing/gtest/include/gtest/gtest.h" | 40 #include "testing/gtest/include/gtest/gtest.h" |
| 39 | 41 |
| 40 class GURL; | 42 class GURL; |
| 41 | 43 |
| (...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 179 std::unique_ptr<ProxyService> proxy_service); | 181 std::unique_ptr<ProxyService> proxy_service); |
| 180 | 182 |
| 181 ~SpdySessionDependencies(); | 183 ~SpdySessionDependencies(); |
| 182 | 184 |
| 183 static std::unique_ptr<HttpNetworkSession> SpdyCreateSession( | 185 static std::unique_ptr<HttpNetworkSession> SpdyCreateSession( |
| 184 SpdySessionDependencies* session_deps); | 186 SpdySessionDependencies* session_deps); |
| 185 static HttpNetworkSession::Params CreateSessionParams( | 187 static HttpNetworkSession::Params CreateSessionParams( |
| 186 SpdySessionDependencies* session_deps); | 188 SpdySessionDependencies* session_deps); |
| 187 | 189 |
| 188 // NOTE: host_resolver must be ordered before http_auth_handler_factory. | 190 // NOTE: host_resolver must be ordered before http_auth_handler_factory. |
| 191 std::unique_ptr<MockCryptoClientStreamFactory> crypto_client_stream_factory; | |
| 189 std::unique_ptr<MockHostResolverBase> host_resolver; | 192 std::unique_ptr<MockHostResolverBase> host_resolver; |
| 193 std::unique_ptr<QuicRandom> quic_random; | |
|
Ryan Hamilton
2016/06/29 23:12:28
It's a bit of a bummer to have net/spdy/ depend on
| |
| 190 std::unique_ptr<CertVerifier> cert_verifier; | 194 std::unique_ptr<CertVerifier> cert_verifier; |
| 191 std::unique_ptr<ChannelIDService> channel_id_service; | 195 std::unique_ptr<ChannelIDService> channel_id_service; |
| 192 std::unique_ptr<TransportSecurityState> transport_security_state; | 196 std::unique_ptr<TransportSecurityState> transport_security_state; |
| 193 std::unique_ptr<ProxyService> proxy_service; | 197 std::unique_ptr<ProxyService> proxy_service; |
| 194 scoped_refptr<SSLConfigService> ssl_config_service; | 198 scoped_refptr<SSLConfigService> ssl_config_service; |
| 195 std::unique_ptr<MockClientSocketFactory> socket_factory; | 199 std::unique_ptr<MockClientSocketFactory> socket_factory; |
| 196 std::unique_ptr<HttpAuthHandlerFactory> http_auth_handler_factory; | 200 std::unique_ptr<HttpAuthHandlerFactory> http_auth_handler_factory; |
| 197 HttpServerPropertiesImpl http_server_properties; | 201 HttpServerPropertiesImpl http_server_properties; |
| 198 bool enable_ip_pooling; | 202 bool enable_ip_pooling; |
| 199 bool enable_ping; | 203 bool enable_ping; |
| (...skipping 365 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 565 GURL default_url_; | 569 GURL default_url_; |
| 566 bool dependency_priorities_; | 570 bool dependency_priorities_; |
| 567 | 571 |
| 568 // Track a FIFO list of the stream_id of all created requests by priority. | 572 // Track a FIFO list of the stream_id of all created requests by priority. |
| 569 std::map<int, std::vector<int>> priority_to_stream_id_list_; | 573 std::map<int, std::vector<int>> priority_to_stream_id_list_; |
| 570 }; | 574 }; |
| 571 | 575 |
| 572 } // namespace net | 576 } // namespace net |
| 573 | 577 |
| 574 #endif // NET_SPDY_SPDY_TEST_UTIL_COMMON_H_ | 578 #endif // NET_SPDY_SPDY_TEST_UTIL_COMMON_H_ |
| OLD | NEW |