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

Unified Diff: chrome/browser/tab_contents/navigation_controller_unittest.cc

Issue 4200007: Refactor automation messages. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: chrome_frame no longer depends on tab_contents.h Created 10 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
Index: chrome/browser/tab_contents/navigation_controller_unittest.cc
diff --git a/chrome/browser/tab_contents/navigation_controller_unittest.cc b/chrome/browser/tab_contents/navigation_controller_unittest.cc
index 8732b62e1cec262fd6a7eecf6e42d6a7ea0669cc..81010a99587e36f15d920c5555858b0e85ff798c 100644
--- a/chrome/browser/tab_contents/navigation_controller_unittest.cc
+++ b/chrome/browser/tab_contents/navigation_controller_unittest.cc
@@ -1374,8 +1374,7 @@ TEST_F(NavigationControllerTest, Interstitial) {
// Now navigate somewhere with an interstitial.
const GURL url2("http://bar");
controller().LoadURL(url1, GURL(), PageTransition::TYPED);
- controller().pending_entry()->set_page_type(
- NavigationEntry::INTERSTITIAL_PAGE);
+ controller().pending_entry()->set_page_type(INTERSTITIAL_PAGE);
// At this point the interstitial will be displayed and the load will still
// be pending. If the user continues, the load will commit.
@@ -1383,8 +1382,7 @@ TEST_F(NavigationControllerTest, Interstitial) {
// The page should be a normal page again.
EXPECT_EQ(url2, controller().GetLastCommittedEntry()->url());
- EXPECT_EQ(NavigationEntry::NORMAL_PAGE,
- controller().GetLastCommittedEntry()->page_type());
+ EXPECT_EQ(NORMAL_PAGE, controller().GetLastCommittedEntry()->page_type());
}
TEST_F(NavigationControllerTest, RemoveEntry) {
@@ -1674,7 +1672,7 @@ TEST_F(NavigationControllerTest, CloneOmitsInterstitials) {
// Add an interstitial entry. Should be deleted with controller.
NavigationEntry* interstitial_entry = new NavigationEntry();
- interstitial_entry->set_page_type(NavigationEntry::INTERSTITIAL_PAGE);
+ interstitial_entry->set_page_type(INTERSTITIAL_PAGE);
controller().AddTransientEntry(interstitial_entry);
scoped_ptr<TabContents> clone(controller().tab_contents()->Clone());
« no previous file with comments | « chrome/browser/tab_contents/navigation_controller.cc ('k') | chrome/browser/tab_contents/navigation_entry.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698