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

Unified Diff: components/data_reduction_proxy/content/browser/data_reduction_proxy_debug_blocking_page_unittest.cc

Issue 962413002: Add type for testing to interstitials. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: bauerb comments Created 5 years, 10 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: components/data_reduction_proxy/content/browser/data_reduction_proxy_debug_blocking_page_unittest.cc
diff --git a/components/data_reduction_proxy/content/browser/data_reduction_proxy_debug_blocking_page_unittest.cc b/components/data_reduction_proxy/content/browser/data_reduction_proxy_debug_blocking_page_unittest.cc
index 63bbb76e72b2c9a12017d4bd073f6d11e739e581..0effde665ae2b4970463e4a7a4f90ad840bba5c8 100644
--- a/components/data_reduction_proxy/content/browser/data_reduction_proxy_debug_blocking_page_unittest.cc
+++ b/components/data_reduction_proxy/content/browser/data_reduction_proxy_debug_blocking_page_unittest.cc
@@ -144,7 +144,9 @@ class DataReductionProxyDebugBlockingPageTest
content::InterstitialPage::GetInterstitialPage(web_contents());
if (!interstitial)
return NULL;
- return static_cast<DataReductionProxyDebugBlockingPage*>(
+ EXPECT_EQ(DataReductionProxyDebugBlockingPage::kTypeForTesting,
+ interstitial->GetDelegateForTesting()->GetTypeForTesting());
+ return static_cast<DataReductionProxyDebugBlockingPage*>(
interstitial->GetDelegateForTesting());
}

Powered by Google App Engine
This is Rietveld 408576698