Index: base/win/scoped_handle_test_dll.cc |
diff --git a/base/win/scoped_handle_test_dll.cc b/base/win/scoped_handle_test_dll.cc |
index 440a4ca7658c83619baf404b5bf0d0f2d4a078c3..144de87a929bc228c1ff08db8de68e1c51438ec0 100644 |
--- a/base/win/scoped_handle_test_dll.cc |
+++ b/base/win/scoped_handle_test_dll.cc |
@@ -6,6 +6,7 @@ |
#include <vector> |
+#include "base/win/base_features.h" |
#include "base/win/current_module.h" |
#include "base/win/scoped_handle.h" |
@@ -82,6 +83,7 @@ bool InternalRunThreadTest() { |
} |
bool InternalRunLocationTest() { |
+#if BUILDFLAG(ENABLE_HANDLE_VERIFIER) |
// Create a new handle and then set LastError again. |
HANDLE handle = ::CreateMutex(nullptr, false, nullptr); |
if (!handle) |
@@ -110,6 +112,7 @@ bool InternalRunLocationTest() { |
if (verifier_module == my_module || verifier_module != main_module) |
return false; |
#endif |
+#endif // BUILDFLAG(ENABLE_HANDLE_VERIFIER) |
return true; |
} |