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

Unified Diff: ppapi/tests/testing_instance.h

Issue 9403039: PPAPI: Really force-free NPObjects on Instance destruction. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 10 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_instance_deprecated.cc ('k') | ppapi/tests/testing_instance.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/tests/testing_instance.h
diff --git a/ppapi/tests/testing_instance.h b/ppapi/tests/testing_instance.h
index 7b0517445655ac0a62d46b09fbb93c0a0dd1d2a0..41ec63e9cd20654b130f2cd5f4a48ce7fab3d1c2 100644
--- a/ppapi/tests/testing_instance.h
+++ b/ppapi/tests/testing_instance.h
@@ -89,6 +89,11 @@ pp::InstancePrivate {
// Sets the given cookie in the current document.
void SetCookie(const std::string& name, const std::string& value);
+ // Add a post-condition to the JavaScript on the test_case.html page. This
+ // JavaScript code will be run after the instance is shut down and must
+ // evaluate to |true| or the test will fail.
+ void AddPostCondition(const std::string& script);
+
private:
void ExecuteTests(int32_t unused);
@@ -106,6 +111,10 @@ pp::InstancePrivate {
// Runs 'PostMessage_SendingData.
std::string FilterForTestName(const std::string& name);
+ // Sends a test command to the page using PostMessage.
+ void SendTestCommand(const std::string& command);
+ void SendTestCommand(const std::string& command, const std::string& params);
+
// Appends a list of available tests to the console in the document.
void LogAvailableTests();
« no previous file with comments | « ppapi/tests/test_instance_deprecated.cc ('k') | ppapi/tests/testing_instance.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698