Index: chrome/browser/safe_browsing/client_side_detection_host_unittest.cc |
diff --git a/chrome/browser/safe_browsing/client_side_detection_host_unittest.cc b/chrome/browser/safe_browsing/client_side_detection_host_unittest.cc |
index 2206e76ef65ecd99750247fa6e816f1b59709f5f..2cac402acb328ac1703b4a1b2e5197fd9583972b 100644 |
--- a/chrome/browser/safe_browsing/client_side_detection_host_unittest.cc |
+++ b/chrome/browser/safe_browsing/client_side_detection_host_unittest.cc |
@@ -362,11 +362,8 @@ class ClientSideDetectionHostTest : public ChromeRenderViewHostTestHarness { |
GetID(); |
resource.render_view_id = |
web_contents()->GetRenderViewHost()->GetRoutingID(); |
- ASSERT_FALSE(csd_host_->DidPageReceiveSafeBrowsingMatch()); |
csd_host_->OnSafeBrowsingMatch(resource); |
- ASSERT_TRUE(csd_host_->DidPageReceiveSafeBrowsingMatch()); |
csd_host_->OnSafeBrowsingHit(resource); |
- ASSERT_TRUE(csd_host_->DidPageReceiveSafeBrowsingMatch()); |
resource.callback.Reset(); |
ASSERT_TRUE(csd_host_->DidShowSBInterstitial()); |
TestUnsafeResourceCopied(resource); |
@@ -397,13 +394,10 @@ class ClientSideDetectionHostTest : public ChromeRenderViewHostTestHarness { |
csd_host_->OnSafeBrowsingHit(resource); |
resource.callback.Reset(); |
- ASSERT_TRUE(csd_host_->DidPageReceiveSafeBrowsingMatch()); |
- |
// LoadURL created a navigation entry, now simulate the RenderView sending |
// a notification that it actually navigated. |
content::WebContentsTester::For(web_contents())->CommitPendingNavigation(); |
- ASSERT_TRUE(csd_host_->DidPageReceiveSafeBrowsingMatch()); |
ASSERT_TRUE(csd_host_->DidShowSBInterstitial()); |
TestUnsafeResourceCopied(resource); |
} |
@@ -419,11 +413,9 @@ class ClientSideDetectionHostTest : public ChromeRenderViewHostTestHarness { |
EXPECT_NE(web_contents()->GetRenderViewHost()->GetRoutingID(), |
pending_rvh()->GetRoutingID()); |
} |
- ASSERT_FALSE(csd_host_->DidPageReceiveSafeBrowsingMatch()); |
ASSERT_FALSE(csd_host_->DidShowSBInterstitial()); |
content::WebContentsTester::For(web_contents())->CommitPendingNavigation(); |
- ASSERT_FALSE(csd_host_->DidPageReceiveSafeBrowsingMatch()); |
ASSERT_FALSE(csd_host_->DidShowSBInterstitial()); |
} |