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

Side by Side Diff: content/test/plugin/plugin_delete_plugin_in_stream_test.cc

Issue 19697013: Move NPAPI test plugin to content/test/plugin. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 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
OLDNEW
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/plugins/npapi/test/plugin_delete_plugin_in_stream_test.h" 5 #include "content/test/plugin/plugin_delete_plugin_in_stream_test.h"
6 6
7 #include "webkit/plugins/npapi/test/plugin_client.h" 7 #include "content/test/plugin/plugin_client.h"
8 8
9 namespace NPAPIClient { 9 namespace NPAPIClient {
10 10
11 #define kUrl "javascript:window.location+\"\"" 11 #define kUrl "javascript:window.location+\"\""
12 #define kUrlStreamId 1 12 #define kUrlStreamId 1
13 13
14 DeletePluginInStreamTest::DeletePluginInStreamTest(NPP id, NPNetscapeFuncs *host _functions) 14 DeletePluginInStreamTest::DeletePluginInStreamTest(NPP id, NPNetscapeFuncs *host _functions)
15 : PluginTest(id, host_functions), 15 : PluginTest(id, host_functions),
16 test_started_(false) { 16 test_started_(false) {
17 } 17 }
(...skipping 20 matching lines...) Expand all
38 NPObject *window_obj = NULL; 38 NPObject *window_obj = NULL;
39 HostFunctions()->getvalue(id(), NPNVWindowNPObject, &window_obj); 39 HostFunctions()->getvalue(id(), NPNVWindowNPObject, &window_obj);
40 40
41 NPVariant rv; 41 NPVariant rv;
42 HostFunctions()->invoke(id(), window_obj, delete_id, NULL, 0, &rv); 42 HostFunctions()->invoke(id(), window_obj, delete_id, NULL, 0, &rv);
43 43
44 return NPERR_NO_ERROR; 44 return NPERR_NO_ERROR;
45 } 45 }
46 46
47 } // namespace NPAPIClient 47 } // namespace NPAPIClient
OLDNEW
« no previous file with comments | « content/test/plugin/plugin_delete_plugin_in_stream_test.h ('k') | content/test/plugin/plugin_execute_stream_javascript.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698