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

Unified Diff: content/renderer/browser_plugin/browser_plugin_browsertest.cc

Issue 11233044: Browser Plugin: Add 'crashed' exit type (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 2 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/renderer/browser_plugin/browser_plugin.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/browser_plugin/browser_plugin_browsertest.cc
diff --git a/content/renderer/browser_plugin/browser_plugin_browsertest.cc b/content/renderer/browser_plugin/browser_plugin_browsertest.cc
index d860226bfcc8d9542d8bf97ce4dde9e0493a30b4..f990c118ece9a9c1f47ebf8814d662ef5529084e 100644
--- a/content/renderer/browser_plugin/browser_plugin_browsertest.cc
+++ b/content/renderer/browser_plugin/browser_plugin_browsertest.cc
@@ -281,12 +281,18 @@ TEST_F(BrowserPluginTest, GuestCrash) {
ExecuteJavaScript(kAddEventListener);
- // Pretend that the guest has crashed
+ // Pretend that the guest has terminated normally.
browser_plugin->GuestGone(0, base::TERMINATION_STATUS_NORMAL_TERMINATION);
// Verify that our event listener has fired.
EXPECT_EQ("normal", ExecuteScriptAndReturnString("msg"));
+ // Pretend that the guest has crashed.
+ browser_plugin->GuestGone(0, base::TERMINATION_STATUS_PROCESS_CRASHED);
+
+ // Verify that our event listener has fired.
+ EXPECT_EQ("crashed", ExecuteScriptAndReturnString("msg"));
+
// Send an event and verify that events are no longer deported.
browser_plugin->handleInputEvent(WebKit::WebMouseEvent(),
cursor_info);
« no previous file with comments | « content/renderer/browser_plugin/browser_plugin.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698