use medea_client_api_proto::stats::RtcStat;
#[derive(Clone, Debug)]
pub struct RtcStats(pub Vec<RtcStat>);
#[cfg(feature = "mockable")]
pub mod mock {
use crate::api::DartValueArg;
#[no_mangle]
pub unsafe extern "C" fn test_rtc_stats_parse(
expects: DartValueArg<String>,
) -> u64 {
use medea_client_api_proto::stats::RtcStat;
let expects: String = expects.try_into().unwrap();
let stats: Vec<RtcStat> = serde_json::from_str(&expects).unwrap();
assert!(!stats.is_empty(), "parsed `Vec` of `RtcStats` is empty");
stats.len() as u64
}
}