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

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

Issue 1661: port some parts of webkit/glue/plugins/test to Linux... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 12 years, 3 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) 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/basictypes.h"
6
7 #if defined(OS_WIN)
5 #define STRSAFE_NO_DEPRECATE 8 #define STRSAFE_NO_DEPRECATE
6 #include <strsafe.h> 9 #include <strsafe.h>
10 #endif
11
7 #include "webkit/glue/plugins/test/plugin_npobject_proxy_test.h" 12 #include "webkit/glue/plugins/test/plugin_npobject_proxy_test.h"
8 13
9 namespace NPAPIClient { 14 namespace NPAPIClient {
10 15
11 NPObjectProxyTest::NPObjectProxyTest(NPP id, NPNetscapeFuncs *host_functions) 16 NPObjectProxyTest::NPObjectProxyTest(NPP id, NPNetscapeFuncs *host_functions)
12 : PluginTest(id, host_functions) { 17 : PluginTest(id, host_functions) {
13 } 18 }
14 19
15 NPError NPObjectProxyTest::SetWindow(NPWindow* pNPWindow) { 20 NPError NPObjectProxyTest::SetWindow(NPWindow* pNPWindow) {
16 NPIdentifier document_id = HostFunctions()->getstringidentifier("document"); 21 NPIdentifier document_id = HostFunctions()->getstringidentifier("document");
(...skipping 18 matching lines...) Expand all
35 HostFunctions()->invoke(id(), doc, append_child_id, &textv, 1, &v); 40 HostFunctions()->invoke(id(), doc, append_child_id, &textv, 1, &v);
36 41
37 // If this test failed, then we'd have crashed by now. 42 // If this test failed, then we'd have crashed by now.
38 SignalTestCompleted(); 43 SignalTestCompleted();
39 44
40 return NPERR_NO_ERROR; 45 return NPERR_NO_ERROR;
41 } 46 }
42 47
43 } // namespace NPAPIClient 48 } // namespace NPAPIClient
44 49
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698