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..8e932e30f617830e9a93ba0c399b067390b87c34 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.method = "GET"; |
+ redirect_info.url = GURL(kTestURL); |
+ redirect_info.first_party_for_cookies = GURL(kTestURL); |
+ peer()->OnReceivedRedirect(redirect_info, |
content::ResourceResponseInfo()); |
EXPECT_TRUE(client()->did_receive_redirect()); |
} |