| Index: content/browser/web_contents/web_contents_impl_unittest.cc
|
| diff --git a/content/browser/web_contents/web_contents_impl_unittest.cc b/content/browser/web_contents/web_contents_impl_unittest.cc
|
| index 2d9259f383c703634b6a9aaf2b4550c05948e09c..635543d9d0fad61c1e845d752e9fee62c01e56fb 100644
|
| --- a/content/browser/web_contents/web_contents_impl_unittest.cc
|
| +++ b/content/browser/web_contents/web_contents_impl_unittest.cc
|
| @@ -513,6 +513,7 @@ TEST_F(WebContentsImplTest, CrossSiteBoundaries) {
|
| EXPECT_TRUE(contents()->GetRenderManagerForTesting()->
|
| IsOnSwappedOutList(pending_rfh));
|
| EXPECT_EQ(pending_rvh_delete_count, 0);
|
| + pending_rvh->OnSwappedOut(false);
|
|
|
| // Close contents and ensure RVHs are deleted.
|
| DeleteContents();
|
| @@ -710,6 +711,7 @@ TEST_F(WebContentsImplTest, NavigateDoesNotUseUpSiteInstance) {
|
| EXPECT_TRUE(contents()->GetRenderManagerForTesting()->IsOnSwappedOutList(
|
| orig_rfh));
|
| EXPECT_EQ(orig_rvh_delete_count, 0);
|
| + orig_rvh->OnSwappedOut(false);
|
|
|
| // Close contents and ensure RVHs are deleted.
|
| DeleteContents();
|
| @@ -1138,7 +1140,7 @@ TEST_F(WebContentsImplTest, CrossSiteNavigationCanceled) {
|
| EXPECT_TRUE(contents()->cross_navigation_pending());
|
|
|
| // Simulate swap out message when the response arrives.
|
| - orig_rvh->set_is_swapped_out(true);
|
| + orig_rvh->OnSwappedOut(false);
|
|
|
| // Suppose the navigation doesn't get a chance to commit, and the user
|
| // navigates in the current RVH's SiteInstance.
|
| @@ -1150,7 +1152,7 @@ TEST_F(WebContentsImplTest, CrossSiteNavigationCanceled) {
|
| SiteInstance* instance2 = contents()->GetSiteInstance();
|
| EXPECT_FALSE(contents()->cross_navigation_pending());
|
| EXPECT_EQ(orig_rvh, rvh());
|
| - EXPECT_FALSE(orig_rvh->is_swapped_out());
|
| + EXPECT_EQ(RenderViewHostImpl::STATE_DEFAULT, orig_rvh->rvh_state());
|
| EXPECT_EQ(instance1, instance2);
|
| EXPECT_TRUE(contents()->GetPendingRenderViewHost() == NULL);
|
| }
|
|
|