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

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

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.mm
diff --git a/ios/web/public/test/http_server_util.mm b/ios/web/public/test/http_server_util.mm
index 7b032bcc81613bfa3d15caddaf9bd50b048687b4..ed9ae78988698131b581b4c5c9cf227aa0742a5b 100644
--- a/ios/web/public/test/http_server_util.mm
+++ b/ios/web/public/test/http_server_util.mm
@@ -17,6 +17,12 @@ void SetUpSimpleHttpServer(const std::map<GURL, std::string>& responses) {
SetUpHttpServer(base::MakeUnique<HtmlResponseProvider>(responses));
}
+void SetUpSimpleHttpServerWithSetCookie(
+ const std::map<GURL, std::string>& responses,
+ const std::string& cookie) {
+ SetUpHttpServer(base::MakeUnique<HtmlResponseProvider>(responses, cookie));
+}
+
void SetUpFileBasedHttpServer() {
base::FilePath path;
PathService::Get(base::DIR_MODULE, &path);

Powered by Google App Engine
This is Rietveld 408576698