Chromium Code Reviews| Index: net/test/test_server.h |
| diff --git a/net/test/test_server.h b/net/test/test_server.h |
| index 18c142011b635738ae4c11955b08ff5517083dec..da5c0e90556c193d2c97900f0b0f79c3dbf0573f 100644 |
| --- a/net/test/test_server.h |
| +++ b/net/test/test_server.h |
| @@ -110,8 +110,17 @@ class TestServer { |
| bool record_resume; |
| }; |
| + // Pass as the 'host' parameter during construction to server on 127.0.0.1 |
| + static const char* kLocalhost; |
|
eroman
2012/02/23 20:55:07
Technically this is ambiguous, since "localhost" m
|
| + |
| + // Initialize a TestServer listening on 127.0.0.1. |
| TestServer(Type type, const FilePath& document_root); |
| + // Initialize a TestServer listening on a specific host (IP or hostname). |
| + TestServer(Type type, |
| + const std::string& host, |
| + const FilePath& document_root); |
| + |
| // Initialize a HTTPS TestServer with a specific set of HTTPSOptions. |
| TestServer(const HTTPSOptions& https_options, |
| const FilePath& document_root); |
| @@ -144,7 +153,7 @@ class TestServer { |
| std::string* replacement_path); |
| private: |
| - void Init(const FilePath& document_root); |
| + void Init(const std::string& host, const FilePath& document_root); |
| // Modify PYTHONPATH to contain libraries we need. |
| bool SetPythonPath() WARN_UNUSED_RESULT; |