Index: content/browser/loader/navigation_url_loader_unittest.cc |
diff --git a/content/browser/loader/navigation_url_loader_unittest.cc b/content/browser/loader/navigation_url_loader_unittest.cc |
index 1e32323e0cff695f9aa367b88af2078b9595345b..bcd71a634e163f188159ce2f8526fef79d3fde6b 100644 |
--- a/content/browser/loader/navigation_url_loader_unittest.cc |
+++ b/content/browser/loader/navigation_url_loader_unittest.cc |
@@ -224,6 +224,9 @@ TEST_F(NavigationURLLoaderTest, Basic) { |
// Wait for the response to come back. |
delegate.WaitForResponseStarted(); |
+ // Proceed with the response. |
+ loader->ProceedWithResponse(); |
+ |
// Check the response is correct. |
EXPECT_EQ("text/html", delegate.response()->head.mime_type); |
EXPECT_EQ(200, delegate.response()->head.headers->response_code()); |
@@ -270,6 +273,9 @@ TEST_F(NavigationURLLoaderTest, RequestRedirected) { |
loader->FollowRedirect(); |
delegate.WaitForResponseStarted(); |
+ // Proceed with the response. |
+ loader->ProceedWithResponse(); |
+ |
// Check the response is correct. |
EXPECT_EQ("text/html", delegate.response()->head.mime_type); |
EXPECT_EQ(200, delegate.response()->head.headers->response_code()); |
@@ -371,6 +377,9 @@ TEST_F(NavigationURLLoaderTest, LoaderDetached) { |
// Wait for the response to come back. |
delegate.WaitForResponseStarted(); |
+ // Proceed with the response. |
+ loader->ProceedWithResponse(); |
+ |
// Check the response is correct. |
EXPECT_EQ("text/html", delegate.response()->head.mime_type); |
EXPECT_EQ(200, delegate.response()->head.headers->response_code()); |
@@ -395,6 +404,9 @@ TEST_F(NavigationURLLoaderTest, OwnedByHandle) { |
// Wait for the response to come back. |
delegate.WaitForResponseStarted(); |
+ // Proceed with the response. |
+ loader->ProceedWithResponse(); |
+ |
// Release the body. |
delegate.ReleaseBody(); |
base::RunLoop().RunUntilIdle(); |