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 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
256 | 256 |
257 ~UploadRequestContext() { | 257 ~UploadRequestContext() { |
258 DVLOG(1) << __FUNCTION__; | 258 DVLOG(1) << __FUNCTION__; |
259 delete http_transaction_factory_; | 259 delete http_transaction_factory_; |
260 delete http_auth_handler_factory_; | 260 delete http_auth_handler_factory_; |
261 } | 261 } |
262 | 262 |
263 void Initialize() { | 263 void Initialize() { |
264 host_resolver_ = | 264 host_resolver_ = |
265 net::CreateSystemHostResolver(net::HostResolver::kDefaultParallelism, | 265 net::CreateSystemHostResolver(net::HostResolver::kDefaultParallelism, |
266 NULL); | 266 NULL, NULL); |
267 net::ProxyConfigService* proxy_config_service = | 267 net::ProxyConfigService* proxy_config_service = |
268 net::ProxyService::CreateSystemProxyConfigService(NULL, NULL); | 268 net::ProxyService::CreateSystemProxyConfigService(NULL, NULL); |
269 DCHECK(proxy_config_service); | 269 DCHECK(proxy_config_service); |
270 | 270 |
271 const size_t kNetLogBound = 50u; | 271 const size_t kNetLogBound = 50u; |
272 net_log_.reset(new net::CapturingNetLog(kNetLogBound)); | 272 net_log_.reset(new net::CapturingNetLog(kNetLogBound)); |
273 | 273 |
274 proxy_service_ = net::ProxyService::CreateUsingSystemProxyResolver( | 274 proxy_service_ = net::ProxyService::CreateUsingSystemProxyResolver( |
275 proxy_config_service, 0, net_log_.get()); | 275 proxy_config_service, 0, net_log_.get()); |
276 DCHECK(proxy_service_); | 276 DCHECK(proxy_service_); |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
344 TEST_F(PluginInstallerDownloadTest, PluginInstallerDownloadPathTest) { | 344 TEST_F(PluginInstallerDownloadTest, PluginInstallerDownloadPathTest) { |
345 MessageLoop loop(MessageLoop::TYPE_IO); | 345 MessageLoop loop(MessageLoop::TYPE_IO); |
346 Start(); | 346 Start(); |
347 loop.Run(); | 347 loop.Run(); |
348 | 348 |
349 EXPECT_TRUE(success()); | 349 EXPECT_TRUE(success()); |
350 EXPECT_TRUE(initial_download_path().BaseName().value() == | 350 EXPECT_TRUE(initial_download_path().BaseName().value() == |
351 final_download_path().BaseName().value()); | 351 final_download_path().BaseName().value()); |
352 } | 352 } |
353 #endif // defined(OS_WIN) | 353 #endif // defined(OS_WIN) |
OLD | NEW |