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

Side by Side Diff: chrome/test/plugin/plugin_test.cpp

Issue 6338002: net: Remove typedef net::URLRequestContext URLRequestContext; (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: for real Created 9 years, 11 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) 2010 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 // 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
11 // -this includes both WMP plugins. npdsplay.dll is the older one that 11 // -this includes both WMP plugins. npdsplay.dll is the older one that
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after
252 TestPlugin("silverlight.html", action_max_timeout_ms(), false); 252 TestPlugin("silverlight.html", action_max_timeout_ms(), false);
253 } 253 }
254 254
255 // This class provides functionality to test the plugin installer download 255 // This class provides functionality to test the plugin installer download
256 // file functionality. 256 // file functionality.
257 class PluginInstallerDownloadTest 257 class PluginInstallerDownloadTest
258 : public PluginDownloadUrlHelper::DownloadDelegate, 258 : public PluginDownloadUrlHelper::DownloadDelegate,
259 public testing::Test { 259 public testing::Test {
260 public: 260 public:
261 // This class provides HTTP request context information for the downloads. 261 // This class provides HTTP request context information for the downloads.
262 class UploadRequestContext : public URLRequestContext { 262 class UploadRequestContext : public net::URLRequestContext {
263 public: 263 public:
264 UploadRequestContext() { 264 UploadRequestContext() {
265 Initialize(); 265 Initialize();
266 } 266 }
267 267
268 ~UploadRequestContext() { 268 ~UploadRequestContext() {
269 DVLOG(1) << __FUNCTION__; 269 DVLOG(1) << __FUNCTION__;
270 delete http_transaction_factory_; 270 delete http_transaction_factory_;
271 delete http_auth_handler_factory_; 271 delete http_auth_handler_factory_;
272 delete cert_verifier_; 272 delete cert_verifier_;
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
361 TEST_F(PluginInstallerDownloadTest, PluginInstallerDownloadPathTest) { 361 TEST_F(PluginInstallerDownloadTest, PluginInstallerDownloadPathTest) {
362 MessageLoop loop(MessageLoop::TYPE_IO); 362 MessageLoop loop(MessageLoop::TYPE_IO);
363 Start(); 363 Start();
364 loop.Run(); 364 loop.Run();
365 365
366 EXPECT_TRUE(success()); 366 EXPECT_TRUE(success());
367 EXPECT_TRUE(initial_download_path().BaseName().value() == 367 EXPECT_TRUE(initial_download_path().BaseName().value() ==
368 final_download_path().BaseName().value()); 368 final_download_path().BaseName().value());
369 } 369 }
370 #endif // defined(OS_WIN) 370 #endif // defined(OS_WIN)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698