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

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

Issue 2283203003: Implement simple http server with set cookie functionality. (Closed)
Patch Set: Created 4 years, 4 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
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 474bc2d8d081e0b1ec65f87a5e18009e968ecfe2..28b4879b31639162d7da773be5998ca796a69c78 100644
--- a/ios/web/public/test/http_server_util.h
+++ b/ios/web/public/test/http_server_util.h
@@ -19,6 +19,13 @@ namespace test {
// HtmlResponseProvider will use the |responses| map to resolve URLs.
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);
+
// Sets up a web::test::HttpServer with a FileBasedResponseProvider. The
// server will try to resolve URLs as file paths relative to the application
// bundle path. web::test::MakeUrl should be used to rewrite URLs before doing

Powered by Google App Engine
This is Rietveld 408576698