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

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

Issue 1159183002: Improve process crash handling in RenderViewHost & mock RenderProcessHost. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix compile problem in webview_interactive_uitest.cc Created 5 years, 7 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/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 fdcbdec9cb7c559556e251298cf8e11d5143b9f5..22efe5dd64c30f189ed4edacd529590753fc98ee 100644
--- a/content/browser/web_contents/web_contents_impl_unittest.cc
+++ b/content/browser/web_contents/web_contents_impl_unittest.cc
@@ -1445,7 +1445,9 @@ TEST_F(WebContentsImplTest, TerminateHidesValidationMessage) {
contents()->SetDelegate(&fake_delegate);
EXPECT_FALSE(fake_delegate.hide_validation_message_was_called());
- // Crash the renderer.
+ // Initialize the RenderFrame and then simulate crashing the renderer
+ // process.
+ contents()->GetMainFrame()->InitializeRenderFrameIfNeeded();
contents()->GetMainFrame()->GetProcess()->SimulateCrash();
// Confirm HideValidationMessage was called.
« no previous file with comments | « content/browser/renderer_host/render_widget_host_view_mac_unittest.mm ('k') | content/public/test/mock_render_process_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698