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

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

Issue 8949061: Move a bunch of methods from TabContents into the WebContents interface. This change either moves... (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
« no previous file with comments | « content/browser/tab_contents/tab_contents.cc ('k') | content/browser/tab_contents/web_drag_source_gtk.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/tab_contents/tab_contents_unittest.cc
===================================================================
--- content/browser/tab_contents/tab_contents_unittest.cc (revision 115435)
+++ content/browser/tab_contents/tab_contents_unittest.cc (working copy)
@@ -370,7 +370,7 @@
EXPECT_NE(instance1, instance2);
EXPECT_TRUE(contents()->pending_rvh() == NULL);
// We keep the original RVH around, swapped out.
- EXPECT_TRUE(contents()->render_manager_for_testing()->IsSwappedOut(orig_rvh));
+ EXPECT_TRUE(contents()->GetRenderManagerForTesting()->IsSwappedOut(orig_rvh));
EXPECT_EQ(orig_rvh_delete_count, 0);
// Going back should switch SiteInstances again. The first SiteInstance is
@@ -393,7 +393,7 @@
EXPECT_EQ(goback_rvh, contents()->GetRenderViewHost());
EXPECT_EQ(instance1, contents()->GetSiteInstance());
// The pending RVH should now be swapped out, not deleted.
- EXPECT_TRUE(contents()->render_manager_for_testing()->
+ EXPECT_TRUE(contents()->GetRenderManagerForTesting()->
IsSwappedOut(pending_rvh));
EXPECT_EQ(pending_rvh_delete_count, 0);
@@ -834,7 +834,7 @@
// Simulate the pending renderer's response, which leads to an unload request
// being sent to orig_rvh.
- contents()->render_manager_for_testing()->OnCrossSiteResponse(0, 0);
+ contents()->GetRenderManagerForTesting()->OnCrossSiteResponse(0, 0);
// Suppose the original renderer navigates now, while the unload request is in
// flight. We should ignore it, wait for the unload ack, and let the pending
« no previous file with comments | « content/browser/tab_contents/tab_contents.cc ('k') | content/browser/tab_contents/web_drag_source_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698