Index: base/trace_event/memory_dump_manager_unittest.cc |
diff --git a/base/trace_event/memory_dump_manager_unittest.cc b/base/trace_event/memory_dump_manager_unittest.cc |
index c1295efac653e66ad9ee6c50c80183f792ed3dd6..c6ab7495ef2fcc530b62df02ee9b14d020973e8a 100644 |
--- a/base/trace_event/memory_dump_manager_unittest.cc |
+++ b/base/trace_event/memory_dump_manager_unittest.cc |
@@ -895,7 +895,9 @@ TEST_F(MemoryDumpManagerTest, TraceConfigExpectationsWhenIsCoordinator) { |
// Tests against race conditions that might arise when disabling tracing in the |
// middle of a global memory dump. |
TEST_F(MemoryDumpManagerTest, DisableTracingWhileDumping) { |
- base::WaitableEvent tracing_disabled_event(false, false); |
+ base::WaitableEvent tracing_disabled_event( |
+ WaitableEvent::ResetPolicy::AUTOMATIC, |
+ WaitableEvent::InitialState::NOT_SIGNALED); |
InitializeMemoryDumpManager(false /* is_coordinator */); |
// Register a bound dump provider. |
@@ -945,7 +947,9 @@ TEST_F(MemoryDumpManagerTest, DisableTracingWhileDumping) { |
// Tests against race conditions that can happen if tracing is disabled before |
// the CreateProcessDump() call. Real-world regression: crbug.com/580295 . |
TEST_F(MemoryDumpManagerTest, DisableTracingRightBeforeStartOfDump) { |
- base::WaitableEvent tracing_disabled_event(false, false); |
+ base::WaitableEvent tracing_disabled_event( |
+ WaitableEvent::ResetPolicy::AUTOMATIC, |
+ WaitableEvent::InitialState::NOT_SIGNALED); |
InitializeMemoryDumpManager(false /* is_coordinator */); |
std::unique_ptr<Thread> mdp_thread(new Thread("test thread")); |