diff --git a/crates/host/prometeu-host-desktop-winit/src/debugger.rs b/crates/host/prometeu-host-desktop-winit/src/debugger.rs index 29ecf6cd..9bb1ea92 100644 --- a/crates/host/prometeu-host-desktop-winit/src/debugger.rs +++ b/crates/host/prometeu-host-desktop-winit/src/debugger.rs @@ -398,17 +398,13 @@ mod tests { let mut firmware = Firmware::new(None); let mut platform = TestPlatform::new(); - debugger.handle_command(DebugCommand::Pause, &mut firmware, platform.local_hardware_mut()); + debugger.handle_command(DebugCommand::Pause, &mut firmware, &mut platform); assert!(firmware.os.vm().paused()); - debugger.handle_command(DebugCommand::Resume, &mut firmware, platform.local_hardware_mut()); + debugger.handle_command(DebugCommand::Resume, &mut firmware, &mut platform); assert!(!firmware.os.vm().paused()); - debugger.handle_command( - DebugCommand::StepFrame, - &mut firmware, - platform.local_hardware_mut(), - ); + debugger.handle_command(DebugCommand::StepFrame, &mut firmware, &mut platform); assert!(!firmware.os.vm().paused()); assert!(firmware.os.vm().debug_step_requested()); } @@ -422,7 +418,7 @@ mod tests { debugger.waiting_for_start = true; firmware.os.vm().set_paused(true); - debugger.handle_command(DebugCommand::Start, &mut firmware, platform.local_hardware_mut()); + debugger.handle_command(DebugCommand::Start, &mut firmware, &mut platform); assert!(!debugger.waiting_for_start); assert!(!firmware.os.vm().paused());