| Index: components/html_viewer/web_test_delegate_impl.cc
|
| diff --git a/components/html_viewer/web_test_delegate_impl.cc b/components/html_viewer/web_test_delegate_impl.cc
|
| index 5385a660b454a48cbf051db0a7c590c8bca9647a..f3aa2a8598d38f68f56083fc869df22e7c6d41ea 100644
|
| --- a/components/html_viewer/web_test_delegate_impl.cc
|
| +++ b/components/html_viewer/web_test_delegate_impl.cc
|
| @@ -4,6 +4,8 @@
|
|
|
| #include "components/html_viewer/web_test_delegate_impl.h"
|
|
|
| +#include <iostream>
|
| +
|
| #include "base/time/time.h"
|
| #include "cc/layers/texture_layer.h"
|
| #include "components/test_runner/web_task.h"
|
| @@ -84,7 +86,7 @@ void WebTestDelegateImpl::DidChangeBatteryStatus(
|
| }
|
|
|
| void WebTestDelegateImpl::PrintMessage(const std::string& message) {
|
| - fprintf(stderr, "%s", message.c_str());
|
| + std::cout << message;
|
| }
|
|
|
| void WebTestDelegateImpl::PostTask(test_runner::WebTask* task) {
|
| @@ -227,9 +229,11 @@ void WebTestDelegateImpl::SetLocale(const std::string& locale) {
|
| }
|
|
|
| void WebTestDelegateImpl::TestFinished() {
|
| + std::cout << "Content-Type: text/plain\n";
|
| + std::cout << (proxy_ ? proxy_->CaptureTree(false, false) : dump_tree_);
|
| + std::cout << "#EOF\n";
|
| +
|
| test_interfaces_->SetTestIsRunning(false);
|
| - fprintf(stderr, "%s", proxy_ ? proxy_->CaptureTree(false, false).c_str()
|
| - : dump_tree_.c_str());
|
| }
|
|
|
| void WebTestDelegateImpl::CloseRemainingWindows() {
|
|
|