| 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_identity_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_identity_test.h" | |
| 9 | |
| 10 namespace { | 10 namespace { |
| 11 | 11 |
| 12 class NPThingy : public NPObject { | 12 class NPThingy : public NPObject { |
| 13 public: | 13 public: |
| 14 NPThingy() : NPObject() {} | 14 NPThingy() : NPObject() {} |
| 15 | 15 |
| 16 static NPObject* Allocate(NPP npp, NPClass* npclass) { | 16 static NPObject* Allocate(NPP npp, NPClass* npclass) { |
| 17 return new NPThingy(); | 17 return new NPThingy(); |
| 18 } | 18 } |
| 19 | 19 |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 | 81 |
| 82 HostFunctions()->releaseobject(thingy); | 82 HostFunctions()->releaseobject(thingy); |
| 83 | 83 |
| 84 // If this test failed, then we'd have crashed by now. | 84 // If this test failed, then we'd have crashed by now. |
| 85 SignalTestCompleted(); | 85 SignalTestCompleted(); |
| 86 | 86 |
| 87 return NPERR_NO_ERROR; | 87 return NPERR_NO_ERROR; |
| 88 } | 88 } |
| 89 | 89 |
| 90 } // namespace NPAPIClient | 90 } // namespace NPAPIClient |
| OLD | NEW |