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

Unified Diff: content/public/test/ppapi_test_utils.cc

Issue 2361453004: Add browsertest for Flash permission prompt (Closed)
Patch Set: Add browesrtest for Flash permission prompt Created 4 years, 3 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 side-by-side diff with in-line comments
Download patch
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";
« content/public/test/ppapi_test_utils.h ('K') | « content/public/test/ppapi_test_utils.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698