class MockJobHandle
Defined at line 20 of file ../../src/developer/debug/debug_agent/mock_job_handle.h
Public Methods
void MockJobHandle (zx_koid_t koid, std::string name)
Defined at line 12 of file ../../src/developer/debug/debug_agent/mock_job_handle.cc
void set_child_jobs (std::vector<MockJobHandle> jobs)
Sets the child jobs and processes. These will be copied since we need to return a new
unique_ptr for each call to GetChildJobs() / GetChildProcesses().
Defined at line 26 of file ../../src/developer/debug/debug_agent/mock_job_handle.h
void set_child_processes (std::vector<MockProcessHandle> processes)
Defined at line 27 of file ../../src/developer/debug/debug_agent/mock_job_handle.h
void OnException (std::unique_ptr<MockExceptionHandle> exception, MockJobExceptionInfo info)
Simulate a job exception, typically zircon would provide an exception_info struct that lets us
determine which JobExceptionObserver method to call, for the purposes of this mock, the caller
decides. Since in Zircon, it isn't possible to receive e.g. process starting notifications
without being subscribed to the "Debugger" exception channel, and similarly, to receive an
exception without being subscribed to the "normal" exception channel, this function will assert
if an invalid info is passed to this method with an observer that previously registered with
the incorrect job exception channel.
Defined at line 49 of file ../../src/developer/debug/debug_agent/mock_job_handle.cc
std::unique_ptr<JobHandle> Duplicate ()
JobHandle implementation.
Defined at line 15 of file ../../src/developer/debug/debug_agent/mock_job_handle.cc
std::vector<std::unique_ptr<JobHandle>> GetChildJobs ()
Defined at line 19 of file ../../src/developer/debug/debug_agent/mock_job_handle.cc
std::vector<std::unique_ptr<ProcessHandle>> GetChildProcesses ()
Defined at line 27 of file ../../src/developer/debug/debug_agent/mock_job_handle.cc
MockJobHandle * FindChildJob (zx_koid_t job_koid)
Returns a mutable pointer to the job with the given |job_koid|.
Defined at line 35 of file ../../src/developer/debug/debug_agent/mock_job_handle.cc
zx_koid_t GetKoid ()
Defined at line 44 of file ../../src/developer/debug/debug_agent/mock_job_handle.h
std::string GetName ()
Defined at line 45 of file ../../src/developer/debug/debug_agent/mock_job_handle.h
debug::Status WatchJobExceptions (JobExceptionObserver * observer, JobExceptionChannelType type)
Defined at line 48 of file ../../src/developer/debug/debug_agent/mock_job_handle.h
void AddChildJob (MockJobHandle job)
Defined at line 55 of file ../../src/developer/debug/debug_agent/mock_job_handle.h
void AddChildProcess (MockProcessHandle process)
Defined at line 57 of file ../../src/developer/debug/debug_agent/mock_job_handle.h