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

Unified Diff: content/shell/shell_browser_main.cc

Issue 10941011: Rewrite layout_browsertests to use content_shell --dump-render-tree to execute layout tests (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: updates Created 8 years, 3 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
Index: content/shell/shell_browser_main.cc
diff --git a/content/shell/shell_browser_main.cc b/content/shell/shell_browser_main.cc
index eef7836a808958afbe5e598c495925c905927bb2..a19005de04cdb804dfc41751770b619309399b76 100644
--- a/content/shell/shell_browser_main.cc
+++ b/content/shell/shell_browser_main.cc
@@ -4,6 +4,8 @@
#include "content/shell/shell_browser_main.h"
+#include <iostream>
+
#include "base/command_line.h"
#include "base/logging.h"
#include "base/memory/scoped_ptr.h"
@@ -72,8 +74,8 @@ int ShellBrowserMain(const content::MainFunctionParams& parameters) {
char test_string[2048];
#if defined(OS_ANDROID)
- puts("#READY");
- fflush(stdout);
+ std::cout << "#READY\n";
+ std::cout.flush();
#endif
while (fgets(test_string, sizeof(test_string), stdin)) {
@@ -96,9 +98,6 @@ int ShellBrowserMain(const content::MainFunctionParams& parameters) {
main_runner_->Run();
- fflush(stdout);
- fflush(stderr);
-
if (!content::WebKitTestController::Get()->ResetAfterLayoutTest())
break;
}

Powered by Google App Engine
This is Rietveld 408576698