Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5832)

Unified Diff: chrome/browser/safe_browsing/safe_browsing_blocking_page_test.cc

Issue 622683006: Refactor security interstitials, add SecurityInterstitialPage. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/safe_browsing/safe_browsing_blocking_page_test.cc
diff --git a/chrome/browser/safe_browsing/safe_browsing_blocking_page_test.cc b/chrome/browser/safe_browsing/safe_browsing_blocking_page_test.cc
index 21df9f3751e99900e44bdb9b7ab7206eeeeb56d2..6735ec681855eb96e33a469ed3c4fe89c8c1c8fd 100644
--- a/chrome/browser/safe_browsing/safe_browsing_blocking_page_test.cc
+++ b/chrome/browser/safe_browsing/safe_browsing_blocking_page_test.cc
@@ -437,6 +437,8 @@ class SafeBrowsingBlockingPageBrowserTest
InterstitialPage::GetInterstitialPage(contents)->
GetDelegateForTesting());
ASSERT_TRUE(interstitial_page);
+ ASSERT_EQ(SecurityInterstitialPage::SAFEBROWSING,
+ interstitial_page->GetTypeForTesting());
interstitial_page->CommandReceived(command);
}
@@ -467,6 +469,8 @@ class SafeBrowsingBlockingPageBrowserTest
TestSafeBrowsingBlockingPage* page =
static_cast<TestSafeBrowsingBlockingPage*>(
contents->GetInterstitialPage()->GetDelegateForTesting());
+ ASSERT_EQ(SecurityInterstitialPage::SAFEBROWSING,
+ page->GetTypeForTesting());
page->WaitForDelete();
}

Powered by Google App Engine
This is Rietveld 408576698