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

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

Issue 8956050: Rename TabContents::controller() to GetController and put it into the WebContents interface. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years 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: content/browser/tab_contents/navigation_controller_unittest.cc
===================================================================
--- content/browser/tab_contents/navigation_controller_unittest.cc (revision 115228)
+++ content/browser/tab_contents/navigation_controller_unittest.cc (working copy)
@@ -1485,7 +1485,7 @@
entries.push_back(entry);
TabContents our_contents(
browser_context(), NULL, MSG_ROUTING_NONE, NULL, NULL);
- NavigationController& our_controller = our_contents.controller();
+ NavigationController& our_controller = our_contents.GetController();
our_controller.Restore(0, true, &entries);
ASSERT_EQ(0u, entries.size());
@@ -1545,7 +1545,7 @@
entries.push_back(entry);
TabContents our_contents(
browser_context(), NULL, MSG_ROUTING_NONE, NULL, NULL);
- NavigationController& our_controller = our_contents.controller();
+ NavigationController& our_controller = our_contents.GetController();
our_controller.Restore(0, true, &entries);
ASSERT_EQ(0u, entries.size());
@@ -1916,11 +1916,11 @@
scoped_ptr<TabContents> clone(controller().tab_contents()->Clone());
- ASSERT_EQ(2, clone->controller().entry_count());
- EXPECT_TRUE(clone->controller().needs_reload());
- clone->controller().GoBack();
+ ASSERT_EQ(2, clone->GetController().entry_count());
+ EXPECT_TRUE(clone->GetController().needs_reload());
+ clone->GetController().GoBack();
// Navigating back should have triggered needs_reload_ to go false.
- EXPECT_FALSE(clone->controller().needs_reload());
+ EXPECT_FALSE(clone->GetController().needs_reload());
}
// Make sure that cloning a tabcontents doesn't copy interstitials.
@@ -1938,7 +1938,7 @@
scoped_ptr<TabContents> clone(controller().tab_contents()->Clone());
- ASSERT_EQ(2, clone->controller().entry_count());
+ ASSERT_EQ(2, clone->GetController().entry_count());
}
// Tests a subframe navigation while a toplevel navigation is pending.
@@ -1987,7 +1987,7 @@
NavigateAndCommit(url2);
scoped_ptr<TestTabContents> other_contents(CreateTestTabContents());
- NavigationController& other_controller = other_contents->controller();
+ NavigationController& other_controller = other_contents->GetController();
other_contents->NavigateAndCommit(url3);
other_contents->ExpectSetHistoryLengthAndPrune(
other_controller.GetEntryAtIndex(0)->site_instance(), 2,
@@ -2017,7 +2017,7 @@
controller().GoBack();
scoped_ptr<TestTabContents> other_contents(CreateTestTabContents());
- NavigationController& other_controller = other_contents->controller();
+ NavigationController& other_controller = other_contents->GetController();
other_contents->ExpectSetHistoryLengthAndPrune(NULL, 1, -1);
other_controller.CopyStateFromAndPrune(&controller());
@@ -2042,7 +2042,7 @@
controller().GoBack();
scoped_ptr<TestTabContents> other_contents(CreateTestTabContents());
- NavigationController& other_controller = other_contents->controller();
+ NavigationController& other_controller = other_contents->GetController();
other_controller.LoadURL(
url3, content::Referrer(), content::PAGE_TRANSITION_TYPED, std::string());
other_contents->ExpectSetHistoryLengthAndPrune(NULL, 1, -1);
« no previous file with comments | « content/browser/tab_contents/interstitial_page.cc ('k') | content/browser/tab_contents/render_view_host_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698