| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 <stdint.h> |
| 6 |
| 5 #include "PluginTest.h" | 7 #include "PluginTest.h" |
| 6 | 8 |
| 7 using namespace std; | 9 using namespace std; |
| 8 | 10 |
| 9 class LeakWindowScriptableObject : public PluginTest { | 11 class LeakWindowScriptableObject : public PluginTest { |
| 10 public: | 12 public: |
| 11 LeakWindowScriptableObject(NPP npp, const string& identifier) | 13 LeakWindowScriptableObject(NPP npp, const string& identifier) |
| 12 : PluginTest(npp, identifier) | 14 : PluginTest(npp, identifier) |
| 13 { | 15 { |
| 14 } | 16 } |
| (...skipping 23 matching lines...) Expand all Loading... |
| 38 log("Fail: window.self is not an object"); | 40 log("Fail: window.self is not an object"); |
| 39 return NPERR_NO_ERROR; | 41 return NPERR_NO_ERROR; |
| 40 } | 42 } |
| 41 | 43 |
| 42 // Leak both references to the window script object. | 44 // Leak both references to the window script object. |
| 43 return NPERR_NO_ERROR; | 45 return NPERR_NO_ERROR; |
| 44 } | 46 } |
| 45 }; | 47 }; |
| 46 | 48 |
| 47 static PluginTest::Register<LeakWindowScriptableObject> leakWindowScriptableObje
ct("leak-window-scriptable-object"); | 49 static PluginTest::Register<LeakWindowScriptableObject> leakWindowScriptableObje
ct("leak-window-scriptable-object"); |
| OLD | NEW |