Chromium Code Reviews| Index: content/public/test/ppapi_test_utils.cc |
| diff --git a/content/public/test/ppapi_test_utils.cc b/content/public/test/ppapi_test_utils.cc |
| index 879dad657628d750215652d2d00819e7c66855e4..76485ee95c84e86c31fbe91f9844e71de4525b38 100644 |
| --- a/content/public/test/ppapi_test_utils.cc |
| +++ b/content/public/test/ppapi_test_utils.cc |
| @@ -95,6 +95,16 @@ bool RegisterPowerSaverTestPlugin(base::CommandLine* command_line) { |
| FILE_PATH_LITERAL("")); |
| } |
| +bool RegisterFlashTestPlugin(base::CommandLine* command_line) { |
| + base::FilePath::StringType library_name = |
| + base::FilePath::FromUTF8Unsafe(ppapi::kPowerSaverTestPluginName).value(); |
| + std::vector<PluginInfo> plugins; |
| + plugins.push_back( |
| + PluginInfo(library_name, FILE_PATH_LITERAL("#Shockwave Flash#"), |
|
tommycli
2016/09/26 22:54:49
I noticed that if I didn't set the version to 100.
raymes
2016/09/27 04:05:41
Done.
|
| + FILE_PATH_LITERAL("application/x-shockwave-flash"))); |
| + return RegisterPlugins(command_line, plugins); |
| +} |
| + |
| bool RegisterBlinkTestPlugin(base::CommandLine* command_line) { |
| #if defined(OS_WIN) |
| static const CharType kPluginLibrary[] = L"blink_test_plugin.dll"; |