class EngineIntegrationTest
Defined at line 31 of file ../../src/sys/fuzzing/common/tests/integration-tests.h
The |EngineIntegrationTest| fakes the registrar but uses a real fuzzing engine.
Protected Methods
void SetUp ()
Test fixtures.
Defined at line 17 of file ../../src/sys/fuzzing/common/tests/integration-tests.cc
void AddArg (std::string_view arg)
Adds an argument to the command line used to spawn the engine process.
Defined at line 24 of file ../../src/sys/fuzzing/common/tests/integration-tests.cc
ZxPromise<> StartEngine ()
Returns a promise to create a fake registry component and spawn the engine.
Defined at line 26 of file ../../src/sys/fuzzing/common/tests/integration-tests.cc
ComponentContext * context ()
Defined at line 35 of file ../../src/sys/fuzzing/common/tests/integration-tests.h
OptionsPtr options ()
Defined at line 36 of file ../../src/sys/fuzzing/common/tests/integration-tests.h
ControllerPtr & controller ()
Defined at line 37 of file ../../src/sys/fuzzing/common/tests/integration-tests.h
ZxPromise<> Connect ()
Returns a promise to connect to the `fuchsia.fuzzer.Controller`.
Defined at line 47 of file ../../src/sys/fuzzing/common/tests/integration-tests.cc
ZxPromise<> GetArtifactAndStatus (Artifact * out_artifact, Status * out_status)
Returns a promise to use the provided `controller` to wait for the engine to produce a
non-empty artifact. Returns the artifact and current status when the promise completes via
`out_artifact` and `out_status`, respectively.
Defined at line 84 of file ../../src/sys/fuzzing/common/tests/integration-tests.cc
ZxPromise<int64_t> WaitForEngine ()
Returns a promise to wait for the engine process to exit and returns its exit code.
Defined at line 104 of file ../../src/sys/fuzzing/common/tests/integration-tests.cc
void TearDown ()
Defined at line 106 of file ../../src/sys/fuzzing/common/tests/integration-tests.cc
void RunBounded ()
Integration tests.
Defined at line 114 of file ../../src/sys/fuzzing/common/tests/integration-tests.cc
void TryCrashingInput ()
Defined at line 140 of file ../../src/sys/fuzzing/common/tests/integration-tests.cc
void RunAsTest ()
Defined at line 159 of file ../../src/sys/fuzzing/common/tests/integration-tests.cc