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

Unified Diff: content/renderer/renderer_main.cc

Issue 10082001: Convert the logging ui_test to a browser_test. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 8 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/public/common/content_switches.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/renderer_main.cc
===================================================================
--- content/renderer/renderer_main.cc (revision 132544)
+++ content/renderer/renderer_main.cc (working copy)
@@ -110,31 +110,16 @@
// This function provides some ways to test crash and assertion handling
// behavior of the renderer.
static void HandleRendererErrorTestParameters(const CommandLine& command_line) {
- // This parameter causes an assertion.
- if (command_line.HasSwitch(switches::kRendererAssertTest)) {
- DCHECK(false);
- }
-
-
-#if !defined(OFFICIAL_BUILD)
- // This parameter causes an assertion too.
- if (command_line.HasSwitch(switches::kRendererCheckFalseTest)) {
- CHECK(false);
- }
-#endif // !defined(OFFICIAL_BUILD)
-
-
- // This parameter causes a null pointer crash (crash reporter trigger).
- if (command_line.HasSwitch(switches::kRendererCrashTest)) {
- int* bad_pointer = NULL;
- *bad_pointer = 0;
- }
-
if (command_line.HasSwitch(switches::kWaitForDebugger))
base::debug::WaitForDebugger(60, true);
if (command_line.HasSwitch(switches::kRendererStartupDialog))
ChildProcess::WaitForDebugger("Renderer");
+
+ // This parameter causes an assertion.
+ if (command_line.HasSwitch(switches::kRendererAssertTest)) {
+ DCHECK(false);
+ }
}
// This is a simplified version of the browser Jankometer, which measures
« no previous file with comments | « content/public/common/content_switches.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698