| 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/plugins/npapi/test/plugin_test_factory.h" |
| 6 | 6 |
| 7 #include "webkit/glue/plugins/test/plugin_arguments_test.h" | 7 #include "webkit/plugins/npapi/test/plugin_arguments_test.h" |
| 8 #include "webkit/glue/plugins/test/plugin_delete_plugin_in_stream_test.h" | 8 #include "webkit/plugins/npapi/test/plugin_delete_plugin_in_stream_test.h" |
| 9 #include "webkit/glue/plugins/test/plugin_get_javascript_url_test.h" | 9 #include "webkit/plugins/npapi/test/plugin_get_javascript_url_test.h" |
| 10 #include "webkit/glue/plugins/test/plugin_get_javascript_url2_test.h" | 10 #include "webkit/plugins/npapi/test/plugin_get_javascript_url2_test.h" |
| 11 #include "webkit/glue/plugins/test/plugin_geturl_test.h" | 11 #include "webkit/plugins/npapi/test/plugin_geturl_test.h" |
| 12 #include "webkit/glue/plugins/test/plugin_javascript_open_popup.h" | 12 #include "webkit/plugins/npapi/test/plugin_javascript_open_popup.h" |
| 13 #include "webkit/glue/plugins/test/plugin_new_fails_test.h" | 13 #include "webkit/plugins/npapi/test/plugin_new_fails_test.h" |
| 14 #include "webkit/glue/plugins/test/plugin_npobject_lifetime_test.h" | 14 #include "webkit/plugins/npapi/test/plugin_npobject_lifetime_test.h" |
| 15 #include "webkit/glue/plugins/test/plugin_npobject_proxy_test.h" | 15 #include "webkit/plugins/npapi/test/plugin_npobject_proxy_test.h" |
| 16 #include "webkit/glue/plugins/test/plugin_private_test.h" | 16 #include "webkit/plugins/npapi/test/plugin_private_test.h" |
| 17 #include "webkit/glue/plugins/test/plugin_schedule_timer_test.h" | 17 #include "webkit/plugins/npapi/test/plugin_schedule_timer_test.h" |
| 18 #include "webkit/glue/plugins/test/plugin_setup_test.h" | 18 #include "webkit/plugins/npapi/test/plugin_setup_test.h" |
| 19 #include "webkit/glue/plugins/test/plugin_thread_async_call_test.h" | 19 #include "webkit/plugins/npapi/test/plugin_thread_async_call_test.h" |
| 20 #include "webkit/glue/plugins/test/plugin_window_size_test.h" | 20 #include "webkit/plugins/npapi/test/plugin_window_size_test.h" |
| 21 #if defined(OS_WIN) | 21 #if defined(OS_WIN) |
| 22 #include "webkit/glue/plugins/test/plugin_windowed_test.h" | 22 #include "webkit/plugins/npapi/test/plugin_windowed_test.h" |
| 23 #endif | 23 #endif |
| 24 #include "webkit/glue/plugins/test/plugin_windowless_test.h" | 24 #include "webkit/plugins/npapi/test/plugin_windowless_test.h" |
| 25 | 25 |
| 26 namespace NPAPIClient { | 26 namespace NPAPIClient { |
| 27 | 27 |
| 28 PluginTest* CreatePluginTest(const std::string& test_name, | 28 PluginTest* CreatePluginTest(const std::string& test_name, |
| 29 NPP instance, | 29 NPP instance, |
| 30 NPNetscapeFuncs* host_functions) { | 30 NPNetscapeFuncs* host_functions) { |
| 31 PluginTest* new_test = NULL; | 31 PluginTest* new_test = NULL; |
| 32 | 32 |
| 33 if (test_name == "arguments") { | 33 if (test_name == "arguments") { |
| 34 new_test = new PluginArgumentsTest(instance, host_functions); | 34 new_test = new PluginArgumentsTest(instance, host_functions); |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 #endif | 95 #endif |
| 96 } else if (test_name == "setup") { | 96 } else if (test_name == "setup") { |
| 97 // "plugin" is the name for plugin documents. | 97 // "plugin" is the name for plugin documents. |
| 98 new_test = new PluginSetupTest(instance, host_functions); | 98 new_test = new PluginSetupTest(instance, host_functions); |
| 99 } | 99 } |
| 100 | 100 |
| 101 return new_test; | 101 return new_test; |
| 102 } | 102 } |
| 103 | 103 |
| 104 } // namespace NPAPIClient | 104 } // namespace NPAPIClient |
| OLD | NEW |