Index: base/debug/stack_trace_unittest.cc |
diff --git a/base/debug/stack_trace_unittest.cc b/base/debug/stack_trace_unittest.cc |
index 536edb258075271035b2b7a457111e692be095b0..bdff543e7934c5d5c571d64b6fc926d8eaea3ebb 100644 |
--- a/base/debug/stack_trace_unittest.cc |
+++ b/base/debug/stack_trace_unittest.cc |
@@ -8,6 +8,7 @@ |
#include <sstream> |
#include <string> |
+#include "base/debug/debugging_flags.h" |
#include "base/debug/stack_trace.h" |
#include "base/logging.h" |
#include "base/process/kill.h" |
@@ -254,10 +255,11 @@ TEST_F(StackTraceTest, itoa_r) { |
} |
#endif // defined(OS_POSIX) && !defined(OS_ANDROID) |
-#if HAVE_TRACE_STACK_FRAME_POINTERS && !defined(OS_WIN) |
// Windows x64 binaries cannot be built with frame pointer, and MSVC doesn't |
// provide intrinsics to query the frame pointer even for the x86 build, nor |
// does it allow us to take the address of labels, so skip these under Windows. |
+#if BUILDFLAG(CAN_UNWIND_WITH_FRAME_POINTERS) && !defined(OS_WIN) |
+ |
template <size_t Depth> |
void NOINLINE ExpectStackFramePointers(const void** frames, |
size_t max_depth) { |
@@ -315,7 +317,7 @@ TEST_F(StackTraceTest, MAYBE_StackEnd) { |
EXPECT_NE(0u, GetStackEnd()); |
} |
-#endif // HAVE_TRACE_STACK_FRAME_POINTERS && !defined(OS_WIN) |
+#endif // BUILDFLAG(CAN_UNWIND_WITH_FRAME_POINTERS) && !defined(OS_WIN) |
} // namespace debug |
} // namespace base |