pub async fn launch_component_and_expect_output_with_extra_dirs(
    root_component_url: &str,
    dir_handles: Vec<(String, zx::Handle)>,
    expected_output: String,
) -> Result<(), Error> {
    // TODO(fsamuel): Once we have LogEvents, we can remove this utiltiy function.
    let (file, pipe_handle) = make_pipe();
    let test = BlackBoxTest::custom(
        COMPONENT_MANAGER_URL,
        root_component_url,
        dir_handles,
        Some(pipe_handle),
    )
    .await?;

    let event_source = &test.connect_to_event_source().await?;
    event_source.start_component_tree().await?;
    read_from_pipe(file, expected_output)
}
/// Starts component manager, attaches the provided directory handles, launches the provided
/// v2 component and expects the provided output.
/// The output may have already arrived or is expected to arrive within a constant amount
/// of time (defined by WAIT_TIMEOUT_SEC) after invoking this function.
Starts component manager, attaches the provided directory handles, launches the provided
v2 component and expects the provided output.
The output may have already arrived or is expected to arrive within a constant amount
of time (defined by WAIT_TIMEOUT_SEC) after invoking this function.
Starts component manager attaches the provided directory handles launches the provided v2 component and expects the provided output . The output may have already arrived or is expected to arrive within a constant amount of time ( defined by WAIT_TIMEOUT_SEC ) after invoking this function .
pub async fn launch_component_and_expect_output_with_extra_dirs(
    root_component_url: &str,
    dir_handles: Vec<(String, zx::Handle)>,
    expected_output: String,
) -> Result<(), Error> {
    // TODO(fsamuel): Once we have LogEvents, we can remove this utiltiy function.
    let (file, pipe_handle) = make_pipe();
    let test = BlackBoxTest::custom(
        COMPONENT_MANAGER_URL,
        root_component_url,
        dir_handles,
        Some(pipe_handle),
    )
    .await?;
    let event_source = &test.connect_to_event_source().await?;
    event_source.start_component_tree().await?;
    read_from_pipe(file, expected_output)
}
pub async fn launch_component_and_expect_output_with_extra_dirs ( root_component_url : & str , dir_handles : Vec < ( String , zx :: Handle ) > , expected_output : String , ) -> Result < ( ) , Error > { // TODO(fsamuel): Once we have LogEvents, we can remove this utiltiy function. let ( file , pipe_handle ) = make_pipe ( ) ; let test = BlackBoxTest :: custom ( COMPONENT_MANAGER_URL , root_component_url , dir_handles , Some ( pipe_handle ) , ) . await ? ; let event_source = & test . connect_to_event_source ( ) . await ? ; event_source . start_component_tree ( ) . await ? ; read_from_pipe ( file , expected_output ) }
Starts component manager, attaches the provided directory handles, launches the provided
v2 component and expects the provided output.
Starts component manager attaches the provided directory handles launches the provided v2 component and expects the provided output .
root_component_url
&str
dir_handles
Vec<(String, zx::Handle)>
expected_output
String
root_component_url
&str
dir_handles
Vec<(String, zx::Handle)>
expected_output
String