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

Unified Diff: ios/web/public/test/response_providers/html_response_provider_impl.h

Issue 2291393003: Add capability to simple http server to bound Set-Cookie to URLs. (Closed)
Patch Set: Update comments 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.h
diff --git a/ios/web/public/test/response_providers/html_response_provider_impl.h b/ios/web/public/test/response_providers/html_response_provider_impl.h
index 16991b8a9be95dc13a9890b9649c88b3d733f58e..d9214b5de5796a9923254d7c2554bb1c4f293038 100644
--- a/ios/web/public/test/response_providers/html_response_provider_impl.h
+++ b/ios/web/public/test/response_providers/html_response_provider_impl.h
@@ -39,11 +39,11 @@ class HtmlResponseProviderImpl {
// response to a URL based on the mapping present in |responses|.
explicit HtmlResponseProviderImpl(
const std::map<GURL, std::string>& responses);
- // Constructs an HtmlResponseProviderImpl that generates a simple string
- // response to a URL based on the mapping present in |responses| and |cookie|.
+ // Constructs an HtmlResponseProvider that generates a simple string response
+ // to a URL with set cookie in the headers based on the mapping present in
+ // |responses|.
explicit HtmlResponseProviderImpl(
- const std::map<GURL, std::string>& responses,
- const std::string& cookie);
+ const std::map<GURL, std::pair<std::string, std::string>>& responses);
// Constructs an HtmlResponseProviderImpl that generates a response to a URL
// based on the mapping present in |responses|.
explicit HtmlResponseProviderImpl(const std::map<GURL, Response>& responses);

Powered by Google App Engine
This is Rietveld 408576698