OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "content/test/plugin/plugin_test_factory.h" | 5 #include "content/test/plugin/plugin_test_factory.h" |
6 | 6 |
7 #include "content/test/plugin/plugin_arguments_test.h" | 7 #include "content/test/plugin/plugin_arguments_test.h" |
8 #include "content/test/plugin/plugin_delete_plugin_in_stream_test.h" | 8 #include "content/test/plugin/plugin_delete_plugin_in_stream_test.h" |
9 #include "content/test/plugin/plugin_delete_plugin_in_deallocate_test.h" | 9 #include "content/test/plugin/plugin_delete_plugin_in_deallocate_test.h" |
10 #include "content/test/plugin/plugin_get_javascript_url_test.h" | 10 #include "content/test/plugin/plugin_get_javascript_url_test.h" |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 new_test = new PluginThreadAsyncCallTest(instance, host_functions); | 90 new_test = new PluginThreadAsyncCallTest(instance, host_functions); |
91 } else if (test_name == "private") { | 91 } else if (test_name == "private") { |
92 new_test = new PrivateTest(instance, host_functions); | 92 new_test = new PrivateTest(instance, host_functions); |
93 } else if (test_name == "schedule_timer") { | 93 } else if (test_name == "schedule_timer") { |
94 new_test = new ScheduleTimerTest(instance, host_functions); | 94 new_test = new ScheduleTimerTest(instance, host_functions); |
95 #if defined(OS_WIN) | 95 #if defined(OS_WIN) |
96 // TODO(port): plugin_windowed_test.*. | 96 // TODO(port): plugin_windowed_test.*. |
97 } else if (test_name == "hidden_plugin" || | 97 } else if (test_name == "hidden_plugin" || |
98 test_name == "create_instance_in_paint" || | 98 test_name == "create_instance_in_paint" || |
99 test_name == "alert_in_window_message" || | 99 test_name == "alert_in_window_message" || |
100 test_name == "ensure_scripting_works_in_destroy") { | 100 test_name == "ensure_scripting_works_in_destroy" || |
| 101 test_name == "set_title_in_paint") { |
101 new_test = new WindowedPluginTest(instance, host_functions); | 102 new_test = new WindowedPluginTest(instance, host_functions); |
102 #endif | 103 #endif |
103 } else if (test_name == "setup") { | 104 } else if (test_name == "setup") { |
104 // "plugin" is the name for plugin documents. | 105 // "plugin" is the name for plugin documents. |
105 new_test = new PluginSetupTest(instance, host_functions); | 106 new_test = new PluginSetupTest(instance, host_functions); |
106 } else if (test_name == "delete_plugin_in_deallocate_test") { | 107 } else if (test_name == "delete_plugin_in_deallocate_test") { |
107 new_test = new DeletePluginInDeallocateTest(instance, host_functions); | 108 new_test = new DeletePluginInDeallocateTest(instance, host_functions); |
108 } else if (test_name == "plugin_request_read_single_range") { | 109 } else if (test_name == "plugin_request_read_single_range") { |
109 new_test = new PluginRequestReadTest(instance, host_functions); | 110 new_test = new PluginRequestReadTest(instance, host_functions); |
110 } | 111 } |
111 | 112 |
112 return new_test; | 113 return new_test; |
113 } | 114 } |
114 | 115 |
115 } // namespace NPAPIClient | 116 } // namespace NPAPIClient |
OLD | NEW |