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

Unified Diff: ios/web/public/test/http_server_util.h

Issue 2291393003: Add capability to simple http server to bound Set-Cookie to URLs. (Closed)
Patch Set: Addressed comments from Peter Created 4 years, 3 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 | ios/web/public/test/http_server_util.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/web/public/test/http_server_util.h
diff --git a/ios/web/public/test/http_server_util.h b/ios/web/public/test/http_server_util.h
index 28b4879b31639162d7da773be5998ca796a69c78..b66356983795e34f89f4f85d475ff2df8bbf43f1 100644
--- a/ios/web/public/test/http_server_util.h
+++ b/ios/web/public/test/http_server_util.h
@@ -20,11 +20,12 @@ namespace test {
void SetUpSimpleHttpServer(const std::map<GURL, std::string>& responses);
// Sets up a web::test::HttpServer with a simple HtmlResponseProvider. The
-// HtmlResponseProvider will use the |responses| map to resolve URLs and include
-// Set-Cookie:|cookie| in the header.
-void SetUpSimpleHttpServerWithSetCookie(
- const std::map<GURL, std::string>& responses,
- const std::string& cookie);
+// HtmlResponseProvider will use the |responses| map to resolve URLs. The value
+// of |responses| is the cookie and response body pair where the first string is
+// the cookie and the second string is the response body. Set the cookie string
+// as empty string if cookie is not needed in the response headers.
+void SetUpSimpleHttpServerWithSetCookies(
+ const std::map<GURL, std::pair<std::string, std::string>>& responses);
// Sets up a web::test::HttpServer with a FileBasedResponseProvider. The
// server will try to resolve URLs as file paths relative to the application
« no previous file with comments | « no previous file | ios/web/public/test/http_server_util.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698