manager/user: Only enable HdmiCec1 if plasma-remotecontrollers.service exists

This commit is contained in:
Vicki Pfau 2024-08-14 20:55:24 -07:00
parent 7dc0d0969d
commit 1de2109c6d
2 changed files with 27 additions and 6 deletions

View file

@ -173,7 +173,7 @@ pub fn escape(name: &str) -> String {
}
#[cfg(test)]
mod test {
pub mod test {
use super::*;
use crate::error::to_zbus_fdo_error;
use crate::{enum_roundtrip, testing};
@ -201,14 +201,14 @@ mod test {
}
#[derive(Default)]
struct MockUnit {
active: String,
unit_file: String,
pub struct MockUnit {
pub active: String,
pub unit_file: String,
job: u32,
}
#[derive(Default)]
struct MockManager {
pub struct MockManager {
states: HashMap<String, EnableState>,
}