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

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

Issue 5998002: Revert "Move the NPAPI files from webkit/glue/plugins to webkit/plugins/npapi" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 10 years 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
« no previous file with comments | « chrome/renderer/webplugin_delegate_proxy.cc ('k') | webkit/glue/plugins/DEPS » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 30 matching lines...) Expand all
41 #include "net/base/cert_verifier.h" 41 #include "net/base/cert_verifier.h"
42 #include "net/base/host_resolver.h" 42 #include "net/base/host_resolver.h"
43 #include "net/base/net_util.h" 43 #include "net/base/net_util.h"
44 #include "net/base/ssl_config_service_defaults.h" 44 #include "net/base/ssl_config_service_defaults.h"
45 #include "net/http/http_auth_handler_factory.h" 45 #include "net/http/http_auth_handler_factory.h"
46 #include "net/http/http_cache.h" 46 #include "net/http/http_cache.h"
47 #include "net/http/http_network_layer.h" 47 #include "net/http/http_network_layer.h"
48 #include "net/url_request/url_request_context.h" 48 #include "net/url_request/url_request_context.h"
49 #include "net/url_request/url_request_status.h" 49 #include "net/url_request/url_request_status.h"
50 #include "third_party/npapi/bindings/npapi.h" 50 #include "third_party/npapi/bindings/npapi.h"
51 #include "webkit/plugins/npapi/plugin_constants_win.h" 51 #include "webkit/glue/plugins/plugin_constants_win.h"
52 #include "webkit/plugins/npapi/plugin_list.h" 52 #include "webkit/glue/plugins/plugin_list.h"
53 #include "webkit/plugins/plugin_switches.h"
54 53
55 #if defined(OS_WIN) 54 #if defined(OS_WIN)
56 #include "base/win/registry.h" 55 #include "base/win/registry.h"
57 #endif 56 #endif
58 57
59 class PluginTest : public UITest { 58 class PluginTest : public UITest {
60 public: 59 public:
61 // Generate the URL for testing a particular test. 60 // Generate the URL for testing a particular test.
62 // HTML for the tests is all located in test_directory\plugin\<testcase> 61 // HTML for the tests is all located in test_directory\plugin\<testcase>
63 // Set |mock_http| to true to use mock HTTP server. 62 // Set |mock_http| to true to use mock HTTP server.
(...skipping 20 matching lines...) Expand all
84 // the installer might not have run on this machine, add it manually. 83 // the installer might not have run on this machine, add it manually.
85 base::win::RegKey regkey; 84 base::win::RegKey regkey;
86 if (regkey.Open(HKEY_LOCAL_MACHINE, 85 if (regkey.Open(HKEY_LOCAL_MACHINE,
87 L"Software\\Microsoft\\MediaPlayer\\ShimInclusionList", 86 L"Software\\Microsoft\\MediaPlayer\\ShimInclusionList",
88 KEY_WRITE)) { 87 KEY_WRITE)) {
89 regkey.CreateKey(L"CHROME.EXE", KEY_READ); 88 regkey.CreateKey(L"CHROME.EXE", KEY_READ);
90 } 89 }
91 } else if (strcmp(test_info->name(), "MediaPlayerOld") == 0) { 90 } else if (strcmp(test_info->name(), "MediaPlayerOld") == 0) {
92 // When testing the old WMP plugin, we need to force Chrome to not load 91 // When testing the old WMP plugin, we need to force Chrome to not load
93 // the new plugin. 92 // the new plugin.
94 launch_arguments_.AppendSwitch(switches::kUseOldWMPPlugin); 93 launch_arguments_.AppendSwitch(kUseOldWMPPluginSwitch);
95 } else if (strcmp(test_info->name(), "FlashSecurity") == 0) { 94 } else if (strcmp(test_info->name(), "FlashSecurity") == 0) {
96 launch_arguments_.AppendSwitchASCII(switches::kTestSandbox, 95 launch_arguments_.AppendSwitchASCII(switches::kTestSandbox,
97 "security_tests.dll"); 96 "security_tests.dll");
98 } 97 }
99 98
100 UITest::SetUp(); 99 UITest::SetUp();
101 } 100 }
102 #endif // defined(OS_WIN) 101 #endif // defined(OS_WIN)
103 102
104 void TestPlugin(const std::string& test_case, 103 void TestPlugin(const std::string& test_case,
(...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after
351 TEST_F(PluginInstallerDownloadTest, PluginInstallerDownloadPathTest) { 350 TEST_F(PluginInstallerDownloadTest, PluginInstallerDownloadPathTest) {
352 MessageLoop loop(MessageLoop::TYPE_IO); 351 MessageLoop loop(MessageLoop::TYPE_IO);
353 Start(); 352 Start();
354 loop.Run(); 353 loop.Run();
355 354
356 EXPECT_TRUE(success()); 355 EXPECT_TRUE(success());
357 EXPECT_TRUE(initial_download_path().BaseName().value() == 356 EXPECT_TRUE(initial_download_path().BaseName().value() ==
358 final_download_path().BaseName().value()); 357 final_download_path().BaseName().value());
359 } 358 }
360 #endif // defined(OS_WIN) 359 #endif // defined(OS_WIN)
OLDNEW
« no previous file with comments | « chrome/renderer/webplugin_delegate_proxy.cc ('k') | webkit/glue/plugins/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698