| // Copyright 2026 The Fuchsia Authors. All rights reserved. | |
| // Use of this source code is governed by a BSD-style license that can be | |
| // found in the LICENSE file. | |
| #include "src/developer/debug/debug_agent/linux_process_handle.h" | |
| #include <gtest/gtest.h> | |
| #include "src/developer/debug/debug_agent/linux_task.h" | |
| #include "src/developer/debug/shared/test_with_loop.h" | |
| namespace debug_agent { | |
| namespace { | |
| using LinuxProcessHandleTest = debug::TestWithLoop; | |
| TEST_F(LinuxProcessHandleTest, DisablesSuspendTimeThreadDiscovery) { | |
| LinuxProcessHandle process_handle(fxl::MakeRefCounted<LinuxTask>(1234)); | |
| EXPECT_FALSE(process_handle.SupportsSuspendTimeThreadDiscovery()); | |
| EXPECT_EQ(process_handle.Suspend(), nullptr); | |
| } | |
| } // namespace | |
| } // namespace debug_agent |