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

Unified Diff: chrome/browser/download/download_request_limiter_unittest.cc

Issue 1767083004: Add DCHECK for primary_url and secondary_url in HostContentSettingsMap::GetPatternsFromScopingType (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address review comments Created 4 years, 9 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
« no previous file with comments | « no previous file | components/content_settings/core/browser/host_content_settings_map.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/download/download_request_limiter_unittest.cc
diff --git a/chrome/browser/download/download_request_limiter_unittest.cc b/chrome/browser/download/download_request_limiter_unittest.cc
index 7a3bf4a6714cde2cbadcf168d7571079ef2c0d87..91e942528510a1a14cf73c8a1eea17e8394517ac 100644
--- a/chrome/browser/download/download_request_limiter_unittest.cc
+++ b/chrome/browser/download/download_request_limiter_unittest.cc
@@ -253,6 +253,7 @@ class DownloadRequestLimiterTest : public ChromeRenderViewHostTestHarness {
};
TEST_F(DownloadRequestLimiterTest, DownloadRequestLimiter_Allow) {
+ NavigateAndCommit(GURL("http://foo.com/bar"));
LoadCompleted();
// All tabs should initially start at ALLOW_ONE_DOWNLOAD.
@@ -463,6 +464,10 @@ TEST_F(DownloadRequestLimiterTest, DownloadRequestLimiter_ResetOnReload) {
TEST_F(DownloadRequestLimiterTest, DownloadRequestLimiter_RawWebContents) {
scoped_ptr<WebContents> web_contents(CreateTestWebContents());
+ GURL url("http://foo.com/bar");
+ web_contents->GetController().LoadURL(
+ url, content::Referrer(), ui::PAGE_TRANSITION_LINK, std::string());
+
// DownloadRequestLimiter won't try to make a permission bubble if there's
// no permission bubble manager, so don't put one on the test WebContents.
« no previous file with comments | « no previous file | components/content_settings/core/browser/host_content_settings_map.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698