Index: base/debug/stack_trace_unittest.cc |
diff --git a/base/debug/stack_trace_unittest.cc b/base/debug/stack_trace_unittest.cc |
index ce5f3136eb1d99ba2f38f3b2cd403bfc05d41a73..479ed2b0f3fc5286694cd230709b9c8b62c2bda5 100644 |
--- a/base/debug/stack_trace_unittest.cc |
+++ b/base/debug/stack_trace_unittest.cc |
@@ -28,6 +28,9 @@ TEST(StackTrace, MAYBE_OutputToStream) { |
trace.OutputToStream(&os); |
std::string backtrace_message = os.str(); |
+ // ToString() should produce the same output. |
+ EXPECT_EQ(backtrace_message, trace.ToString()); |
+ |
#if defined(OS_POSIX) && !defined(OS_MACOSX) && NDEBUG |
// Stack traces require an extra data table that bloats our binaries, |
// so they're turned off for release builds. We stop the test here, |