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

Unified Diff: base/win/scoped_handle_test_dll.cc

Issue 1977833003: Add a buildflag to use the handle verifier in a per module mode. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: GN. Created 4 years, 7 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/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;
}

Powered by Google App Engine
This is Rietveld 408576698