| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "net/test/spawned_test_server/remote_test_server.h" | 5 #include "net/test/spawned_test_server/remote_test_server.h" |
| 6 | 6 |
| 7 #include <vector> | 7 #include <vector> |
| 8 | 8 |
| 9 #include "base/base_paths.h" | 9 #include "base/base_paths.h" |
| 10 #include "base/file_util.h" | 10 #include "base/file_util.h" |
| 11 #include "base/files/file_path.h" | 11 #include "base/files/file_path.h" |
| 12 #include "base/json/json_writer.h" | 12 #include "base/json/json_writer.h" |
| 13 #include "base/logging.h" | 13 #include "base/logging.h" |
| 14 #include "base/path_service.h" | 14 #include "base/path_service.h" |
| 15 #include "base/strings/string_number_conversions.h" | 15 #include "base/strings/string_number_conversions.h" |
| 16 #include "base/strings/string_split.h" | 16 #include "base/strings/string_split.h" |
| 17 #include "base/values.h" | 17 #include "base/values.h" |
| 18 #include "googleurl/src/gurl.h" | |
| 19 #include "net/base/host_port_pair.h" | 18 #include "net/base/host_port_pair.h" |
| 20 #include "net/base/net_errors.h" | 19 #include "net/base/net_errors.h" |
| 21 #include "net/test/spawned_test_server/spawner_communicator.h" | 20 #include "net/test/spawned_test_server/spawner_communicator.h" |
| 21 #include "url/gurl.h" |
| 22 | 22 |
| 23 namespace net { | 23 namespace net { |
| 24 | 24 |
| 25 namespace { | 25 namespace { |
| 26 | 26 |
| 27 // To reduce the running time of tests, tests may be sharded across several | 27 // To reduce the running time of tests, tests may be sharded across several |
| 28 // devices. This means that it may be necessary to support multiple instances | 28 // devices. This means that it may be necessary to support multiple instances |
| 29 // of the test server spawner and the Python test server simultaneously on the | 29 // of the test server spawner and the Python test server simultaneously on the |
| 30 // same host. Each pair of (test server spawner, Python test server) correspond | 30 // same host. Each pair of (test server spawner, Python test server) correspond |
| 31 // to a single testing device. | 31 // to a single testing device. |
| (...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 195 | 195 |
| 196 SetResourcePath(document_root, base::FilePath().AppendASCII("net") | 196 SetResourcePath(document_root, base::FilePath().AppendASCII("net") |
| 197 .AppendASCII("data") | 197 .AppendASCII("data") |
| 198 .AppendASCII("ssl") | 198 .AppendASCII("ssl") |
| 199 .AppendASCII("certificates")); | 199 .AppendASCII("certificates")); |
| 200 return true; | 200 return true; |
| 201 } | 201 } |
| 202 | 202 |
| 203 } // namespace net | 203 } // namespace net |
| 204 | 204 |
| OLD | NEW |