class MockComponentManager
Defined at line 24 of file ../../src/developer/debug/debug_agent/mock_component_manager.h
Public Methods
std::vector<debug_ipc::ComponentInfo> FindComponentInfo (zx_koid_t job_koid)
Defined at line 12 of file ../../src/developer/debug/debug_agent/mock_component_manager.cc
void MockComponentManager (MockSystemInterface * system_interface)
Defined at line 26 of file ../../src/developer/debug/debug_agent/mock_component_manager.h
void ~MockComponentManager ()
Defined at line 29 of file ../../src/developer/debug/debug_agent/mock_component_manager.h
std::multimap<zx_koid_t, debug_ipc::ComponentInfo> & component_info ()
Defined at line 31 of file ../../src/developer/debug/debug_agent/mock_component_manager.h
void SetDebugAgent (DebugAgent * agent)
ComponentManager implementation.
Defined at line 34 of file ../../src/developer/debug/debug_agent/mock_component_manager.h
const std::map<std::string, debug_ipc::ComponentInfo> & GetNonElfComponentInfo ()
Defined at line 37 of file ../../src/developer/debug/debug_agent/mock_component_manager.h
void AddComponentInfo (zx_koid_t job_koid, debug_ipc::ComponentInfo info)
Updates |component_info_| and |moniker_to_job_| with the given information.
Defined at line 47 of file ../../src/developer/debug/debug_agent/mock_component_manager.cc
void AddNonElfComponentInfo (debug_ipc::ComponentInfo info)
Updates |non_elf_component_info_| with the given information.
Defined at line 52 of file ../../src/developer/debug/debug_agent/mock_component_manager.cc
debug::Status LaunchComponent (std::string url)
Defined at line 53 of file ../../src/developer/debug/debug_agent/mock_component_manager.h
debug::Status LaunchTest (std::stringurl,std::optional<std::string>realm,std::vector<std::string>case_filters)
Defined at line 55 of file ../../src/developer/debug/debug_agent/mock_component_manager.h
void InjectComponentEvent (FakeEventTypetype,const std::string &moniker,const std::string &url,zx_koid_tkoid)
Simulates the given event type coming from ComponentManager in a real system. |koid| is only
used if the type is |kDebugStarted|, in which case it will be used to populate the known
component information and add the koid as a child of the root job in MockSystemInterface.
Defined at line 59 of file ../../src/developer/debug/debug_agent/mock_component_manager.cc
bool OnProcessStart (const ProcessHandle &process,StdioHandles *out_stdio,std::string *process_name_override)
Defined at line 60 of file ../../src/developer/debug/debug_agent/mock_component_manager.h