Index: components/web_restrictions/browser/web_restrictions_resource_throttle_unittest.cc |
diff --git a/components/web_restrictions/browser/web_restrictions_resource_throttle_unittest.cc b/components/web_restrictions/browser/web_restrictions_resource_throttle_unittest.cc |
index f3e7342f0f2d57d3b6ae2517a8bff0570af59943..e1b180d6235b9e8808002c0d2944d7234b08d0a5 100644 |
--- a/components/web_restrictions/browser/web_restrictions_resource_throttle_unittest.cc |
+++ b/components/web_restrictions/browser/web_restrictions_resource_throttle_unittest.cc |
@@ -123,7 +123,7 @@ TEST_F(WebRestrictionsResourceThrottleTest, WillStartRequest_Subresource) { |
throttle.set_controller_for_testing(&test_controller); |
bool defer; |
throttle.WillStartRequest(&defer); |
- EXPECT_FALSE(defer); |
+ ASSERT_FALSE(defer); |
} |
TEST_F(WebRestrictionsResourceThrottleTest, WillRedirectRequest_KnownUrl) { |
@@ -134,7 +134,7 @@ TEST_F(WebRestrictionsResourceThrottleTest, WillRedirectRequest_KnownUrl) { |
redirect.new_url = GURL("http://example.com"); |
bool defer; |
throttle_.WillRedirectRequest(redirect, &defer); |
- EXPECT_FALSE(defer); |
+ ASSERT_FALSE(defer); |
} |
TEST_F(WebRestrictionsResourceThrottleTest, WillRedirectRequest_NewUrl) { |
@@ -148,7 +148,7 @@ TEST_F(WebRestrictionsResourceThrottleTest, WillRedirectRequest_NewUrl) { |
throttle_.set_controller_for_testing(&test_controller); |
bool defer; |
throttle_.WillRedirectRequest(redirect, &defer); |
- EXPECT_TRUE(defer); |
+ ASSERT_TRUE(defer); |
// If we don't wait for the callback it may happen after the exit, which |
// results in accesses the redirect_url after the stack frame is freed. |
test_run_loop.Run(); |