Index: ppapi/tests/testing_instance.cc |
=================================================================== |
--- ppapi/tests/testing_instance.cc (revision 126008) |
+++ ppapi/tests/testing_instance.cc (working copy) |
@@ -29,7 +29,6 @@ |
: pp::InstancePrivate(instance), |
#endif |
current_case_(NULL), |
- progress_cookie_number_(0), |
executed_tests_(false), |
nacl_mode_(false) { |
callback_factory_.Initialize(this); |
@@ -233,10 +232,10 @@ |
void TestingInstance::ReportProgress(const std::string& progress_value) { |
// Use streams since nacl doesn't compile base yet (for StringPrintf). |
- std::ostringstream cookie_name; |
- cookie_name << "PPAPI_PROGRESS_" << progress_cookie_number_; |
- SetCookie(cookie_name.str(), progress_value); |
- progress_cookie_number_++; |
+ std::ostringstream script; |
+ script << "window.domAutomationController.setAutomationId(0);" << |
+ "window.domAutomationController.send(\"" << progress_value << "\")"; |
+ EvalScript(script.str()); |
} |
class Module : public pp::Module { |