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

Unified Diff: base/win/scoped_handle_unittest.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_unittest.cc
diff --git a/base/win/scoped_handle_unittest.cc b/base/win/scoped_handle_unittest.cc
index 2d90f9fcf34f693552ffcc62ba31111520d3a393..5cb1748549793f688a3520f727314732a4a74edc 100644
--- a/base/win/scoped_handle_unittest.cc
+++ b/base/win/scoped_handle_unittest.cc
@@ -48,6 +48,7 @@ TEST(ScopedHandleTest, ScopedHandle) {
EXPECT_EQ(magic_error, ::GetLastError());
}
+#if BUILDFLAG(ENABLE_HANDLE_VERIFIER)
TEST(ScopedHandleTest, ActiveVerifierTrackedHasBeenClosed) {
HANDLE handle = ::CreateMutex(nullptr, false, nullptr);
ASSERT_NE(HANDLE(nullptr), handle);
@@ -129,6 +130,7 @@ MULTIPROCESS_TEST_MAIN(ActiveVerifierChildProcess) {
return 0;
}
+#endif
} // namespace win
} // namespace base
« base/win/BUILD.gn ('K') | « base/win/scoped_handle_test_dll.cc ('k') | build/common.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698