/// The component mock that provides the services used by bt-init and its children.
The component mock that provides the services used by bt-init and its children.
The component mock that provides the services used by bt - init and its children .
async fn mock_provider(
    sender: mpsc::Sender<Event>,
    handles: LocalComponentHandles,
) -> Result<(), Error> {
    let mut fs = ServiceFs::new();
    provide_bt_gap_uses(&mut fs, &sender, &handles)?;
    add_fidl_service_handler::<SnoopMarker, _>(&mut fs, sender.clone());
    let _ = fs.serve_connection(handles.outgoing_dir.into_channel())?;
    fs.collect::<()>().await;
    Ok(())
}
async fn mock_provider ( sender : mpsc :: Sender < Event > , handles : LocalComponentHandles , ) -> Result < ( ) , Error > { let mut fs = ServiceFs :: new ( ) ; provide_bt_gap_uses ( & mut fs , & sender , & handles ) ? ; add_fidl_service_handler :: < SnoopMarker , _ > ( & mut fs , sender . clone ( ) ) ; let _ = fs . serve_connection ( handles . outgoing_dir . into_channel ( ) ) ? ; fs . collect :: < ( ) > ( ) . await ; Ok ( ( ) ) }
The component mock that provides the services used by bt-init and its children.
The component mock that provides the services used by bt - init and its children .
sender
mpsc::Sender<Event>
handles
LocalComponentHandles