class MockProcess
Defined at line 18 of file ../../src/developer/debug/debug_agent/mock_process.h
Meant to be used by tests for having light-weight processes that don't talk
to zircon in order to spin up threads.
Public Methods
void MockProcess (DebugAgent * debug_agent, zx_koid_t koid, std::string name)
|debug_agent| is optional and can be null. Be sure that your test doesn't use those resouces
though.
Defined at line 13 of file ../../src/developer/debug/debug_agent/mock_process.cc
void MockProcess (DebugAgent * debug_agent, DebuggedProcessCreateInfo info)
The contained process handle must be a |MockProcessHandle|.
Defined at line 19 of file ../../src/developer/debug/debug_agent/mock_process.cc
void ~MockProcess ()
Defined at line 24 of file ../../src/developer/debug/debug_agent/mock_process.cc
MockThread * AddThread (zx_koid_t koid)
Defined at line 26 of file ../../src/developer/debug/debug_agent/mock_process.cc
MockProcessHandle & mock_process_handle ()
Defined at line 29 of file ../../src/developer/debug/debug_agent/mock_process.h
void InjectException (std::unique_ptr<ExceptionHandle> exception)
Injects an exception via the ProcessHandleObserver interface.
Defined at line 33 of file ../../src/developer/debug/debug_agent/mock_process.cc