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

Unified Diff: webkit/glue/plugins/test/plugin_windowless_test.cc

Issue 1073003: Added a test for pepper3d. It ensures that we can successfully load a pepper ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 9 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 | « webkit/glue/plugins/test/plugin_windowless_test.h ('k') | webkit/glue/plugins/test/resource.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/plugins/test/plugin_windowless_test.cc
===================================================================
--- webkit/glue/plugins/test/plugin_windowless_test.cc (revision 42644)
+++ webkit/glue/plugins/test/plugin_windowless_test.cc (working copy)
@@ -16,10 +16,9 @@
// Remember the first plugin instance for tests involving multiple instances
WindowlessPluginTest* g_other_instance = NULL;
-WindowlessPluginTest::WindowlessPluginTest(
- NPP id, NPNetscapeFuncs *host_functions, const std::string& test_name)
- : PluginTest(id, host_functions),
- test_name_(test_name) {
+WindowlessPluginTest::WindowlessPluginTest(NPP id,
+ NPNetscapeFuncs *host_functions)
+ : PluginTest(id, host_functions) {
if (!g_other_instance)
g_other_instance = this;
}
@@ -91,22 +90,22 @@
DeleteObject(clipping_region);
#endif
- if (test_name_ == "execute_script_delete_in_paint") {
+ if (test_name() == "execute_script_delete_in_paint") {
ExecuteScriptDeleteInPaint(browser);
- } else if (test_name_ == "multiple_instances_sync_calls") {
+ } else if (test_name() == "multiple_instances_sync_calls") {
MultipleInstanceSyncCalls(browser);
}
#if OS_MACOSX
} else if (IsWindowActivationEvent(np_event) &&
- test_name_ == "convert_point") {
+ test_name() == "convert_point") {
ConvertPoint(browser);
#endif
} else if (IsMouseMoveEvent(np_event) &&
- test_name_ == "execute_script_delete_in_mouse_move") {
+ test_name() == "execute_script_delete_in_mouse_move") {
ExecuteScript(browser, id(), "DeletePluginWithinScript();", NULL);
SignalTestCompleted();
} else if (IsMouseUpEvent(np_event) &&
- test_name_ == "delete_frame_test") {
+ test_name() == "delete_frame_test") {
ExecuteScript(
browser, id(),
"parent.document.getElementById('frame').outerHTML = ''", NULL);
« no previous file with comments | « webkit/glue/plugins/test/plugin_windowless_test.h ('k') | webkit/glue/plugins/test/resource.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698