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

Side by Side Diff: content/shell/tools/plugin/Tests/LeakWindowScriptableObject.cpp

Issue 1544273002: Switch to standard integer types in content/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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
OLDNEW
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
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");
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698