diff options
author | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-04-15 03:25:11 +0000 |
---|---|---|
committer | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-04-15 03:25:11 +0000 |
commit | 7f0005ab19ca4e374029180753c32e4c9813303a (patch) | |
tree | f36e756a90ff4324530789c89aef6a2e2f3573b5 /chrome/browser/tab_contents/web_contents_unittest.cc | |
parent | b237407befc41c3a19c7519523b102808213b49b (diff) | |
download | chromium_src-7f0005ab19ca4e374029180753c32e4c9813303a.zip chromium_src-7f0005ab19ca4e374029180753c32e4c9813303a.tar.gz chromium_src-7f0005ab19ca4e374029180753c32e4c9813303a.tar.bz2 |
Remove TabContentsType from the NavigationController external interface and in
some related areas. I removed all uses of this in the previous patch.
Review URL: http://codereview.chromium.org/73057
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@13730 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/tab_contents/web_contents_unittest.cc')
-rw-r--r-- | chrome/browser/tab_contents/web_contents_unittest.cc | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/chrome/browser/tab_contents/web_contents_unittest.cc b/chrome/browser/tab_contents/web_contents_unittest.cc index 4245cab..c5e58e1 100644 --- a/chrome/browser/tab_contents/web_contents_unittest.cc +++ b/chrome/browser/tab_contents/web_contents_unittest.cc @@ -577,7 +577,7 @@ TEST_F(WebContentsTest, // Navigate to a page. GURL url1("http://www.google.com"); rvh()->SendNavigate(1, url1); - EXPECT_EQ(1, controller()->GetEntryCount()); + EXPECT_EQ(1, controller()->entry_count()); // Initiate a browser navigation that will trigger the interstitial controller()->LoadURL(GURL("http://www.evil.com"), GURL(), @@ -614,7 +614,7 @@ TEST_F(WebContentsTest, entry = controller()->GetActiveEntry(); ASSERT_TRUE(entry != NULL); EXPECT_TRUE(entry->url() == url1); - EXPECT_EQ(1, controller()->GetEntryCount()); + EXPECT_EQ(1, controller()->entry_count()); } // Test navigating to a page (with the navigation initiated from the renderer, @@ -625,7 +625,7 @@ TEST_F(WebContentsTest, // Navigate to a page. GURL url1("http://www.google.com"); rvh()->SendNavigate(1, url1); - EXPECT_EQ(1, controller()->GetEntryCount()); + EXPECT_EQ(1, controller()->entry_count()); // Show an interstitial (no pending entry, the interstitial would have been // triggered by clicking on a link). @@ -659,7 +659,7 @@ TEST_F(WebContentsTest, entry = controller()->GetActiveEntry(); ASSERT_TRUE(entry != NULL); EXPECT_TRUE(entry->url() == url1); - EXPECT_EQ(1, controller()->GetEntryCount()); + EXPECT_EQ(1, controller()->entry_count()); } // Test navigating to a page that shows an interstitial without creating a new @@ -669,7 +669,7 @@ TEST_F(WebContentsTest, ShowInterstitialNoNewNavigationDontProceed) { // Navigate to a page. GURL url1("http://www.google.com"); rvh()->SendNavigate(1, url1); - EXPECT_EQ(1, controller()->GetEntryCount()); + EXPECT_EQ(1, controller()->entry_count()); // Show an interstitial. TestInterstitialPage::InterstitialState state = @@ -703,7 +703,7 @@ TEST_F(WebContentsTest, ShowInterstitialNoNewNavigationDontProceed) { entry = controller()->GetActiveEntry(); ASSERT_TRUE(entry != NULL); EXPECT_TRUE(entry->url() == url1); - EXPECT_EQ(1, controller()->GetEntryCount()); + EXPECT_EQ(1, controller()->entry_count()); } // Test navigating to a page (with the navigation initiated from the browser, @@ -714,7 +714,7 @@ TEST_F(WebContentsTest, // Navigate to a page. GURL url1("http://www.google.com"); rvh()->SendNavigate(1, url1); - EXPECT_EQ(1, controller()->GetEntryCount()); + EXPECT_EQ(1, controller()->entry_count()); // Initiate a browser navigation that will trigger the interstitial controller()->LoadURL(GURL("http://www.evil.com"), GURL(), @@ -762,7 +762,7 @@ TEST_F(WebContentsTest, ASSERT_TRUE(entry != NULL); EXPECT_TRUE(entry->url() == url3); - EXPECT_EQ(2, controller()->GetEntryCount()); + EXPECT_EQ(2, controller()->entry_count()); } // Test navigating to a page (with the navigation initiated from the renderer, @@ -773,7 +773,7 @@ TEST_F(WebContentsTest, // Navigate to a page. GURL url1("http://www.google.com"); rvh()->SendNavigate(1, url1); - EXPECT_EQ(1, controller()->GetEntryCount()); + EXPECT_EQ(1, controller()->entry_count()); // Show an interstitial. TestInterstitialPage::InterstitialState state = @@ -817,7 +817,7 @@ TEST_F(WebContentsTest, ASSERT_TRUE(entry != NULL); EXPECT_TRUE(entry->url() == url3); - EXPECT_EQ(2, controller()->GetEntryCount()); + EXPECT_EQ(2, controller()->entry_count()); } // Test navigating to a page that shows an interstitial without creating a new @@ -827,7 +827,7 @@ TEST_F(WebContentsTest, ShowInterstitialNoNewNavigationProceed) { // Navigate to a page so we have a navigation entry in the controller. GURL url1("http://www.google.com"); rvh()->SendNavigate(1, url1); - EXPECT_EQ(1, controller()->GetEntryCount()); + EXPECT_EQ(1, controller()->entry_count()); // Show an interstitial. TestInterstitialPage::InterstitialState state = @@ -864,7 +864,7 @@ TEST_F(WebContentsTest, ShowInterstitialNoNewNavigationProceed) { ASSERT_TRUE(entry != NULL); EXPECT_TRUE(entry->url() == url1); - EXPECT_EQ(1, controller()->GetEntryCount()); + EXPECT_EQ(1, controller()->entry_count()); } // Test navigating to a page that shows an interstitial, then navigating away. @@ -914,7 +914,7 @@ TEST_F(WebContentsTest, ShowInterstitialProceedMultipleCommands) { // Navigate to a page so we have a navigation entry in the controller. GURL url1("http://www.google.com"); rvh()->SendNavigate(1, url1); - EXPECT_EQ(1, controller()->GetEntryCount()); + EXPECT_EQ(1, controller()->entry_count()); // Show an interstitial. TestInterstitialPage::InterstitialState state = @@ -948,7 +948,7 @@ TEST_F(WebContentsTest, ShowInterstitialOnInterstitial) { // Navigate to a page so we have a navigation entry in the controller. GURL start_url("http://www.google.com"); rvh()->SendNavigate(1, start_url); - EXPECT_EQ(1, controller()->GetEntryCount()); + EXPECT_EQ(1, controller()->entry_count()); // Show an interstitial. TestInterstitialPage::InterstitialState state1 = @@ -989,7 +989,7 @@ TEST_F(WebContentsTest, ShowInterstitialOnInterstitial) { NavigationEntry* entry = controller()->GetActiveEntry(); ASSERT_TRUE(entry != NULL); EXPECT_TRUE(entry->url() == landing_url); - EXPECT_EQ(2, controller()->GetEntryCount()); + EXPECT_EQ(2, controller()->entry_count()); } // Test showing an interstitial, proceeding and then navigating to another @@ -998,7 +998,7 @@ TEST_F(WebContentsTest, ShowInterstitialProceedShowInterstitial) { // Navigate to a page so we have a navigation entry in the controller. GURL start_url("http://www.google.com"); rvh()->SendNavigate(1, start_url); - EXPECT_EQ(1, controller()->GetEntryCount()); + EXPECT_EQ(1, controller()->entry_count()); // Show an interstitial. TestInterstitialPage::InterstitialState state1 = @@ -1044,7 +1044,7 @@ TEST_F(WebContentsTest, ShowInterstitialProceedShowInterstitial) { NavigationEntry* entry = controller()->GetActiveEntry(); ASSERT_TRUE(entry != NULL); EXPECT_TRUE(entry->url() == landing_url); - EXPECT_EQ(2, controller()->GetEntryCount()); + EXPECT_EQ(2, controller()->entry_count()); } // Test that navigating away from an interstitial while it's loading cause it |