Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(9)

Side by Side Diff: net/spdy/spdy_test_util.h

Issue 7827033: Introduce net::HttpServerPropertiesManager to manage server-specific properties. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_H_ 5 #ifndef NET_SPDY_SPDY_TEST_UTIL_H_
6 #define NET_SPDY_SPDY_TEST_UTIL_H_ 6 #define NET_SPDY_SPDY_TEST_UTIL_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "net/base/cert_verifier.h" 10 #include "net/base/cert_verifier.h"
11 #include "net/base/host_port_pair.h" 11 #include "net/base/host_port_pair.h"
12 #include "net/base/mock_host_resolver.h" 12 #include "net/base/mock_host_resolver.h"
13 #include "net/base/request_priority.h" 13 #include "net/base/request_priority.h"
14 #include "net/base/ssl_config_service_defaults.h" 14 #include "net/base/ssl_config_service_defaults.h"
15 #include "net/base/sys_addrinfo.h" 15 #include "net/base/sys_addrinfo.h"
16 #include "net/http/http_auth_handler_factory.h" 16 #include "net/http/http_auth_handler_factory.h"
17 #include "net/http/http_cache.h" 17 #include "net/http/http_cache.h"
18 #include "net/http/http_network_session.h" 18 #include "net/http/http_network_session.h"
19 #include "net/http/http_network_layer.h" 19 #include "net/http/http_network_layer.h"
20 #include "net/http/http_transaction_factory.h" 20 #include "net/http/http_transaction_factory.h"
21 #include "net/proxy/proxy_service.h" 21 #include "net/proxy/proxy_service.h"
22 #include "net/socket/socket_test_util.h" 22 #include "net/socket/socket_test_util.h"
23 #include "net/spdy/spdy_config_service_defaults.h"
23 #include "net/spdy/spdy_framer.h" 24 #include "net/spdy/spdy_framer.h"
24 #include "net/url_request/url_request_context.h" 25 #include "net/url_request/url_request_context.h"
25 #include "net/url_request/url_request_context_storage.h" 26 #include "net/url_request/url_request_context_storage.h"
26 27
27 namespace net { 28 namespace net {
28 29
29 // Default upload data used by both, mock objects and framer when creating 30 // Default upload data used by both, mock objects and framer when creating
30 // data frames. 31 // data frames.
31 const char kDefaultURL[] = "http://www.google.com"; 32 const char kDefaultURL[] = "http://www.google.com";
32 const char kUploadData[] = "hello!"; 33 const char kUploadData[] = "hello!";
(...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after
344 345
345 static HttpNetworkSession* SpdyCreateSession( 346 static HttpNetworkSession* SpdyCreateSession(
346 SpdySessionDependencies* session_deps); 347 SpdySessionDependencies* session_deps);
347 static HttpNetworkSession* SpdyCreateSessionDeterministic( 348 static HttpNetworkSession* SpdyCreateSessionDeterministic(
348 SpdySessionDependencies* session_deps); 349 SpdySessionDependencies* session_deps);
349 350
350 // NOTE: host_resolver must be ordered before http_auth_handler_factory. 351 // NOTE: host_resolver must be ordered before http_auth_handler_factory.
351 scoped_ptr<MockHostResolverBase> host_resolver; 352 scoped_ptr<MockHostResolverBase> host_resolver;
352 scoped_ptr<CertVerifier> cert_verifier; 353 scoped_ptr<CertVerifier> cert_verifier;
353 scoped_ptr<ProxyService> proxy_service; 354 scoped_ptr<ProxyService> proxy_service;
355 scoped_refptr<SpdyConfigService> spdy_config_service;
354 scoped_refptr<SSLConfigService> ssl_config_service; 356 scoped_refptr<SSLConfigService> ssl_config_service;
355 scoped_ptr<MockClientSocketFactory> socket_factory; 357 scoped_ptr<MockClientSocketFactory> socket_factory;
356 scoped_ptr<DeterministicMockClientSocketFactory> deterministic_socket_factory; 358 scoped_ptr<DeterministicMockClientSocketFactory> deterministic_socket_factory;
357 scoped_ptr<HttpAuthHandlerFactory> http_auth_handler_factory; 359 scoped_ptr<HttpAuthHandlerFactory> http_auth_handler_factory;
358 }; 360 };
359 361
360 class SpdyURLRequestContext : public URLRequestContext { 362 class SpdyURLRequestContext : public URLRequestContext {
361 public: 363 public:
362 SpdyURLRequestContext(); 364 SpdyURLRequestContext();
363 365
(...skipping 28 matching lines...) Expand all
392 394
393 private: 395 private:
394 SpdySessionPool* const pool_; 396 SpdySessionPool* const pool_;
395 397
396 DISALLOW_COPY_AND_ASSIGN(SpdySessionPoolPeer); 398 DISALLOW_COPY_AND_ASSIGN(SpdySessionPoolPeer);
397 }; 399 };
398 400
399 } // namespace net 401 } // namespace net
400 402
401 #endif // NET_SPDY_SPDY_TEST_UTIL_H_ 403 #endif // NET_SPDY_SPDY_TEST_UTIL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698