OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 #include "base/string_util.h" | 5 #include "base/string_util.h" |
6 #include "webkit/glue/plugins/test/plugin_client.h" | 6 #include "webkit/glue/plugins/test/plugin_client.h" |
7 #include "webkit/glue/plugins/test/plugin_arguments_test.h" | 7 #include "webkit/glue/plugins/test/plugin_arguments_test.h" |
8 #include "webkit/glue/plugins/test/plugin_delete_plugin_in_stream_test.h" | 8 #include "webkit/glue/plugins/test/plugin_delete_plugin_in_stream_test.h" |
9 #include "webkit/glue/plugins/test/plugin_get_javascript_url_test.h" | 9 #include "webkit/glue/plugins/test/plugin_get_javascript_url_test.h" |
10 #include "webkit/glue/plugins/test/plugin_get_javascript_url2_test.h" | 10 #include "webkit/glue/plugins/test/plugin_get_javascript_url2_test.h" |
11 #include "webkit/glue/plugins/test/plugin_geturl_test.h" | 11 #include "webkit/glue/plugins/test/plugin_geturl_test.h" |
12 #include "webkit/glue/plugins/test/plugin_javascript_open_popup.h" | 12 #include "webkit/glue/plugins/test/plugin_javascript_open_popup.h" |
13 #include "webkit/glue/plugins/test/plugin_new_fails_test.h" | 13 #include "webkit/glue/plugins/test/plugin_new_fails_test.h" |
14 #include "webkit/glue/plugins/test/plugin_private_test.h" | 14 #include "webkit/glue/plugins/test/plugin_private_test.h" |
| 15 #include "webkit/glue/plugins/test/plugin_schedule_timer_test.h" |
15 #include "webkit/glue/plugins/test/plugin_npobject_lifetime_test.h" | 16 #include "webkit/glue/plugins/test/plugin_npobject_lifetime_test.h" |
16 #include "webkit/glue/plugins/test/plugin_npobject_proxy_test.h" | 17 #include "webkit/glue/plugins/test/plugin_npobject_proxy_test.h" |
17 #include "webkit/glue/plugins/test/plugin_window_size_test.h" | 18 #include "webkit/glue/plugins/test/plugin_window_size_test.h" |
18 #if defined(OS_WIN) | 19 #if defined(OS_WIN) |
19 #include "webkit/glue/plugins/test/plugin_windowed_test.h" | 20 #include "webkit/glue/plugins/test/plugin_windowed_test.h" |
20 #endif | 21 #endif |
21 #include "webkit/glue/plugins/test/plugin_windowless_test.h" | 22 #include "webkit/glue/plugins/test/plugin_windowless_test.h" |
22 #include "third_party/npapi/bindings/npapi.h" | 23 #include "third_party/npapi/bindings/npapi.h" |
23 #include "third_party/npapi/bindings/npruntime.h" | 24 #include "third_party/npapi/bindings/npruntime.h" |
24 | 25 |
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
149 #endif | 150 #endif |
150 } else if (test_name == "plugin_javascript_open_popup_with_plugin") { | 151 } else if (test_name == "plugin_javascript_open_popup_with_plugin") { |
151 new_test = new NPAPIClient::ExecuteJavascriptOpenPopupWithPluginTest( | 152 new_test = new NPAPIClient::ExecuteJavascriptOpenPopupWithPluginTest( |
152 instance, NPAPIClient::PluginClient::HostFunctions()); | 153 instance, NPAPIClient::PluginClient::HostFunctions()); |
153 } else if (test_name == "plugin_popup_with_plugin_target") { | 154 } else if (test_name == "plugin_popup_with_plugin_target") { |
154 new_test = new NPAPIClient::ExecuteJavascriptPopupWindowTargetPluginTest( | 155 new_test = new NPAPIClient::ExecuteJavascriptPopupWindowTargetPluginTest( |
155 instance, NPAPIClient::PluginClient::HostFunctions()); | 156 instance, NPAPIClient::PluginClient::HostFunctions()); |
156 } else if (test_name == "private") { | 157 } else if (test_name == "private") { |
157 new_test = new NPAPIClient::PrivateTest(instance, | 158 new_test = new NPAPIClient::PrivateTest(instance, |
158 NPAPIClient::PluginClient::HostFunctions()); | 159 NPAPIClient::PluginClient::HostFunctions()); |
| 160 } else if (test_name == "schedule_timer") { |
| 161 new_test = new NPAPIClient::ScheduleTimerTest( |
| 162 instance, NPAPIClient::PluginClient::HostFunctions()); |
159 #if defined(OS_WIN) | 163 #if defined(OS_WIN) |
160 // TODO(port): plugin_windowed_test.*. | 164 // TODO(port): plugin_windowed_test.*. |
161 } else if (test_name == "hidden_plugin" || | 165 } else if (test_name == "hidden_plugin" || |
162 test_name == "create_instance_in_paint" || | 166 test_name == "create_instance_in_paint" || |
163 test_name == "alert_in_window_message" || | 167 test_name == "alert_in_window_message" || |
164 test_name == "ensure_scripting_works_in_destroy") { | 168 test_name == "ensure_scripting_works_in_destroy") { |
165 new_test = new NPAPIClient::WindowedPluginTest(instance, | 169 new_test = new NPAPIClient::WindowedPluginTest(instance, |
166 NPAPIClient::PluginClient::HostFunctions()); | 170 NPAPIClient::PluginClient::HostFunctions()); |
167 #endif | 171 #endif |
168 } else { | 172 } else { |
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
306 (NPAPIClient::PluginTest*)instance->pdata; | 310 (NPAPIClient::PluginTest*)instance->pdata; |
307 | 311 |
308 return plugin->HandleEvent(event); | 312 return plugin->HandleEvent(event); |
309 } | 313 } |
310 | 314 |
311 void* NPP_GetJavaClass(void) { | 315 void* NPP_GetJavaClass(void) { |
312 // XXXMB - do work here. | 316 // XXXMB - do work here. |
313 return NULL; | 317 return NULL; |
314 } | 318 } |
315 } // extern "C" | 319 } // extern "C" |
OLD | NEW |