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

Unified Diff: net/tools/stress_cache/stress_cache.cc

Issue 2638763004: Report CHECK/DCHECK to test launcher summary output. (Closed)
Patch Set: Add test for assert handlers nesting. Created 3 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 | « net/test/scoped_disable_exit_on_dfatal.cc ('k') | sandbox/linux/tests/main.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/tools/stress_cache/stress_cache.cc
diff --git a/net/tools/stress_cache/stress_cache.cc b/net/tools/stress_cache/stress_cache.cc
index fefcd72f23d7177f48a743d6bc33cf610fe72b67..3d49fda5cce82fd47aac543d20cc4fbd288838b5 100644
--- a/net/tools/stress_cache/stress_cache.cc
+++ b/net/tools/stress_cache/stress_cache.cc
@@ -379,7 +379,10 @@ bool StartCrashThread() {
return true;
}
-void CrashHandler(const std::string& str) {
+void CrashHandler(const char* file,
+ int line,
+ const base::StringPiece str,
+ const base::StringPiece stack_trace) {
g_crashing = true;
base::debug::BreakDebugger();
}
@@ -414,7 +417,8 @@ int main(int argc, const char* argv[]) {
if (argc < 2)
return MasterCode();
- logging::SetLogAssertHandler(CrashHandler);
+ logging::ScopedLogAssertHandler scoped_assert_handler(
+ base::Bind(CrashHandler));
logging::SetLogMessageHandler(MessageHandler);
#if defined(OS_WIN)
« no previous file with comments | « net/test/scoped_disable_exit_on_dfatal.cc ('k') | sandbox/linux/tests/main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698