Index: base/process_util.h |
=================================================================== |
--- base/process_util.h (revision 30209) |
+++ base/process_util.h (working copy) |
@@ -420,10 +420,17 @@ |
// Note: Returns true on Windows 2000 without doing anything. |
bool EnableLowFragmentationHeap(); |
-// Enable 'terminate on heap corruption' flag. Helps protect against heap |
+// Enables 'terminate on heap corruption' flag. Helps protect against heap |
// overflow. Has no effect if the OS doesn't provide the necessary facility. |
void EnableTerminationOnHeapCorruption(); |
+#if defined(UNIT_TEST) |
+// Enables stack dump to console output on exception and signals. |
+// When enabled, the process will quit immediately. This is meant to be used in |
+// unit_tests only! |
+bool EnableInProcessStackDumping(); |
+#endif // defined(UNIT_TEST) |
+ |
// If supported on the platform, and the user has sufficent rights, increase |
// the current process's scheduling priority to a high priority. |
void RaiseProcessToHighPriority(); |