pub async fn custom(
        component_manager_url: &str,
        root_component_url: &str,
        dir_handles: Vec<(String, zx::Handle)>,
        output_file_descriptor: Option<FileDescriptor>,
    ) -> Result<Self, Error> {
        // Use a random integer to identify this component manager
        let random_num = random::<u32>();
        let label = format!("test_{}", random_num);

        let (env, launcher) = create_isolated_environment(&label).await?;
        let component_manager_app = launch_component_manager(
            launcher,
            component_manager_url,
            root_component_url,
            dir_handles,
            output_file_descriptor,
        )
        .await?;

        let test = Self {
            env,
            component_manager_app,
            component_manager_url: component_manager_url.to_string(),
            root_component_url: root_component_url.to_string(),
            label,
        };
        Ok(test)
    }
/// Creates a black box test from the given component manager and
/// root component URL. The supplied directory handles are given to the
/// started component manager. If an output file descriptor is supplied it
/// is attached to the component manager's output.
///
/// At the end of this function call, a component manager has been created
/// in a hermetic environment and its execution is halted.
Creates a black box test from the given component manager and
root component URL. The supplied directory handles are given to the
started component manager. If an output file descriptor is supplied it
is attached to the component manager's output.

At the end of this function call, a component manager has been created
in a hermetic environment and its execution is halted.
Creates a black box test from the given component manager and root component URL . The supplied directory handles are given to the started component manager . If an output file descriptor is supplied it is attached to the component manager ' s output . At the end of this function call a component manager has been created in a hermetic environment and its execution is halted .
pub async fn custom(
        component_manager_url: &str,
        root_component_url: &str,
        dir_handles: Vec<(String, zx::Handle)>,
        output_file_descriptor: Option<FileDescriptor>,
    ) -> Result<Self, Error> {
        // Use a random integer to identify this component manager
        let random_num = random::<u32>();
        let label = format!("test_{}", random_num);
        let (env, launcher) = create_isolated_environment(&label).await?;
        let component_manager_app = launch_component_manager(
            launcher,
            component_manager_url,
            root_component_url,
            dir_handles,
            output_file_descriptor,
        )
        .await?;
        let test = Self {
            env,
            component_manager_app,
            component_manager_url: component_manager_url.to_string(),
            root_component_url: root_component_url.to_string(),
            label,
        };
        Ok(test)
    }
pub async fn custom ( component_manager_url : & str , root_component_url : & str , dir_handles : Vec < ( String , zx :: Handle ) > , output_file_descriptor : Option < FileDescriptor > , ) -> Result < Self , Error > { // Use a random integer to identify this component manager let random_num = random :: < u32 > ( ) ; let label = format ! ( " " random_num ) ; let ( env , launcher ) = create_isolated_environment ( & label ) . await ? ; let component_manager_app = launch_component_manager ( launcher , component_manager_url , root_component_url , dir_handles , output_file_descriptor , ) . await ? ; let test = Self { env , component_manager_app , component_manager_url : component_manager_url . to_string ( ) , root_component_url : root_component_url . to_string ( ) , label , } ; Ok ( test ) }
Creates a black box test from the given component manager and
root component URL.
Creates a black box test from the given component manager and root component URL .
component_manager_url
&str
root_component_url
&str
dir_handles
Vec<(String, zx::Handle)>
output_file_descriptor
Option<FileDescriptor>
component_manager_url
&str
root_component_url
&str
dir_handles
Vec<(String, zx::Handle)>
output_file_descriptor
Option<FileDescriptor>