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

Unified Diff: ios/web/public/test/response_providers/html_response_provider_impl.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/response_providers/html_response_provider_impl.mm
diff --git a/ios/web/public/test/response_providers/html_response_provider_impl.mm b/ios/web/public/test/response_providers/html_response_provider_impl.mm
index 578e95eed5bd03f50962bafc20e30efa4155e07b..97f000df161467ee863cfb721c3d0272482c77ae 100644
--- a/ios/web/public/test/response_providers/html_response_provider_impl.mm
+++ b/ios/web/public/test/response_providers/html_response_provider_impl.mm
@@ -61,6 +61,13 @@
web::ResponseProvider::GetDefaultResponseHeaders())) {}
HtmlResponseProviderImpl::HtmlResponseProviderImpl(
+ const std::map<GURL, std::string>& responses,
+ const std::string& cookie)
+ : responses_(BuildResponseMap(
+ responses,
+ web::ResponseProvider::GetDefaultResponseHeaders(cookie))) {}
+
+HtmlResponseProviderImpl::HtmlResponseProviderImpl(
const std::map<GURL, HtmlResponseProviderImpl::Response>& responses)
: responses_(responses) {}

Powered by Google App Engine
This is Rietveld 408576698