| Index: chrome/browser/ui/search/instant_tab_unittest.cc
|
| diff --git a/chrome/browser/ui/search/instant_tab_unittest.cc b/chrome/browser/ui/search/instant_tab_unittest.cc
|
| index 39914f43849399d6be3d643937793328fdc46adf..11da6ed1595d5255872387d5910cf25f433a7aa1 100644
|
| --- a/chrome/browser/ui/search/instant_tab_unittest.cc
|
| +++ b/chrome/browser/ui/search/instant_tab_unittest.cc
|
| @@ -75,24 +75,6 @@ void InstantTabTest::SetUp() {
|
| .set_search_box_client_factory_for_testing(std::move(factory));
|
| }
|
|
|
| -TEST_F(InstantTabTest, DetermineIfPageSupportsInstant_Local) {
|
| - page.reset(new InstantTab(&delegate, web_contents()));
|
| - EXPECT_FALSE(SupportsInstant());
|
| - page->Init();
|
| - NavigateAndCommit(GURL(chrome::kChromeSearchLocalNtpUrl));
|
| - search_tab()->DetermineIfPageSupportsInstant();
|
| - EXPECT_TRUE(SupportsInstant());
|
| -}
|
| -
|
| -TEST_F(InstantTabTest, DetermineIfPageSupportsInstant_NonLocal) {
|
| - page.reset(new InstantTab(&delegate, web_contents()));
|
| - EXPECT_FALSE(SupportsInstant());
|
| - page->Init();
|
| - NavigateAndCommit(GURL("chrome-search://foo/bar"));
|
| - EXPECT_CALL(mock_search_box, DetermineIfPageSupportsInstant());
|
| - search_tab()->DetermineIfPageSupportsInstant();
|
| -}
|
| -
|
| TEST_F(InstantTabTest, PageURLDoesntBelongToInstantRenderer) {
|
| page.reset(new InstantTab(&delegate, web_contents()));
|
| EXPECT_FALSE(SupportsInstant());
|
| @@ -100,24 +82,16 @@ TEST_F(InstantTabTest, PageURLDoesntBelongToInstantRenderer) {
|
| page->Init();
|
|
|
| // Navigate to a page URL that doesn't belong to Instant renderer.
|
| - // SearchTabHelper::DeterminerIfPageSupportsInstant() should return
|
| - // immediately without dispatching any message to the renderer.
|
| NavigateAndCommit(GURL("http://www.example.com"));
|
| - EXPECT_CALL(mock_search_box, DetermineIfPageSupportsInstant()).Times(0);
|
|
|
| - search_tab()->DetermineIfPageSupportsInstant();
|
| EXPECT_FALSE(SupportsInstant());
|
| }
|
|
|
| -// Test to verify that ChromeViewMsg_DetermineIfPageSupportsInstant message
|
| -// reply handler updates the instant support state in InstantTab.
|
| TEST_F(InstantTabTest, PageSupportsInstant) {
|
| page.reset(new InstantTab(&delegate, web_contents()));
|
| EXPECT_FALSE(SupportsInstant());
|
| page->Init();
|
| NavigateAndCommit(GURL("chrome-search://foo/bar"));
|
| - EXPECT_CALL(mock_search_box, DetermineIfPageSupportsInstant());
|
| - search_tab()->DetermineIfPageSupportsInstant();
|
|
|
| // Assume the page supports instant. Invoke the message reply handler to make
|
| // sure the InstantTab is notified about the instant support state.
|
|
|