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

Side by Side Diff: webkit/glue/plugins/test/plugin_client.cc

Issue 501074: Enable windowless-based npapi_test_plugin tests on the Mac. (Closed)
Patch Set: Created 11 years 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
« no previous file with comments | « chrome/test/ui/npapi_uitest.cc ('k') | webkit/glue/plugins/test/plugin_windowless_test.cc » ('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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 #if defined(OS_WIN) 5 #if defined(OS_WIN)
6 #include <windows.h> 6 #include <windows.h>
7 #endif 7 #endif
8 8
9 #include "base/string_util.h" 9 #include "base/string_util.h"
10 #include "webkit/glue/plugins/test/plugin_client.h" 10 #include "webkit/glue/plugins/test/plugin_client.h"
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 new_test = new NPAPIClient::PluginArgumentsTest(instance, 117 new_test = new NPAPIClient::PluginArgumentsTest(instance,
118 NPAPIClient::PluginClient::HostFunctions()); 118 NPAPIClient::PluginClient::HostFunctions());
119 } else if (test_name == "geturl" || test_name == "geturl_404_response" || 119 } else if (test_name == "geturl" || test_name == "geturl_404_response" ||
120 test_name == "geturl_fail_write" || 120 test_name == "geturl_fail_write" ||
121 test_name == "plugin_referrer_test") { 121 test_name == "plugin_referrer_test") {
122 new_test = new NPAPIClient::PluginGetURLTest(instance, 122 new_test = new NPAPIClient::PluginGetURLTest(instance,
123 NPAPIClient::PluginClient::HostFunctions()); 123 NPAPIClient::PluginClient::HostFunctions());
124 } else if (test_name == "npobject_proxy") { 124 } else if (test_name == "npobject_proxy") {
125 new_test = new NPAPIClient::NPObjectProxyTest(instance, 125 new_test = new NPAPIClient::NPObjectProxyTest(instance,
126 NPAPIClient::PluginClient::HostFunctions()); 126 NPAPIClient::PluginClient::HostFunctions());
127 #if defined(OS_WIN) 127 #if defined(OS_WIN) || defined(OS_MACOSX)
128 // TODO(port): plugin_windowless_test.*. 128 // TODO(port): plugin_windowless_test.*.
129 } else if (test_name == "execute_script_delete_in_paint" || 129 } else if (test_name == "execute_script_delete_in_paint" ||
130 test_name == "execute_script_delete_in_mouse_move" || 130 test_name == "execute_script_delete_in_mouse_move" ||
131 test_name == "delete_frame_test" || 131 test_name == "delete_frame_test" ||
132 test_name == "multiple_instances_sync_calls" || 132 test_name == "multiple_instances_sync_calls" ||
133 test_name == "no_hang_if_init_crashes") { 133 test_name == "no_hang_if_init_crashes") {
134 new_test = new NPAPIClient::WindowlessPluginTest(instance, 134 new_test = new NPAPIClient::WindowlessPluginTest(instance,
135 NPAPIClient::PluginClient::HostFunctions(), test_name); 135 NPAPIClient::PluginClient::HostFunctions(), test_name);
136 windowless_plugin = true; 136 windowless_plugin = true;
137 #endif 137 #endif
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
330 (NPAPIClient::PluginTest*)instance->pdata; 330 (NPAPIClient::PluginTest*)instance->pdata;
331 331
332 return plugin->HandleEvent(event); 332 return plugin->HandleEvent(event);
333 } 333 }
334 334
335 void* NPP_GetJavaClass(void) { 335 void* NPP_GetJavaClass(void) {
336 // XXXMB - do work here. 336 // XXXMB - do work here.
337 return NULL; 337 return NULL;
338 } 338 }
339 } // extern "C" 339 } // extern "C"
OLDNEW
« no previous file with comments | « chrome/test/ui/npapi_uitest.cc ('k') | webkit/glue/plugins/test/plugin_windowless_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698