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

Unified Diff: ppapi/tests/testing_instance.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_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 8dadb20861094b90ef6aabecf854fc21cf93ceb2..701c5ca03b27ea786481f4997d5c93e964ff947c 100644
--- a/ppapi/tests/testing_instance.h
+++ b/ppapi/tests/testing_instance.h
@@ -92,6 +92,11 @@ pp::InstancePrivate {
void ReportProgress(const std::string& progress_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);
@@ -109,6 +114,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