pub enum RealmFactoryRequest {
CreateRealm {
options: RealmOptions,
realm_server: ServerEnd<RealmProxy_Marker>,
responder: RealmFactoryCreateRealmResponder,
},
GetTriageDetectEvents {
responder: RealmFactoryGetTriageDetectEventsResponder,
},
_UnknownMethod {
ordinal: u64,
control_handle: RealmFactoryControlHandle,
method_type: MethodType,
},
}
Expand description
This protocol is used to write integration tests for the triage-detect component.
Each test case should create a new connection to this protocol, and call CreateRealm only after all other methods have been called to setup the test realm.
§The triage-detect component
The triage-detect component’s job is to file crash reports whenever inspect data reveals that some component in the system has produced an error.
§FIDL Interactions
At startup, the triage-detect component tells the CrashReportingProductRegister to file all crash reports sent by triage-detect under the “FuchsiaDetect” crash product.
Periodically, the triage-detect component will fetch inspect data and file
crash reports for all of the data it receives. Tests can control how reports
are filed by providing any number of *.triage configuration files using
AddConfigFile
.
Variants§
CreateRealm
Specifies the options to use when creating the realm.
Returns OperationError.INVALID if called more than once.
Fields
options: RealmOptions
realm_server: ServerEnd<RealmProxy_Marker>
responder: RealmFactoryCreateRealmResponder
GetTriageDetectEvents
Returns a client end to the Realm
protocol.
The test can use this client end to listen for events. It is a fatal error to call this more than once or before the test realm is started.
Fields
responder: RealmFactoryGetTriageDetectEventsResponder
_UnknownMethod
An interaction was received which does not match any known method.
Fields
This variant is marked as non-exhaustive
control_handle: RealmFactoryControlHandle
method_type: MethodType
Implementations§
Source§impl RealmFactoryRequest
impl RealmFactoryRequest
pub fn into_create_realm( self, ) -> Option<(RealmOptions, ServerEnd<RealmProxy_Marker>, RealmFactoryCreateRealmResponder)>
pub fn into_get_triage_detect_events( self, ) -> Option<RealmFactoryGetTriageDetectEventsResponder>
Sourcepub fn method_name(&self) -> &'static str
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL