pub enum CoverageDataProviderRequest {
SetOptions {
options: Options,
control_handle: CoverageDataProviderControlHandle,
},
WatchCoverageData {
responder: CoverageDataProviderWatchCoverageDataResponder,
},
}
Expand description
Provides the process Handles and VMOs used to share code coverage to the fuzzing engine.
This protocol is implemented by test_manager
’s fuzz_coverage
component. The fuzzing engine
acts as a client, although it does not connect directly. Instead the fuzz_test_runner
makes
the connection and passes it off to fuzzing engine on process start. It allows the engine to
retrieve the coverage-related Handles published by instrumented target processes.
The channel is closed on FIDL error. Clients should exit and not attempt to reconnect.
Variants§
SetOptions
Sets the options to be returned by fuchsia.fuzzer.CoverageDataCollector/Initialize
.
WatchCoverageData
Provides coverage data collected from multiple processes.
Returns a vector of CoverageData
structs containing the information provided by clients of
fuchsia.fuzzer.CoverageDataCollector
. This method uses the “hanging get” pattern: The
initial call will immediately return whatever data is available, up to MAX_COVERAGE_DATA
.
If no fuzzed components have been started yet, this be an empty vector. If there are more
than MAX_COVERAGE_DATA
elements available, the remainder are retained for subsequent
calls. If there is no more data available, subsequent calls will block until new coverage
data is available.
The channel is closed on FIDL error. Clients should exit and not attempt to reconnect.
Fields
Implementations§
Source§impl CoverageDataProviderRequest
impl CoverageDataProviderRequest
pub fn into_set_options( self, ) -> Option<(Options, CoverageDataProviderControlHandle)>
pub fn into_watch_coverage_data( self, ) -> Option<CoverageDataProviderWatchCoverageDataResponder>
Sourcepub fn method_name(&self) -> &'static str
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL