use super::{run_gui_launcher, session_preview_active};
use crate::launcher::state::{CapturePowerStatus, LauncherState};

#[test]
fn coverage_stub_returns_ok() {
    assert!(run_gui_launcher("http://127.0.0.1:50051".to_string()).is_ok());
}

#[test]
fn session_preview_stays_idle_when_capture_is_forced_off() {
    let mut state = LauncherState::new();
    state.start_remote();
    state.set_capture_power(CapturePowerStatus {
        available: true,
        enabled: false,
        unit: "relay.service".to_string(),
        detail: "inactive/dead".to_string(),
        active_leases: 1,
        mode: "forced-off".to_string(),
        detected_devices: 0,
    });

    assert!(!session_preview_active(&state, true));
}
