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( |