// we need an executor for the fidl types
we need an executor for the fidl types
we need an executor for the fidl types
async fn validate_logsink_requested_event() {
        let target_moniker = "./foo:0";
        let target_url = "http://foo.com".to_string();
        let (_log_sink_proxy, log_sink_server_end) =
            fidl::endpoints::create_proxy::<LogSinkMarker>().unwrap();
        let raw_event = create_log_sink_requested_event(
            target_moniker.to_owned(),
            target_url.clone(),
            log_sink_server_end.into_channel(),
        );
        let event = match raw_event.try_into().unwrap() {
            ComponentEvent::LogSinkRequested(e) => e,
            other => panic!("incorrect event type received: {:?}", other),
        };
        assert_eq!(
            event.metadata.identity,
            ComponentIdentity::from_identifier_and_url(
                &ComponentIdentifier::parse_from_moniker(target_moniker).unwrap(),
                target_url
            )
        );
    }
async fn validate_logsink_requested_event ( ) { let target_moniker = " " ; let target_url = " " . to_string ( ) ; let ( _log_sink_proxy , log_sink_server_end ) = fidl :: endpoints :: create_proxy :: < LogSinkMarker > ( ) . unwrap ( ) ; let raw_event = create_log_sink_requested_event ( target_moniker . to_owned ( ) , target_url . clone ( ) , log_sink_server_end . into_channel ( ) , ) ; let event = match raw_event . try_into ( ) . unwrap ( ) { ComponentEvent :: LogSinkRequested ( e ) => e , other => panic ! ( " " other ) , } ; assert_eq ! ( event metadata identity ComponentIdentity from_identifier_and_url ( ComponentIdentifier parse_from_moniker ( target_moniker ) unwrap ( ) target_url ) ) ; }
we need an executor for the fidl types
we need an executor for the fidl types