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

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

Issue 5996003: Revert "Revert 69755 - 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/webkit_glue.h » ('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/glue/plugins/plugin_constants_win.h" 51 #include "webkit/plugins/npapi/plugin_constants_win.h"
52 #include "webkit/glue/plugins/plugin_list.h" 52 #include "webkit/plugins/npapi/plugin_list.h"
53 #include "webkit/plugins/plugin_switches.h"
53 54
54 #if defined(OS_WIN) 55 #if defined(OS_WIN)
55 #include "base/win/registry.h" 56 #include "base/win/registry.h"
56 #endif 57 #endif
57 58
58 class PluginTest : public UITest { 59 class PluginTest : public UITest {
59 public: 60 public:
60 // Generate the URL for testing a particular test. 61 // Generate the URL for testing a particular test.
61 // HTML for the tests is all located in test_directory\plugin\<testcase> 62 // HTML for the tests is all located in test_directory\plugin\<testcase>
62 // Set |mock_http| to true to use mock HTTP server. 63 // Set |mock_http| to true to use mock HTTP server.
(...skipping 20 matching lines...) Expand all
83 // the installer might not have run on this machine, add it manually. 84 // the installer might not have run on this machine, add it manually.
84 base::win::RegKey regkey; 85 base::win::RegKey regkey;
85 if (regkey.Open(HKEY_LOCAL_MACHINE, 86 if (regkey.Open(HKEY_LOCAL_MACHINE,
86 L"Software\\Microsoft\\MediaPlayer\\ShimInclusionList", 87 L"Software\\Microsoft\\MediaPlayer\\ShimInclusionList",
87 KEY_WRITE)) { 88 KEY_WRITE)) {
88 regkey.CreateKey(L"CHROME.EXE", KEY_READ); 89 regkey.CreateKey(L"CHROME.EXE", KEY_READ);
89 } 90 }
90 } else if (strcmp(test_info->name(), "MediaPlayerOld") == 0) { 91 } else if (strcmp(test_info->name(), "MediaPlayerOld") == 0) {
91 // When testing the old WMP plugin, we need to force Chrome to not load 92 // When testing the old WMP plugin, we need to force Chrome to not load
92 // the new plugin. 93 // the new plugin.
93 launch_arguments_.AppendSwitch(kUseOldWMPPluginSwitch); 94 launch_arguments_.AppendSwitch(switches::kUseOldWMPPlugin);
94 } else if (strcmp(test_info->name(), "FlashSecurity") == 0) { 95 } else if (strcmp(test_info->name(), "FlashSecurity") == 0) {
95 launch_arguments_.AppendSwitchASCII(switches::kTestSandbox, 96 launch_arguments_.AppendSwitchASCII(switches::kTestSandbox,
96 "security_tests.dll"); 97 "security_tests.dll");
97 } 98 }
98 99
99 UITest::SetUp(); 100 UITest::SetUp();
100 } 101 }
101 #endif // defined(OS_WIN) 102 #endif // defined(OS_WIN)
102 103
103 void TestPlugin(const std::string& test_case, 104 void TestPlugin(const std::string& test_case,
(...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after
350 TEST_F(PluginInstallerDownloadTest, PluginInstallerDownloadPathTest) { 351 TEST_F(PluginInstallerDownloadTest, PluginInstallerDownloadPathTest) {
351 MessageLoop loop(MessageLoop::TYPE_IO); 352 MessageLoop loop(MessageLoop::TYPE_IO);
352 Start(); 353 Start();
353 loop.Run(); 354 loop.Run();
354 355
355 EXPECT_TRUE(success()); 356 EXPECT_TRUE(success());
356 EXPECT_TRUE(initial_download_path().BaseName().value() == 357 EXPECT_TRUE(initial_download_path().BaseName().value() ==
357 final_download_path().BaseName().value()); 358 final_download_path().BaseName().value());
358 } 359 }
359 #endif // defined(OS_WIN) 360 #endif // defined(OS_WIN)
OLDNEW
« no previous file with comments | « chrome/renderer/webplugin_delegate_proxy.cc ('k') | webkit/glue/webkit_glue.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698