class FakeTargetAdapter
Defined at line 31 of file ../../src/sys/fuzzing/realmfuzzer/testing/adapter.h
This class implements |fuchsia.fuzzer.TargetAdapter| for unit testing, and gives tests fine-
grained control over the signals and test inputs exchanged with the runner.
Public Methods
void FakeTargetAdapter (ExecutorPtr executor)
Defined at line 12 of file ../../src/sys/fuzzing/realmfuzzer/testing/adapter.cc
fidl::InterfaceRequestHandler<TargetAdapter> GetHandler ()
Provides a request handler for the engine to connect to the target adapter.
Defined at line 15 of file ../../src/sys/fuzzing/realmfuzzer/testing/adapter.cc
void SetParameters (std::vector<std::string> parameters)
Records the command-line parameters.
Defined at line 22 of file ../../src/sys/fuzzing/realmfuzzer/testing/adapter.cc
void GetParameters (GetParametersCallback callback)
FIDL methods.
Defined at line 26 of file ../../src/sys/fuzzing/realmfuzzer/testing/adapter.cc
void Connect (zx::eventpair eventpair, zx::vmo test_input, ConnectCallback callback)
Defined at line 30 of file ../../src/sys/fuzzing/realmfuzzer/testing/adapter.cc
void ~FakeTargetAdapter ()
Defined at line 34 of file ../../src/sys/fuzzing/realmfuzzer/testing/adapter.h
ZxPromise<Input> TestOneInput ()
Returns a promise to |AwaitStart| and then |Finish|.
Defined at line 40 of file ../../src/sys/fuzzing/realmfuzzer/testing/adapter.cc
ZxPromise<Input> AwaitStart ()
Returns a promise that waits for a start signal and returns the provided test input.
Defined at line 52 of file ../../src/sys/fuzzing/realmfuzzer/testing/adapter.cc
zx_status_t Finish ()
Sends a signal to the engine that indicates the target adapter is finished with a run.
Defined at line 72 of file ../../src/sys/fuzzing/realmfuzzer/testing/adapter.cc
ZxPromise<> AwaitDisconnect ()
Returns a promise that waits for the client to disconnect.
Defined at line 74 of file ../../src/sys/fuzzing/realmfuzzer/testing/adapter.cc