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

Unified Diff: chrome/browser/ui/webui/html_dialog_tab_contents_delegate_unittest.cc

Issue 8784006: Replace the GURL referrer field of OpenURLParams with a content::Referrer (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: updates Created 9 years 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/ui/webui/html_dialog_tab_contents_delegate_unittest.cc
diff --git a/chrome/browser/ui/webui/html_dialog_tab_contents_delegate_unittest.cc b/chrome/browser/ui/webui/html_dialog_tab_contents_delegate_unittest.cc
index 1c8a92e8fc93227527de527eb14c66b8e2f1a244..b6360243f9fe51f815593b20d8de23d86767d5c2 100644
--- a/chrome/browser/ui/webui/html_dialog_tab_contents_delegate_unittest.cc
+++ b/chrome/browser/ui/webui/html_dialog_tab_contents_delegate_unittest.cc
@@ -72,7 +72,7 @@ TEST_F(HtmlDialogTabContentsDelegateTest, DoNothingMethodsTest) {
TEST_F(HtmlDialogTabContentsDelegateTest, OpenURLFromTabTest) {
test_tab_contents_delegate_->OpenURLFromTab(
- NULL, OpenURLParams(GURL(chrome::kAboutBlankURL), GURL(),
+ NULL, OpenURLParams(GURL(chrome::kAboutBlankURL), content::Referrer(),
NEW_FOREGROUND_TAB, content::PAGE_TRANSITION_LINK, false));
// This should create a new foreground tab in the existing browser.
EXPECT_EQ(1, browser()->tab_count());
@@ -95,7 +95,7 @@ TEST_F(HtmlDialogTabContentsDelegateTest, DetachTest) {
EXPECT_EQ(NULL, test_tab_contents_delegate_->profile());
// Now, none of the following calls should do anything.
test_tab_contents_delegate_->OpenURLFromTab(
- NULL, OpenURLParams(GURL(chrome::kAboutBlankURL), GURL(),
+ NULL, OpenURLParams(GURL(chrome::kAboutBlankURL), content::Referrer(),
NEW_FOREGROUND_TAB, content::PAGE_TRANSITION_LINK, false));
test_tab_contents_delegate_->AddNewContents(NULL, NULL, NEW_FOREGROUND_TAB,
gfx::Rect(), false);

Powered by Google App Engine
This is Rietveld 408576698