Index: third_party/mojo/src/mojo/public/cpp/bindings/tests/bounds_checker_unittest.cc |
diff --git a/third_party/mojo/src/mojo/public/cpp/bindings/tests/bounds_checker_unittest.cc b/third_party/mojo/src/mojo/public/cpp/bindings/tests/bounds_checker_unittest.cc |
index 1cd961873e5c0348e974d7073dbefd48bd8cb3a9..c1ec7b3fcc41b2d54e444ea904cbded2dd259533 100644 |
--- a/third_party/mojo/src/mojo/public/cpp/bindings/tests/bounds_checker_unittest.cc |
+++ b/third_party/mojo/src/mojo/public/cpp/bindings/tests/bounds_checker_unittest.cc |
@@ -17,7 +17,7 @@ const void* ToPtr(uintptr_t ptr) { |
return reinterpret_cast<const void*>(ptr); |
} |
-#ifdef NDEBUG |
+#if defined(NDEBUG) && !defined(DCHECK_ALWAYS_ON) |
TEST(BoundsCheckerTest, ConstructorRangeOverflow) { |
{ |
// Test memory range overflow. |