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

Unified Diff: content/browser/web_contents/navigation_controller_impl_unittest.cc

Issue 10038026: TabContents -> WebContentsImpl, part 12. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: *web*contents Created 8 years, 8 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: content/browser/web_contents/navigation_controller_impl_unittest.cc
diff --git a/content/browser/web_contents/navigation_controller_impl_unittest.cc b/content/browser/web_contents/navigation_controller_impl_unittest.cc
index 3812a387aaa3d7bab4800fdcda76a7d52f196ff3..36e89dafae0325f6dff2d5244ce437cbd757b603 100644
--- a/content/browser/web_contents/navigation_controller_impl_unittest.cc
+++ b/content/browser/web_contents/navigation_controller_impl_unittest.cc
@@ -1542,7 +1542,7 @@ TEST_F(NavigationControllerTest, RestoreNavigate) {
entry->SetTitle(ASCIIToUTF16("Title"));
entry->SetContentState("state");
entries.push_back(entry);
- TabContents our_contents(
+ WebContentsImpl our_contents(
browser_context(), NULL, MSG_ROUTING_NONE, NULL, NULL);
NavigationControllerImpl& our_controller = our_contents.GetControllerImpl();
our_controller.Restore(0, true, &entries);
@@ -1609,7 +1609,7 @@ TEST_F(NavigationControllerTest, RestoreNavigateAfterFailure) {
entry->SetTitle(ASCIIToUTF16("Title"));
entry->SetContentState("state");
entries.push_back(entry);
- TabContents our_contents(
+ WebContentsImpl our_contents(
browser_context(), NULL, MSG_ROUTING_NONE, NULL, NULL);
NavigationControllerImpl& our_controller = our_contents.GetControllerImpl();
our_controller.Restore(0, true, &entries);
@@ -1990,7 +1990,8 @@ TEST_F(NavigationControllerTest, SameSubframe) {
EXPECT_EQ(controller.GetLastCommittedEntryIndex(), 0);
}
-// Make sure that on cloning a tabcontents and going back needs_reload is false.
+// Make sure that on cloning a WebContentsImpl and going back needs_reload is
+// false.
TEST_F(NavigationControllerTest, CloneAndGoBack) {
NavigationControllerImpl& controller = controller_impl();
const GURL url1("http://foo1");
@@ -2008,7 +2009,7 @@ TEST_F(NavigationControllerTest, CloneAndGoBack) {
EXPECT_FALSE(clone->GetController().NeedsReload());
}
-// Make sure that cloning a tabcontents doesn't copy interstitials.
+// Make sure that cloning a WebContentsImpl doesn't copy interstitials.
TEST_F(NavigationControllerTest, CloneOmitsInterstitials) {
NavigationControllerImpl& controller = controller_impl();
const GURL url1("http://foo1");
« no previous file with comments | « content/browser/web_contents/navigation_controller_impl.cc ('k') | content/browser/web_contents/render_view_host_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698