Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1612)

Unified Diff: net/test/embedded_test_server/embedded_test_server.h

Issue 686053005: Add GetURL variant to EmbeddedTestServer with hostname parameter. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixing nits. Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | net/test/embedded_test_server/embedded_test_server.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..24ff8d7a7b9b4970e8b4cc4bc50095c632ae1d54 100644
--- a/net/test/embedded_test_server/embedded_test_server.h
+++ b/net/test/embedded_test_server/embedded_test_server.h
@@ -129,6 +129,12 @@ 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. The hostname should be
+ // resolved to 127.0.0.1.
+ GURL GetURL(const std::string& hostname,
+ const std::string& relative_url) const;
+
// Returns the port number used by the server.
int port() const { return port_; }
« no previous file with comments | « no previous file | net/test/embedded_test_server/embedded_test_server.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698