[Android] Redirect std{in,out,err} to sockets for layout tests.
We've used FIFOs on the device to handle stdin, stdout, and stderr
in the past, with persistent adb shells writing to and read from
(respectively) those FIFOs. They're prone to deadlocks and other
unusual issues, though.
This CL instead redirects those three streams to different
sockets set up by run-webkit-tests and forwarded from the device
to the host. This should eliminate the occasional problems caused
by FIFOs and work more seamlessly with M and above.
BUG=
567947
Review-Url:
https://codereview.chromium.org/2540603004
Cr-Commit-Position: refs/heads/master@{#442340}
Committed:
https://chromium.googlesource.com/chromium/src/+/2d40c48d8a1ba516c866d7d9a5e789eb9b011cb2