class StubCrashServer

Defined at line 22 of file ../../src/developer/forensics/crash_reports/tests/stub_crash_server.h

Public Methods

void ~StubCrashServer ()

Defined at line 19 of file ../../src/developer/forensics/crash_reports/tests/stub_crash_server.cc

void StubCrashServer (async_dispatcher_t * dispatcher, std::shared_ptr<sys::ServiceDirectory> services, feedback::AnnotationManager * annotation_manager, std::vector<CrashServer::UploadStatus> request_return_values, timekeeper::Clock * clock, const zx::duration response_delay)

Defined at line 24 of file ../../src/developer/forensics/crash_reports/tests/stub_crash_server.h

void MakeRequest (const Report & report, const Snapshot & snapshot, ::fit::function<void (UploadStatus, std::string)> callback)

Defined at line 29 of file ../../src/developer/forensics/crash_reports/tests/stub_crash_server.cc

bool HasPendingRequest ()

Defined at line 27 of file ../../src/developer/forensics/crash_reports/tests/stub_crash_server.cc

bool ExpectRequest ()

Whether the crash server expects at least one more call to MakeRequest().

Defined at line 44 of file ../../src/developer/forensics/crash_reports/tests/stub_crash_server.h

const AnnotationMap & latest_annotations ()

Returns the annotations that were passed to the latest MakeRequest() call.

Defined at line 47 of file ../../src/developer/forensics/crash_reports/tests/stub_crash_server.h

const std::vector<std::string> & latest_attachment_keys ()

Returns the keys for the attachments that were passed to the latest MakeRequest() call.

Defined at line 50 of file ../../src/developer/forensics/crash_reports/tests/stub_crash_server.h