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

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 for WebViewInteractiveUiTest.TextInputClientIsUpToDate 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 c2d818967faf917aeb970db22a221d927a004347..ee8625e961ffbcdcbc0f83b1cd17db675dc19fea 100644
--- a/content/browser/web_contents/web_contents_impl_unittest.cc
+++ b/content/browser/web_contents/web_contents_impl_unittest.cc
@@ -1437,7 +1437,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.

Powered by Google App Engine
This is Rietveld 408576698