OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 "webkit/glue/plugins/test/plugin_test_factory.h" | 5 #include "webkit/glue/plugins/test/plugin_test_factory.h" |
6 | 6 |
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_npobject_lifetime_test.h" | 14 #include "webkit/glue/plugins/test/plugin_npobject_lifetime_test.h" |
15 #include "webkit/glue/plugins/test/plugin_npobject_proxy_test.h" | 15 #include "webkit/glue/plugins/test/plugin_npobject_proxy_test.h" |
16 #include "webkit/glue/plugins/test/plugin_private_test.h" | 16 #include "webkit/glue/plugins/test/plugin_private_test.h" |
17 #include "webkit/glue/plugins/test/plugin_schedule_timer_test.h" | 17 #include "webkit/glue/plugins/test/plugin_schedule_timer_test.h" |
| 18 #include "webkit/glue/plugins/test/plugin_setup_test.h" |
18 #include "webkit/glue/plugins/test/plugin_thread_async_call_test.h" | 19 #include "webkit/glue/plugins/test/plugin_thread_async_call_test.h" |
19 #include "webkit/glue/plugins/test/plugin_window_size_test.h" | 20 #include "webkit/glue/plugins/test/plugin_window_size_test.h" |
20 #if defined(OS_WIN) | 21 #if defined(OS_WIN) |
21 #include "webkit/glue/plugins/test/plugin_windowed_test.h" | 22 #include "webkit/glue/plugins/test/plugin_windowed_test.h" |
22 #endif | 23 #endif |
23 #include "webkit/glue/plugins/test/plugin_windowless_test.h" | 24 #include "webkit/glue/plugins/test/plugin_windowless_test.h" |
24 | 25 |
25 namespace NPAPIClient { | 26 namespace NPAPIClient { |
26 | 27 |
27 PluginTest* CreatePluginTest(const std::string& test_name, | 28 PluginTest* CreatePluginTest(const std::string& test_name, |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 new_test = new ScheduleTimerTest(instance, host_functions); | 85 new_test = new ScheduleTimerTest(instance, host_functions); |
85 #if defined(OS_WIN) | 86 #if defined(OS_WIN) |
86 // TODO(port): plugin_windowed_test.*. | 87 // TODO(port): plugin_windowed_test.*. |
87 } else if (test_name == "hidden_plugin" || | 88 } else if (test_name == "hidden_plugin" || |
88 test_name == "create_instance_in_paint" || | 89 test_name == "create_instance_in_paint" || |
89 test_name == "alert_in_window_message" || | 90 test_name == "alert_in_window_message" || |
90 test_name == "ensure_scripting_works_in_destroy" || | 91 test_name == "ensure_scripting_works_in_destroy" || |
91 test_name == "invoke_js_function_on_create") { | 92 test_name == "invoke_js_function_on_create") { |
92 new_test = new WindowedPluginTest(instance, host_functions); | 93 new_test = new WindowedPluginTest(instance, host_functions); |
93 #endif | 94 #endif |
| 95 } else if (test_name == "setup") { |
| 96 // "plugin" is the name for plugin documents. |
| 97 new_test = new PluginSetupTest(instance, host_functions); |
94 } | 98 } |
95 | 99 |
96 return new_test; | 100 return new_test; |
97 } | 101 } |
98 | 102 |
99 } // namespace NPAPIClient | 103 } // namespace NPAPIClient |
OLD | NEW |