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

Unified Diff: chrome/browser/ui/search/instant_page_unittest.cc

Issue 2147483002: Cleanup: remove dead code from InstantPage and InstantController (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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: chrome/browser/ui/search/instant_page_unittest.cc
diff --git a/chrome/browser/ui/search/instant_page_unittest.cc b/chrome/browser/ui/search/instant_page_unittest.cc
index c9b57f1d50d74eb1af9e39d097f03a96efa011f4..c028d778bdfbccfa9ff7fa8a867257a637b27ee7 100644
--- a/chrome/browser/ui/search/instant_page_unittest.cc
+++ b/chrome/browser/ui/search/instant_page_unittest.cc
@@ -68,7 +68,7 @@ void InstantPageTest::SetUp() {
}
TEST_F(InstantPageTest, IsLocal) {
- page.reset(new InstantPage(&delegate, "", NULL));
+ page.reset(new InstantPage(&delegate));
EXPECT_FALSE(page->supports_instant());
EXPECT_FALSE(page->IsLocal());
page->SetContents(web_contents());
@@ -79,7 +79,7 @@ TEST_F(InstantPageTest, IsLocal) {
}
TEST_F(InstantPageTest, DetermineIfPageSupportsInstant_Local) {
- page.reset(new InstantPage(&delegate, "", NULL));
+ page.reset(new InstantPage(&delegate));
EXPECT_FALSE(page->supports_instant());
page->SetContents(web_contents());
NavigateAndCommit(GURL(chrome::kChromeSearchLocalNtpUrl));
@@ -92,7 +92,7 @@ TEST_F(InstantPageTest, DetermineIfPageSupportsInstant_Local) {
}
TEST_F(InstantPageTest, DetermineIfPageSupportsInstant_NonLocal) {
- page.reset(new InstantPage(&delegate, "", NULL));
+ page.reset(new InstantPage(&delegate));
EXPECT_FALSE(page->supports_instant());
page->SetContents(web_contents());
NavigateAndCommit(GURL("chrome-search://foo/bar"));
@@ -107,7 +107,7 @@ TEST_F(InstantPageTest, DetermineIfPageSupportsInstant_NonLocal) {
}
TEST_F(InstantPageTest, PageURLDoesntBelongToInstantRenderer) {
- page.reset(new InstantPage(&delegate, "", NULL));
+ page.reset(new InstantPage(&delegate));
EXPECT_FALSE(page->supports_instant());
NavigateAndCommit(GURL(chrome::kChromeSearchLocalNtpUrl));
page->SetContents(web_contents());
@@ -132,7 +132,7 @@ TEST_F(InstantPageTest, PageURLDoesntBelongToInstantRenderer) {
// Test to verify that ChromeViewMsg_DetermineIfPageSupportsInstant message
// reply handler updates the instant support state in InstantPage.
TEST_F(InstantPageTest, PageSupportsInstant) {
- page.reset(new InstantPage(&delegate, "", NULL));
+ page.reset(new InstantPage(&delegate));
EXPECT_FALSE(page->supports_instant());
page->SetContents(web_contents());
NavigateAndCommit(GURL("chrome-search://foo/bar"));

Powered by Google App Engine
This is Rietveld 408576698