Index: ppapi/tests/test_instance_deprecated.h |
diff --git a/ppapi/tests/test_instance_deprecated.h b/ppapi/tests/test_instance_deprecated.h |
index dfccd138938e2b8a8b56519920a78d379fc02bee..117402710b390ad2c66dee2ac0e9dd69e0d82ac3 100644 |
--- a/ppapi/tests/test_instance_deprecated.h |
+++ b/ppapi/tests/test_instance_deprecated.h |
@@ -21,11 +21,16 @@ 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); |
+ void set_instance_object_destroyed(bool destroyed) { |
+ instance_object_destroyed_ = destroyed; |
+ } |
+ |
protected: |
// Test case protected overrides. |
virtual pp::deprecated::ScriptableObject* CreateTestObject(); |
@@ -40,6 +45,9 @@ class TestInstance : public TestCase { |
// Value written by set_string which is called by the ScriptableObject. This |
// allows us to keep track of what was called. |
std::string string_; |
+ |
+ // Whether the instance object for this instance has been destroyed. |
+ bool instance_object_destroyed_; |
}; |
#endif // PPAPI_TESTS_TEST_INSTANCE_H_ |