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

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

Issue 155182: Fix NPAPIIncognitoTester.PrivateEnabled (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 5 months 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 | Annotate | Revision Log
« no previous file with comments | « chrome/test/ui/npapi_uitest.cc ('k') | no next file » | 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) 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_geturl_test.h" 10 #include "webkit/glue/plugins/test/plugin_geturl_test.h"
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 new_test = new NPAPIClient::NPObjectDeletePluginInNPN_Evaluate(instance, 142 new_test = new NPAPIClient::NPObjectDeletePluginInNPN_Evaluate(instance,
143 NPAPIClient::PluginClient::HostFunctions()); 143 NPAPIClient::PluginClient::HostFunctions());
144 #endif 144 #endif
145 } else if (test_name == "plugin_javascript_open_popup_with_plugin") { 145 } else if (test_name == "plugin_javascript_open_popup_with_plugin") {
146 new_test = new NPAPIClient::ExecuteJavascriptOpenPopupWithPluginTest( 146 new_test = new NPAPIClient::ExecuteJavascriptOpenPopupWithPluginTest(
147 instance, NPAPIClient::PluginClient::HostFunctions()); 147 instance, NPAPIClient::PluginClient::HostFunctions());
148 } else if (test_name == "plugin_popup_with_plugin_target") { 148 } else if (test_name == "plugin_popup_with_plugin_target") {
149 new_test = new NPAPIClient::ExecuteJavascriptPopupWindowTargetPluginTest( 149 new_test = new NPAPIClient::ExecuteJavascriptPopupWindowTargetPluginTest(
150 instance, NPAPIClient::PluginClient::HostFunctions()); 150 instance, NPAPIClient::PluginClient::HostFunctions());
151 } else if (test_name == "private") { 151 } else if (test_name == "private") {
152 // http://code.google.com/p/chromium/issues/detail?id=16149
153 #if 0
154 new_test = new NPAPIClient::PrivateTest(instance, 152 new_test = new NPAPIClient::PrivateTest(instance,
155 NPAPIClient::PluginClient::HostFunctions()); 153 NPAPIClient::PluginClient::HostFunctions());
156 #endif
157 #if defined(OS_WIN) 154 #if defined(OS_WIN)
158 // TODO(port): plugin_windowed_test.*. 155 // TODO(port): plugin_windowed_test.*.
159 } else if (test_name == "hidden_plugin" || 156 } else if (test_name == "hidden_plugin" ||
160 test_name == "create_instance_in_paint" || 157 test_name == "create_instance_in_paint" ||
161 test_name == "alert_in_window_message") { 158 test_name == "alert_in_window_message") {
162 new_test = new NPAPIClient::WindowedPluginTest(instance, 159 new_test = new NPAPIClient::WindowedPluginTest(instance,
163 NPAPIClient::PluginClient::HostFunctions()); 160 NPAPIClient::PluginClient::HostFunctions());
164 #endif 161 #endif
165 } else { 162 } else {
166 // If we don't have a test case for this, create a 163 // If we don't have a test case for this, create a
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
303 (NPAPIClient::PluginTest*)instance->pdata; 300 (NPAPIClient::PluginTest*)instance->pdata;
304 301
305 return plugin->HandleEvent(event); 302 return plugin->HandleEvent(event);
306 } 303 }
307 304
308 void* NPP_GetJavaClass(void) { 305 void* NPP_GetJavaClass(void) {
309 // XXXMB - do work here. 306 // XXXMB - do work here.
310 return NULL; 307 return NULL;
311 } 308 }
312 } // extern "C" 309 } // extern "C"
OLDNEW
« no previous file with comments | « chrome/test/ui/npapi_uitest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698