class TestProcess
Defined at line 37 of file ../../src/lib/zxdump/dump-tests.h
A simple test program starts up and waits.
Public Members
static basic_string_view kDsoSoname
Public Methods
zx::unowned_process borrow ()
Defined at line 41 of file ../../src/lib/zxdump/dump-tests.h
LiveHandle handle ()
Defined at line 43 of file ../../src/lib/zxdump/dump-tests.h
void ~TestProcess ()
Defined at line 49 of file ../../src/lib/zxdump/dump-tests.h
TestProcess & SpawnAction (const fdio_spawn_action_t & action)
Defined at line 58 of file ../../src/lib/zxdump/dump-tests.h
void StartChild (std::vector<const char *> args)
Defined at line 63 of file ../../src/lib/zxdump/dump-tests.h
zx::vmar CreateProcess (std::string_view name)
Defined at line 75 of file ../../src/lib/zxdump/dump-tests.h
const zx::process & process ()
Defined at line 83 of file ../../src/lib/zxdump/dump-tests.h
void AddToTaskHolder (TaskHolder & holder, Process *& holder_process)
Defined at line 85 of file ../../src/lib/zxdump/dump-tests.h
zx_koid_t koid ()
Defined at line 95 of file ../../src/lib/zxdump/dump-tests.h
void set_job (zx::job && job, bool kill_job)
Explicitly choose the job to use.
Defined at line 98 of file ../../src/lib/zxdump/dump-tests.h
void set_job (const zx::job & job)
Defined at line 102 of file ../../src/lib/zxdump/dump-tests.h
const zx::job & job ()
This returns the job StartChild will launch the test process in.
If set_job hasn't been called, it just uses the default job.
Defined at line 106 of file ../../src/lib/zxdump/dump-tests.h
zx_koid_t job_koid ()
Defined at line 113 of file ../../src/lib/zxdump/dump-tests.h
void HermeticJob (const zx::job & parent)
Create a new empty job and set_job() to that.
Defined at line 116 of file ../../src/lib/zxdump/dump-tests.h
fit::result<zxdump::Error, zxdump::SegmentDisposition> PruneAllMemory (zxdump::SegmentDisposition segment, const zx_info_maps_t & maps, const zx_info_vmo_t & vmo)
This is a standard SegmentCallback that can be used.
Defined at line 123 of file ../../src/lib/zxdump/dump-tests.h
fit::result<zxdump::Error, zxdump::SegmentDisposition> DumpAllMemory (zxdump::SegmentDisposition segment, const zx_info_maps_t & maps, const zx_info_vmo_t & vmo)
Defined at line 129 of file ../../src/lib/zxdump/dump-tests.h