class TestTarget

Defined at line 21 of file ../../src/sys/fuzzing/realmfuzzer/testing/target.h

This class encapsulates a fake target process. It simply launches and then waits to crash or

exit.

Public Methods

void TestTarget (ExecutorPtr executor)

Defined at line 20 of file ../../src/sys/fuzzing/realmfuzzer/testing/target.cc

void ~TestTarget ()

Defined at line 22 of file ../../src/sys/fuzzing/realmfuzzer/testing/target.cc

zx::process Launch ()

Spawns the process, and returns a copy of the spawned process handle.

Defined at line 24 of file ../../src/sys/fuzzing/realmfuzzer/testing/target.cc

uint64_t id ()

Defined at line 26 of file ../../src/sys/fuzzing/realmfuzzer/testing/target.h

ZxPromise<> Crash ()

Returns a promise that asks the spawned process to crash and completes when it terminates.

Defined at line 104 of file ../../src/sys/fuzzing/realmfuzzer/testing/target.cc

ZxPromise<> Exit (int32_t exitcode)

Returns a promise that asks the spawned process to exit with the given |exitcode| and completes

when it terminates.

Defined at line 116 of file ../../src/sys/fuzzing/realmfuzzer/testing/target.cc