Index: content/child/web_url_loader_impl_unittest.cc |
diff --git a/content/child/web_url_loader_impl_unittest.cc b/content/child/web_url_loader_impl_unittest.cc |
index 81b6779bcb6d77298d0034ae352c28eacb3b9167..0adfe08f12e976778f3e05ee6c9f4ff2277be11a 100644 |
--- a/content/child/web_url_loader_impl_unittest.cc |
+++ b/content/child/web_url_loader_impl_unittest.cc |
@@ -15,6 +15,7 @@ |
#include "net/base/net_errors.h" |
#include "net/http/http_response_headers.h" |
#include "net/http/http_util.h" |
+#include "net/url_request/redirect_info.h" |
#include "testing/gtest/include/gtest/gtest.h" |
#include "third_party/WebKit/public/platform/WebString.h" |
#include "third_party/WebKit/public/platform/WebURLError.h" |
@@ -281,7 +282,12 @@ class WebURLLoaderImplTest : public testing::Test { |
void DoReceiveRedirect() { |
EXPECT_FALSE(client()->did_receive_redirect()); |
- peer()->OnReceivedRedirect(GURL(kTestURL), GURL(kTestURL), |
+ net::RedirectInfo redirect_info; |
+ redirect_info.status_code = 302; |
+ redirect_info.new_method = "GET"; |
+ redirect_info.new_url = GURL(kTestURL); |
+ redirect_info.new_first_party_for_cookies = GURL(kTestURL); |
+ peer()->OnReceivedRedirect(redirect_info, |
content::ResourceResponseInfo()); |
EXPECT_TRUE(client()->did_receive_redirect()); |
} |