Chromium Code Reviews

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

Issue 4194007: Revert "Refactor automation messages." due to mysterious problems on mac. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 10 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
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 81010a99587e36f15d920c5555858b0e85ff798c..8732b62e1cec262fd6a7eecf6e42d6a7ea0669cc 100644
--- a/chrome/browser/tab_contents/navigation_controller_unittest.cc
+++ b/chrome/browser/tab_contents/navigation_controller_unittest.cc
@@ -1374,7 +1374,8 @@ 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(INTERSTITIAL_PAGE);
+ controller().pending_entry()->set_page_type(
+ NavigationEntry::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.
@@ -1382,7 +1383,8 @@ TEST_F(NavigationControllerTest, Interstitial) {
// The page should be a normal page again.
EXPECT_EQ(url2, controller().GetLastCommittedEntry()->url());
- EXPECT_EQ(NORMAL_PAGE, controller().GetLastCommittedEntry()->page_type());
+ EXPECT_EQ(NavigationEntry::NORMAL_PAGE,
+ controller().GetLastCommittedEntry()->page_type());
}
TEST_F(NavigationControllerTest, RemoveEntry) {
@@ -1672,7 +1674,7 @@ TEST_F(NavigationControllerTest, CloneOmitsInterstitials) {
// Add an interstitial entry. Should be deleted with controller.
NavigationEntry* interstitial_entry = new NavigationEntry();
- interstitial_entry->set_page_type(INTERSTITIAL_PAGE);
+ interstitial_entry->set_page_type(NavigationEntry::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