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

Unified Diff: ios/web/public/test/response_providers/response_provider.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/response_provider.h
diff --git a/ios/web/public/test/response_providers/response_provider.h b/ios/web/public/test/response_providers/response_provider.h
index 82ca5214fb5e37066db2ca96e7a7f26a1e22fcff..37b7ad7ed79ac99bd390f6aa32d063098f49bd36 100644
--- a/ios/web/public/test/response_providers/response_provider.h
+++ b/ios/web/public/test/response_providers/response_provider.h
@@ -5,6 +5,7 @@
#ifndef IOS_WEB_PUBLIC_TEST_RESPONSE_PROVIDERS_RESPONSE_PROVIDER_H_
#define IOS_WEB_PUBLIC_TEST_RESPONSE_PROVIDERS_RESPONSE_PROVIDER_H_
+#include <map>
#include <string>
#include "base/macros.h"
@@ -53,10 +54,11 @@ class ResponseProvider {
// Gets default response headers with a text/html content type and a 200
// response code.
static scoped_refptr<net::HttpResponseHeaders> GetDefaultResponseHeaders();
- // Gets default response headers with a text/html content type and a 200
- // response code.
- static scoped_refptr<net::HttpResponseHeaders> GetDefaultResponseHeaders(
- const std::string& cookie);
+ // Gets a map of response headers with a text/html content type, a 200
+ // response code and Set-Cookie in headers.
+ static std::map<GURL, scoped_refptr<net::HttpResponseHeaders>>
+ GetDefaultResponseHeaders(
+ const std::map<GURL, std::pair<std::string, std::string>>& responses);
// Gets configurable response headers with a provided content type and a
// 200 response code.
static scoped_refptr<net::HttpResponseHeaders> GetResponseHeaders(

Powered by Google App Engine
This is Rietveld 408576698