| 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 <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 182 DISALLOW_COPY_AND_ASSIGN(MockECSignatureCreatorFactory); | 182 DISALLOW_COPY_AND_ASSIGN(MockECSignatureCreatorFactory); |
| 183 }; | 183 }; |
| 184 | 184 |
| 185 // Helper to manage the lifetimes of the dependencies for a | 185 // Helper to manage the lifetimes of the dependencies for a |
| 186 // HttpNetworkTransaction. | 186 // HttpNetworkTransaction. |
| 187 struct SpdySessionDependencies { | 187 struct SpdySessionDependencies { |
| 188 // Default set of dependencies -- "null" proxy service. | 188 // Default set of dependencies -- "null" proxy service. |
| 189 explicit SpdySessionDependencies(NextProto protocol); | 189 explicit SpdySessionDependencies(NextProto protocol); |
| 190 | 190 |
| 191 // Custom proxy service dependency. | 191 // Custom proxy service dependency. |
| 192 SpdySessionDependencies(NextProto protocol, ProxyService* proxy_service); | 192 SpdySessionDependencies(NextProto protocol, |
| 193 scoped_ptr<ProxyService> proxy_service); |
| 193 | 194 |
| 194 ~SpdySessionDependencies(); | 195 ~SpdySessionDependencies(); |
| 195 | 196 |
| 196 static HttpNetworkSession* SpdyCreateSession( | 197 static HttpNetworkSession* SpdyCreateSession( |
| 197 SpdySessionDependencies* session_deps); | 198 SpdySessionDependencies* session_deps); |
| 198 static HttpNetworkSession* SpdyCreateSessionDeterministic( | 199 static HttpNetworkSession* SpdyCreateSessionDeterministic( |
| 199 SpdySessionDependencies* session_deps); | 200 SpdySessionDependencies* session_deps); |
| 200 static HttpNetworkSession::Params CreateSessionParams( | 201 static HttpNetworkSession::Params CreateSessionParams( |
| 201 SpdySessionDependencies* session_deps); | 202 SpdySessionDependencies* session_deps); |
| 202 | 203 |
| (...skipping 381 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 584 int64* content_length) const; | 585 int64* content_length) const; |
| 585 | 586 |
| 586 const NextProto protocol_; | 587 const NextProto protocol_; |
| 587 const SpdyMajorVersion spdy_version_; | 588 const SpdyMajorVersion spdy_version_; |
| 588 GURL default_url_; | 589 GURL default_url_; |
| 589 }; | 590 }; |
| 590 | 591 |
| 591 } // namespace net | 592 } // namespace net |
| 592 | 593 |
| 593 #endif // NET_SPDY_SPDY_TEST_UTIL_COMMON_H_ | 594 #endif // NET_SPDY_SPDY_TEST_UTIL_COMMON_H_ |
| OLD | NEW |