OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 // Tests for the top plugins to catch regressions in our plugin host code, as | 5 // Tests for the top plugins to catch regressions in our plugin host code, as |
6 // well as in the out of process code. Currently this tests: | 6 // well as in the out of process code. Currently this tests: |
7 // Flash | 7 // Flash |
8 // Real | 8 // Real |
9 // QuickTime | 9 // QuickTime |
10 // Windows Media Player | 10 // Windows Media Player |
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
224 | 224 |
225 const size_t kNetLogBound = 50u; | 225 const size_t kNetLogBound = 50u; |
226 net_log_.reset(new net::CapturingNetLog(kNetLogBound)); | 226 net_log_.reset(new net::CapturingNetLog(kNetLogBound)); |
227 | 227 |
228 proxy_service_ = net::ProxyService::Create(proxy_config_service, false, 0, | 228 proxy_service_ = net::ProxyService::Create(proxy_config_service, false, 0, |
229 this, net_log_.get(), | 229 this, net_log_.get(), |
230 MessageLoop::current()); | 230 MessageLoop::current()); |
231 DCHECK(proxy_service_); | 231 DCHECK(proxy_service_); |
232 | 232 |
233 ssl_config_service_ = new net::SSLConfigServiceDefaults; | 233 ssl_config_service_ = new net::SSLConfigServiceDefaults; |
234 http_auth_handler_factory_ = net::HttpAuthHandlerFactory::CreateDefault(); | 234 http_auth_handler_factory_ = net::HttpAuthHandlerFactory::CreateDefault( |
| 235 host_resolver_); |
235 http_transaction_factory_ = new net::HttpCache( | 236 http_transaction_factory_ = new net::HttpCache( |
236 net::HttpNetworkLayer::CreateFactory(host_resolver_, | 237 net::HttpNetworkLayer::CreateFactory(host_resolver_, |
237 proxy_service_, | 238 proxy_service_, |
238 ssl_config_service_, | 239 ssl_config_service_, |
239 http_auth_handler_factory_, | 240 http_auth_handler_factory_, |
240 network_delegate_, | 241 network_delegate_, |
241 NULL), | 242 NULL), |
242 net::HttpCache::DefaultBackend::InMemory(0)); | 243 net::HttpCache::DefaultBackend::InMemory(0)); |
243 } | 244 } |
244 | 245 |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
296 TEST_F(PluginInstallerDownloadTest, PluginInstallerDownloadPathTest) { | 297 TEST_F(PluginInstallerDownloadTest, PluginInstallerDownloadPathTest) { |
297 MessageLoop loop(MessageLoop::TYPE_IO); | 298 MessageLoop loop(MessageLoop::TYPE_IO); |
298 Start(); | 299 Start(); |
299 loop.Run(); | 300 loop.Run(); |
300 | 301 |
301 EXPECT_TRUE(success()); | 302 EXPECT_TRUE(success()); |
302 EXPECT_TRUE(initial_download_path().BaseName().value() == | 303 EXPECT_TRUE(initial_download_path().BaseName().value() == |
303 final_download_path().BaseName().value()); | 304 final_download_path().BaseName().value()); |
304 } | 305 } |
305 #endif // defined(OS_WIN) | 306 #endif // defined(OS_WIN) |
OLD | NEW |