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

Unified Diff: base/debug_util_unittest.cc

Issue 545148: Import google-glog's Symbolize() and use it in debug_util_posix.cc. (Closed)
Patch Set: Fix checkdeps.py error Created 10 years, 11 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: base/debug_util_unittest.cc
diff --git a/base/debug_util_unittest.cc b/base/debug_util_unittest.cc
index 7bee4ccbc576403b80373d1c558568134710d465..6d3043f83c555f2b1dc8b090b356f555d47a60ec 100644
--- a/base/debug_util_unittest.cc
+++ b/base/debug_util_unittest.cc
@@ -91,3 +91,18 @@ TEST(StackTrace, DISABLED_OutputToStream) {
#endif // define(OS_MACOSX)
}
+
+// The test is used for manual testing (i.e. see the raw output).
+// To run the test use the flags:
+// --gtest_filter='*DebugOutputToStream' --gtest_also_run_disabled_tests
+TEST(StackTrace, DISABLED_DebugOutputToStream) {
+ StackTrace trace;
+ std::ostringstream os;
+ trace.OutputToStream(&os);
+ LOG(INFO) << os.str();
+}
+
+// The test is used for manual testing. See the comment above.
+TEST(StackTrace, DISABLED_DebugPrintBacktrace) {
+ StackTrace().PrintBacktrace();
+}

Powered by Google App Engine
This is Rietveld 408576698