Add TestServerConfig to allow testserver outside localhost

Previuosly testserver was always assumed to be running on localhost
even when started with RemoteTestServer. This CL adds TestServerConfig
that allows to pass to the tests configuration for the test server.
The config specifies how the tests should connect to the test spawner
and to the test server itself. The config also replaces the mechanism
that was used to pass spawner's port number on Android (through
net-test-server-ports file).

[email protected]

Bug: 731302
Change-Id: Ib2e07e6d293c52164b12b73dfd5ebe13d89d018d
Reviewed-on: https://chromium-review.googlesource.com/619813
Commit-Queue: Sergey Ulanov <[email protected]>
Reviewed-by: Matt Menke <[email protected]>
Reviewed-by: John Budorick <[email protected]>
Cr-Commit-Position: refs/heads/master@{#497907}
diff --git a/PRESUBMIT.py b/PRESUBMIT.py
index a29e0a0..08a906c 100644
--- a/PRESUBMIT.py
+++ b/PRESUBMIT.py
@@ -230,6 +230,8 @@
         r"^net[\\\/]test[\\\/]embedded_test_server[\\\/]" +
             r"embedded_test_server\.cc$",
         r"^net[\\\/]test[\\\/]spawned_test_server[\\\/]local_test_server\.cc$",
+        r"^net[\\\/]test[\\\/]spawned_test_server[\\\/]" +
+            r"remote_test_server_config\.cc$",
         r"^net[\\\/]test[\\\/]test_data_directory\.cc$",
         r"^net[\\\/]url_request[\\\/]test_url_fetcher_factory\.cc$",
         r"^remoting[\\\/]protocol[\\\/]webrtc_transport\.cc$",