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

Side by Side Diff: webkit/tools/test_shell/test_shell.cc

Issue 5334006: Use the upstream test plugin in test_shell. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 10 years, 1 month 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 | « no previous file | webkit/tools/test_shell/test_shell.gypi » ('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 #undef LOG 5 #undef LOG
6 6
7 #include "webkit/tools/test_shell/test_shell.h" 7 #include "webkit/tools/test_shell/test_shell.h"
8 8
9 #include "base/base_paths.h" 9 #include "base/base_paths.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 859 matching lines...) Expand 10 before | Expand all | Expand 10 after
870 } 870 }
871 871
872 bool GetFontTable(int fd, uint32_t table, uint8_t* output, 872 bool GetFontTable(int fd, uint32_t table, uint8_t* output,
873 size_t* output_length) { 873 size_t* output_length) {
874 return false; 874 return false;
875 } 875 }
876 #endif 876 #endif
877 877
878 void GetPlugins(bool refresh, std::vector<WebPluginInfo>* plugins) { 878 void GetPlugins(bool refresh, std::vector<WebPluginInfo>* plugins) {
879 NPAPI::PluginList::Singleton()->GetPlugins(refresh, plugins); 879 NPAPI::PluginList::Singleton()->GetPlugins(refresh, plugins);
880 // Don't load the upstream TestNetscapePlugIn, we're not ready for it yet. 880 // Don't load the forked TestNetscapePlugIn in the chromium code, use
881 // the copy in webkit.org's repository instead.
881 const FilePath::StringType kPluginBlackList[] = { 882 const FilePath::StringType kPluginBlackList[] = {
882 FILE_PATH_LITERAL("npTestNetscapePlugIn.dll"), 883 FILE_PATH_LITERAL("npapi_layout_test_plugin.dll"),
883 FILE_PATH_LITERAL("WebKitTestNetscapePlugIn.plugin"), 884 FILE_PATH_LITERAL("TestNetscapePlugIn.plugin"),
884 FILE_PATH_LITERAL("libTestNetscapePlugIn.so"), 885 FILE_PATH_LITERAL("libnpapi_layout_test_plugin.so"),
885 }; 886 };
886 for (int i = plugins->size() - 1; i >= 0; --i) { 887 for (int i = plugins->size() - 1; i >= 0; --i) {
887 WebPluginInfo plugin_info = plugins->at(i); 888 WebPluginInfo plugin_info = plugins->at(i);
888 for (size_t j = 0; j < arraysize(kPluginBlackList); ++j) { 889 for (size_t j = 0; j < arraysize(kPluginBlackList); ++j) {
889 if (plugin_info.path.BaseName() == FilePath(kPluginBlackList[j])) { 890 if (plugin_info.path.BaseName() == FilePath(kPluginBlackList[j])) {
890 NPAPI::PluginList::Singleton()->DisablePlugin(plugin_info.path); 891 NPAPI::PluginList::Singleton()->DisablePlugin(plugin_info.path);
891 plugins->erase(plugins->begin() + i); 892 plugins->erase(plugins->begin() + i);
892 } 893 }
893 } 894 }
894 } 895 }
895 } 896 }
896 897
897 } // namespace webkit_glue 898 } // namespace webkit_glue
OLDNEW
« no previous file with comments | « no previous file | webkit/tools/test_shell/test_shell.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698