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

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: thestig comments Created 6 years, 1 month 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 42d0d694d335cc9a087dd5bd18bd66daeaf780ae..7aaa51f990716def1070fa2bb1add4164df9a64b 100644
--- a/chrome/browser/safe_browsing/safe_browsing_blocking_page_test.cc
+++ b/chrome/browser/safe_browsing/safe_browsing_blocking_page_test.cc
@@ -408,6 +408,8 @@ class SafeBrowsingBlockingPageBrowserTest
InterstitialPage::GetInterstitialPage(contents)->
GetDelegateForTesting());
ASSERT_TRUE(interstitial_page);
+ ASSERT_EQ(SafeBrowsingBlockingPage::kTypeForTesting,
+ interstitial_page->GetTypeForTesting());
interstitial_page->CommandReceived(command);
}
@@ -438,6 +440,8 @@ class SafeBrowsingBlockingPageBrowserTest
TestSafeBrowsingBlockingPage* page =
static_cast<TestSafeBrowsingBlockingPage*>(
contents->GetInterstitialPage()->GetDelegateForTesting());
+ ASSERT_EQ(SafeBrowsingBlockingPage::kTypeForTesting,
+ page->GetTypeForTesting());
page->WaitForDelete();
}

Powered by Google App Engine
This is Rietveld 408576698