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

Unified Diff: ppapi/tests/blink_test_plugin.cc

Issue 1747693002: Switch plugins/netscape-plugin-map-data-to-src.html to the PPAPI test plugin. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments Created 4 years, 10 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/plugins/netscape-plugin-map-data-to-src.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/tests/blink_test_plugin.cc
diff --git a/ppapi/tests/blink_test_plugin.cc b/ppapi/tests/blink_test_plugin.cc
index 945989dda5291cb1c642ab69b5d97d49db1f39d2..6fc8505c16b5f8beee925c1dfc25472f0bd02e84 100644
--- a/ppapi/tests/blink_test_plugin.cc
+++ b/ppapi/tests/blink_test_plugin.cc
@@ -3,6 +3,7 @@
// found in the LICENSE file.
#include <stdint.h>
+#include <string.h>
#include <sstream>
#include <utility>
@@ -36,6 +37,15 @@ class BlinkTestInstance : public pp::Instance {
~BlinkTestInstance() override {}
bool Init(uint32_t argc, const char* argn[], const char* argv[]) {
+ // Used by layout tests that want to inspect the args the plugin is
+ // instantiated with.
+ for (uint32_t i = 0; i < argc; ++i) {
+ if (!strcmp(argn[i], "logargs")) {
+ LogMessage("plugin args:");
+ for (uint32_t j = 0; j < argc; ++j)
+ LogMessage(" name = ", argn[j], ", value = ", argv[j]);
+ }
+ }
return RequestFilteringInputEvents(PP_INPUTEVENT_CLASS_MOUSE |
PP_INPUTEVENT_CLASS_KEYBOARD) == PP_OK;
}
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/plugins/netscape-plugin-map-data-to-src.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698