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