Chromium Code Reviews| Index: net/test/embedded_test_server/embedded_test_server.h |
| diff --git a/net/test/embedded_test_server/embedded_test_server.h b/net/test/embedded_test_server/embedded_test_server.h |
| index 9123a511f234f23e0c3a55088c1dec29cb7dcfee..8217be5c9b1a77b678dd78318d084ed7d08db394 100644 |
| --- a/net/test/embedded_test_server/embedded_test_server.h |
| +++ b/net/test/embedded_test_server/embedded_test_server.h |
| @@ -129,6 +129,10 @@ class EmbeddedTestServer : public StreamListenSocket::Delegate { |
| // http://127.0.0.1:<port>/path?query=foo. |
| GURL GetURL(const std::string& relative_url) const; |
| + // Similar to the above method with the difference that it uses the supplied |
| + // |hostname| for the URL instead of 127.0.0.1. |
|
mtomasz
2014/10/30 00:25:29
nit: Could you add a comment, that the hostname sh
nasko
2014/10/30 00:45:11
Done.
|
| + GURL GetURL(const std::string& hostname, const std::string& relative_url); |
|
mtomasz
2014/10/30 00:25:29
nit: This method should be const.
nasko
2014/10/30 00:45:11
Done.
|
| + |
| // Returns the port number used by the server. |
| int port() const { return port_; } |