summaryrefslogtreecommitdiffstats
path: root/chrome/browser/tab_contents/web_contents_unittest.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/tab_contents/web_contents_unittest.cc')
-rw-r--r--chrome/browser/tab_contents/web_contents_unittest.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/chrome/browser/tab_contents/web_contents_unittest.cc b/chrome/browser/tab_contents/web_contents_unittest.cc
index d55bbe4..f5d5a16 100644
--- a/chrome/browser/tab_contents/web_contents_unittest.cc
+++ b/chrome/browser/tab_contents/web_contents_unittest.cc
@@ -307,7 +307,7 @@ TEST_F(TabContentsTest, CrossSiteBoundaries) {
EXPECT_NE(instance1, instance2);
EXPECT_TRUE(contents()->pending_rvh() == NULL);
// We keep the original RVH around, swapped out.
- EXPECT_TRUE(contents()->render_manager()->IsSwappedOut(orig_rvh));
+ EXPECT_TRUE(contents()->render_manager_for_testing()->IsSwappedOut(orig_rvh));
EXPECT_EQ(orig_rvh_delete_count, 0);
// Going back should switch SiteInstances again. The first SiteInstance is
@@ -329,7 +329,8 @@ TEST_F(TabContentsTest, CrossSiteBoundaries) {
EXPECT_EQ(goback_rvh, contents()->render_view_host());
EXPECT_EQ(instance1, contents()->GetSiteInstance());
// The pending RVH should now be swapped out, not deleted.
- EXPECT_TRUE(contents()->render_manager()->IsSwappedOut(pending_rvh));
+ EXPECT_TRUE(contents()->render_manager_for_testing()->
+ IsSwappedOut(pending_rvh));
EXPECT_EQ(pending_rvh_delete_count, 0);
// Close tab and ensure RVHs are deleted.
@@ -772,7 +773,7 @@ TEST_F(TabContentsTest, CrossSiteCantPreemptAfterUnload) {
// Simulate the pending renderer's response, which leads to an unload request
// being sent to orig_rvh.
- contents()->render_manager()->OnCrossSiteResponse(0, 0);
+ contents()->render_manager_for_testing()->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