| 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 191 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 202       public testing::Test { | 202       public testing::Test { | 
| 203  public: | 203  public: | 
| 204   // This class provides HTTP request context information for the downloads. | 204   // This class provides HTTP request context information for the downloads. | 
| 205   class UploadRequestContext : public URLRequestContext { | 205   class UploadRequestContext : public URLRequestContext { | 
| 206    public: | 206    public: | 
| 207     UploadRequestContext() { | 207     UploadRequestContext() { | 
| 208       Initialize(); | 208       Initialize(); | 
| 209     } | 209     } | 
| 210 | 210 | 
| 211     ~UploadRequestContext() { | 211     ~UploadRequestContext() { | 
| 212       DLOG(INFO) << __FUNCTION__; | 212       DVLOG(1) << __FUNCTION__; | 
| 213       delete http_transaction_factory_; | 213       delete http_transaction_factory_; | 
| 214       delete http_auth_handler_factory_; | 214       delete http_auth_handler_factory_; | 
| 215     } | 215     } | 
| 216 | 216 | 
| 217     void Initialize() { | 217     void Initialize() { | 
| 218       host_resolver_ = | 218       host_resolver_ = | 
| 219           net::CreateSystemHostResolver(net::HostResolver::kDefaultParallelism, | 219           net::CreateSystemHostResolver(net::HostResolver::kDefaultParallelism, | 
| 220                                         NULL); | 220                                         NULL); | 
| 221       net::ProxyConfigService* proxy_config_service = | 221       net::ProxyConfigService* proxy_config_service = | 
| 222           net::ProxyService::CreateSystemProxyConfigService(NULL, NULL); | 222           net::ProxyService::CreateSystemProxyConfigService(NULL, NULL); | 
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 298 TEST_F(PluginInstallerDownloadTest, PluginInstallerDownloadPathTest) { | 298 TEST_F(PluginInstallerDownloadTest, PluginInstallerDownloadPathTest) { | 
| 299   MessageLoop loop(MessageLoop::TYPE_IO); | 299   MessageLoop loop(MessageLoop::TYPE_IO); | 
| 300   Start(); | 300   Start(); | 
| 301   loop.Run(); | 301   loop.Run(); | 
| 302 | 302 | 
| 303   EXPECT_TRUE(success()); | 303   EXPECT_TRUE(success()); | 
| 304   EXPECT_TRUE(initial_download_path().BaseName().value() == | 304   EXPECT_TRUE(initial_download_path().BaseName().value() == | 
| 305               final_download_path().BaseName().value()); | 305               final_download_path().BaseName().value()); | 
| 306 } | 306 } | 
| 307 #endif  // defined(OS_WIN) | 307 #endif  // defined(OS_WIN) | 
| OLD | NEW | 
|---|