Index: net/test/test_server.h |
diff --git a/net/test/test_server.h b/net/test/test_server.h |
index 18c142011b635738ae4c11955b08ff5517083dec..800fc3d684ca465f1a93356c075e727d27cdf947 100644 |
--- a/net/test/test_server.h |
+++ b/net/test/test_server.h |
@@ -110,8 +110,14 @@ class TestServer { |
bool record_resume; |
}; |
+ // 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). |
Paweł Hajdan Jr.
2012/02/15 17:13:10
Please don't add a 3rd ctor. Fit it into existing
erikwright (departed)
2012/02/16 14:31:02
This would touch something on the order of 64 file
|
+ 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 +150,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; |