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

Unified Diff: content/shell/browser/layout_test/layout_test_browser_main.cc

Issue 2540603004: [Android] Redirect std{in,out,err} to sockets for layout tests. (Closed)
Patch Set: Fix server_process_constructor name. Created 4 years 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/browser/layout_test/layout_test_browser_main.cc
diff --git a/content/shell/browser/layout_test/layout_test_browser_main.cc b/content/shell/browser/layout_test/layout_test_browser_main.cc
index 7ed7ea72289e3353db2870be2f6bcc0f83178bd8..adb28077ab2943dcd654208f1b2a37520b99fd5d 100644
--- a/content/shell/browser/layout_test/layout_test_browser_main.cc
+++ b/content/shell/browser/layout_test/layout_test_browser_main.cc
@@ -123,7 +123,8 @@ int LayoutTestBrowserMain(
browser_context_path_for_layout_tests.GetPath().MaybeAsASCII());
#if defined(OS_ANDROID)
- content::EnsureInitializeForAndroidLayoutTests();
+ content::ScopedAndroidConfiguration android_configuration;
+ android_configuration.Initialize();
#endif
int exit_code = main_runner->Initialize(parameters);
@@ -133,6 +134,10 @@ int LayoutTestBrowserMain(
if (exit_code >= 0)
return exit_code;
+#if defined(OS_ANDROID)
+ android_configuration.RedirectStreams();
+#endif
+
if (base::CommandLine::ForCurrentProcess()->HasSwitch(
switches::kCheckLayoutTestSysDeps)) {
base::ThreadTaskRunnerHandle::Get()->PostTask(

Powered by Google App Engine
This is Rietveld 408576698