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

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

Issue 894843003: Move the RenderProcessGone IPC from RenderViewHost to RenderFrameHost (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix conflict with dalecurtis' CL Created 5 years, 10 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
« no previous file with comments | « content/browser/renderer_host/render_widget_host_impl.cc ('k') | content/common/frame_messages.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 39e60b9757720ecbe69e94d64f314c8449472a44..ab40bcd466f7431fb7b60094387f79825a8ff74e 100644
--- a/content/browser/web_contents/web_contents_impl_unittest.cc
+++ b/content/browser/web_contents/web_contents_impl_unittest.cc
@@ -1426,8 +1426,8 @@ TEST_F(WebContentsImplTest, TerminateHidesValidationMessage) {
EXPECT_FALSE(fake_delegate.hide_validation_message_was_called());
// Crash the renderer.
- contents()->GetMainFrame()->GetRenderViewHost()->OnMessageReceived(
- ViewHostMsg_RenderProcessGone(
+ contents()->GetMainFrame()->OnMessageReceived(
+ FrameHostMsg_RenderProcessGone(
0, base::TERMINATION_STATUS_PROCESS_CRASHED, -1));
// Confirm HideValidationMessage was called.
@@ -1460,8 +1460,8 @@ TEST_F(WebContentsImplTest, CrashExitsFullscreen) {
EXPECT_TRUE(fake_delegate.IsFullscreenForTabOrPending(contents()));
// Crash the renderer.
- test_rvh()->OnMessageReceived(
- ViewHostMsg_RenderProcessGone(
+ main_rfh()->OnMessageReceived(
+ FrameHostMsg_RenderProcessGone(
0, base::TERMINATION_STATUS_PROCESS_CRASHED, -1));
// Confirm fullscreen has exited.
@@ -1866,8 +1866,8 @@ TEST_F(WebContentsImplTest, ShowInterstitialCrashRendererThenGoBack) {
interstitial->TestDidNavigate(2, interstitial_url);
// Crash the renderer
- test_rvh()->OnMessageReceived(
- ViewHostMsg_RenderProcessGone(
+ main_rfh()->OnMessageReceived(
+ FrameHostMsg_RenderProcessGone(
0, base::TERMINATION_STATUS_PROCESS_CRASHED, -1));
// While the interstitial is showing, go back.
@@ -1905,8 +1905,8 @@ TEST_F(WebContentsImplTest, ShowInterstitialCrashRendererThenNavigate) {
interstitial->Show();
// Crash the renderer
- test_rvh()->OnMessageReceived(
- ViewHostMsg_RenderProcessGone(
+ main_rfh()->OnMessageReceived(
+ FrameHostMsg_RenderProcessGone(
0, base::TERMINATION_STATUS_PROCESS_CRASHED, -1));
interstitial->TestDidNavigate(2, interstitial_url);
@@ -1957,8 +1957,8 @@ TEST_F(WebContentsImplTest, ShowInterstitialThenCloseAndShutdown) {
// Before the interstitial has a chance to process its shutdown task,
// simulate quitting the browser. This goes through all processes and
// tells them to destruct.
- rvh->OnMessageReceived(
- ViewHostMsg_RenderProcessGone(0, 0, 0));
+ rvh->GetMainFrame()->OnMessageReceived(
+ FrameHostMsg_RenderProcessGone(0, 0, 0));
RunAllPendingInMessageLoop();
EXPECT_TRUE(deleted);
@@ -2988,8 +2988,8 @@ TEST_F(WebContentsImplTest, MediaPowerSaveBlocking) {
!AudioStreamMonitor::monitoring_available());
// Crash the renderer.
- contents()->GetMainFrame()->GetRenderViewHost()->OnMessageReceived(
- ViewHostMsg_RenderProcessGone(
+ contents()->GetMainFrame()->OnMessageReceived(
+ FrameHostMsg_RenderProcessGone(
0, base::TERMINATION_STATUS_PROCESS_CRASHED, -1));
// Verify that all the power save blockers have been released.
« no previous file with comments | « content/browser/renderer_host/render_widget_host_impl.cc ('k') | content/common/frame_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698