diff options
author | jochen@chromium.org <jochen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-07-02 17:41:04 +0000 |
---|---|---|
committer | jochen@chromium.org <jochen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-07-02 17:41:04 +0000 |
commit | 0d108edbffac458f8f19c35fd470376e45a811c9 (patch) | |
tree | e5bb3dafed1af558ac79f443ea8c8a9a07d56893 /content/shell/shell_browser_main.cc | |
parent | dcf831f62e6501caf9265c9c2d6c942cd0c523f1 (diff) | |
download | chromium_src-0d108edbffac458f8f19c35fd470376e45a811c9.zip chromium_src-0d108edbffac458f8f19c35fd470376e45a811c9.tar.gz chromium_src-0d108edbffac458f8f19c35fd470376e45a811c9.tar.bz2 |
Use printf and friends instead of cout and friends for printing layout test results
On windows, cout will replace \n with \r\n
BUG=111316
TEST=run_webkit_tests.py works on windows
Review URL: https://chromiumcodereview.appspot.com/10698006
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@145160 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/shell/shell_browser_main.cc')
-rw-r--r-- | content/shell/shell_browser_main.cc | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/content/shell/shell_browser_main.cc b/content/shell/shell_browser_main.cc index 597f1a0..62f1fb1 100644 --- a/content/shell/shell_browser_main.cc +++ b/content/shell/shell_browser_main.cc @@ -4,8 +4,6 @@ #include "content/shell/shell_browser_main.h" -#include <iostream> - #include "base/command_line.h" #include "base/logging.h" #include "base/memory/scoped_ptr.h" @@ -81,7 +79,7 @@ int ShellBrowserMain(const content::MainFunctionParams& parameters) { continue; // Test header. - std::cout << "Content-Type: text/plain\n"; + printf("Content-Type: text/plain\n"); std::string pixel_hash; content::Shell::CreateNewWindow( @@ -97,9 +95,9 @@ int ShellBrowserMain(const content::MainFunctionParams& parameters) { content::Shell::CloseAllWindows(); // Test footer. - std::cout << "#EOF\n"; - std::cout.flush(); - + printf("#EOF\n"); + fflush(stdout); + fflush(stderr); } exit_code = 0; } else { |