class FakeMonitor

Defined at line 25 of file ../../src/sys/fuzzing/common/testing/monitor.h

This is an implementation of |fuchsia.fuzzer.Monitor| for testing. It handles both the controller

and user dispatch threads, and provides a way to await the next update.

Public Methods

void FakeMonitor (ExecutorPtr executor)

Defined at line 12 of file ../../src/sys/fuzzing/common/testing/monitor.cc

fidl::InterfaceHandle<Monitor> NewBinding ()

FIDL-related methods.

Defined at line 14 of file ../../src/sys/fuzzing/common/testing/monitor.cc

void Update (UpdateReason reason, Status status, UpdateCallback callback)

Defined at line 18 of file ../../src/sys/fuzzing/common/testing/monitor.cc

Promise<> AwaitUpdate ()

TODO(https://fxbug.dev/42174170): There needs to be a way to wait on an update until the |Controller| is

fully updated to use the same executor as the test when testing.

Defined at line 27 of file ../../src/sys/fuzzing/common/testing/monitor.cc

void ~FakeMonitor ()

Defined at line 28 of file ../../src/sys/fuzzing/common/testing/monitor.h

bool is_bound ()

Defined at line 30 of file ../../src/sys/fuzzing/common/testing/monitor.h

bool empty ()

Defined at line 31 of file ../../src/sys/fuzzing/common/testing/monitor.h

UpdateReason reason ()

Defined at line 32 of file ../../src/sys/fuzzing/common/testing/monitor.h

const Status & status ()

Defined at line 33 of file ../../src/sys/fuzzing/common/testing/monitor.h

Status take_status ()

Defined at line 34 of file ../../src/sys/fuzzing/common/testing/monitor.h

void pop_front ()

Defined at line 35 of file ../../src/sys/fuzzing/common/testing/monitor.h