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

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

Issue 8186: Plumb the referrer throughout the OpenURL APIs.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 12 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
« no previous file with comments | « chrome/browser/dom_ui/new_tab_ui.cc ('k') | chrome/browser/external_tab_container.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/download/download_request_manager_unittest.cc
===================================================================
--- chrome/browser/download/download_request_manager_unittest.cc (revision 3991)
+++ chrome/browser/download/download_request_manager_unittest.cc (working copy)
@@ -109,7 +109,7 @@
}
TEST_F(DownloadRequestManagerTest, ResetOnNavigation) {
- controller_->LoadURL(GURL(factory_->scheme() + "://foo.com/bar"), 0);
+ controller_->LoadURL(GURL(factory_->scheme() + "://foo.com/bar"), GURL(), 0);
// Do two downloads, allowing the second so that we end up with allow all.
CanDownload();
@@ -122,7 +122,8 @@
// Navigate to a new URL with the same host, which shouldn't reset the allow
// all state.
- controller_->LoadURL(GURL(factory_->scheme() + "://foo.com/bar2"), 0);
+ controller_->LoadURL(GURL(factory_->scheme() + "://foo.com/bar2"),
+ GURL(), 0);
CanDownload();
ASSERT_EQ(1, continue_count_);
ASSERT_EQ(0, cancel_count_);
@@ -140,14 +141,14 @@
controller_->active_contents()));
// Navigate to a completely different host, which should reset the state.
- controller_->LoadURL(GURL(factory_->scheme() + "://fooey.com"), 0);
+ controller_->LoadURL(GURL(factory_->scheme() + "://fooey.com"), GURL(), 0);
ASSERT_EQ(DownloadRequestManager::ALLOW_ONE_DOWNLOAD,
download_request_manager_->GetDownloadStatus(
controller_->active_contents()));
}
TEST_F(DownloadRequestManagerTest, ResetOnUserGesture) {
- controller_->LoadURL(GURL(factory_->scheme() + "://foo.com/bar"), 0);
+ controller_->LoadURL(GURL(factory_->scheme() + "://foo.com/bar"), GURL(), 0);
// Do one download, which should change to prompt before download.
CanDownload();
« no previous file with comments | « chrome/browser/dom_ui/new_tab_ui.cc ('k') | chrome/browser/external_tab_container.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698