Chromium Code Reviews| Index: chrome/test/plugin/plugin_test.cpp |
| diff --git a/chrome/test/plugin/plugin_test.cpp b/chrome/test/plugin/plugin_test.cpp |
| index 31b8d5375e1f083e8aa067af7f7b171b7cadab11..5cb29e37eb0568e931cb1f4f0924326a187ca6f3 100644 |
| --- a/chrome/test/plugin/plugin_test.cpp |
| +++ b/chrome/test/plugin/plugin_test.cpp |
| @@ -45,7 +45,9 @@ |
| #include "net/base/ssl_config_service_defaults.h" |
| #include "net/http/http_auth_handler_factory.h" |
| #include "net/http/http_cache.h" |
| -#include "net/http/http_network_layer.h" |
| +#include "net/http/http_network_session.h" |
| +#include "net/socket/client_socket_factory.h" |
| +#include "net/spdy/spdy_session_pool.h" |
| #include "net/url_request/url_request_context.h" |
| #include "net/url_request/url_request_status.h" |
| #include "third_party/npapi/bindings/npapi.h" |
| @@ -283,18 +285,22 @@ class PluginInstallerDownloadTest |
| ssl_config_service_ = new net::SSLConfigServiceDefaults; |
| http_auth_handler_factory_ = net::HttpAuthHandlerFactory::CreateDefault( |
| host_resolver_); |
| + scoped_refptr<net::HttpNetworkSession> network_session( |
| + new net::HttpNetworkSession( |
| + host_resolver_, |
| + cert_verifier_, |
| + NULL /* dnsrr_resolver */, |
| + NULL /* dns_cert_checker */, |
| + NULL /* ssl_host_info_factory */, |
| + proxy_service_, |
| + net::ClientSocketFactory::GetDefaultFactory(), |
| + ssl_config_service_, |
| + new net::SpdySessionPool(NULL), |
| + http_auth_handler_factory_, |
| + network_delegate_, |
| + NULL)); |
|
wtc
2011/01/28 01:51:23
Nit: add /* net_log */ after this NULL?
|
| http_transaction_factory_ = new net::HttpCache( |
| - net::HttpNetworkLayer::CreateFactory(host_resolver_, |
| - cert_verifier_, |
| - NULL /* dnsrr_resolver */, |
| - NULL /* dns_cert_checker */, |
| - NULL /* ssl_host_info_factory */, |
| - proxy_service_, |
| - ssl_config_service_, |
| - http_auth_handler_factory_, |
| - network_delegate_, |
| - NULL), |
| - NULL /* net_log */, |
| + network_session, |
| net::HttpCache::DefaultBackend::InMemory(0)); |
| } |