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

Unified Diff: ppapi/tests/test_instance_deprecated.h

Issue 9564024: Re-land http://codereview.chromium.org/9403039/, r124106 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove unnecessary change to ppapi_uitest.cc timer_ Created 8 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ppapi/tests/test_case.html ('k') | ppapi/tests/test_instance_deprecated.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/tests/test_instance_deprecated.h
diff --git a/ppapi/tests/test_instance_deprecated.h b/ppapi/tests/test_instance_deprecated.h
index 8b8150143e91a0798ae4c9bda571edecf0d6bb0a..9db1fb6190231c1e1222dcc82414ec4c70e15b5d 100644
--- a/ppapi/tests/test_instance_deprecated.h
+++ b/ppapi/tests/test_instance_deprecated.h
@@ -20,12 +20,19 @@ class TestInstance : public TestCase {
void set_string(const std::string& s) { string_ = s; }
+ // Leak a reference to the given var, but ignore the leak in the leak checking
+ // that happens at shutdown. This allows us to test the "ForceFree" that
+ // happens on instance shutdown.
+ void LeakReferenceAndIgnore(const pp::Var& leaked);
+
protected:
// Test case protected overrides.
virtual pp::deprecated::ScriptableObject* CreateTestObject();
private:
std::string TestExecuteScript();
+ std::string TestRecursiveObjects();
+ std::string TestLeakedObjectDestructors();
// Value written by set_string which is called by the ScriptableObject. This
// allows us to keep track of what was called.
« no previous file with comments | « ppapi/tests/test_case.html ('k') | ppapi/tests/test_instance_deprecated.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698