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_npobject_proxy_test.h" |
| 6 |
5 #include "base/basictypes.h" | 7 #include "base/basictypes.h" |
6 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
7 | 9 |
8 #include "webkit/plugins/npapi/test/plugin_npobject_proxy_test.h" | |
9 | |
10 namespace NPAPIClient { | 10 namespace NPAPIClient { |
11 | 11 |
12 NPObjectProxyTest::NPObjectProxyTest(NPP id, NPNetscapeFuncs *host_functions) | 12 NPObjectProxyTest::NPObjectProxyTest(NPP id, NPNetscapeFuncs *host_functions) |
13 : PluginTest(id, host_functions) { | 13 : PluginTest(id, host_functions) { |
14 } | 14 } |
15 | 15 |
16 NPError NPObjectProxyTest::SetWindow(NPWindow* pNPWindow) { | 16 NPError NPObjectProxyTest::SetWindow(NPWindow* pNPWindow) { |
17 #if !defined(OS_MACOSX) | 17 #if !defined(OS_MACOSX) |
18 if (pNPWindow->window == NULL) | 18 if (pNPWindow->window == NULL) |
19 return NPERR_NO_ERROR; | 19 return NPERR_NO_ERROR; |
(...skipping 20 matching lines...) Expand all Loading... |
40 NPVariant v; | 40 NPVariant v; |
41 HostFunctions()->invoke(id(), doc, append_child_id, &textv, 1, &v); | 41 HostFunctions()->invoke(id(), doc, append_child_id, &textv, 1, &v); |
42 | 42 |
43 // If this test failed, then we'd have crashed by now. | 43 // If this test failed, then we'd have crashed by now. |
44 SignalTestCompleted(); | 44 SignalTestCompleted(); |
45 | 45 |
46 return NPERR_NO_ERROR; | 46 return NPERR_NO_ERROR; |
47 } | 47 } |
48 | 48 |
49 } // namespace NPAPIClient | 49 } // namespace NPAPIClient |
OLD | NEW |