class TestLoopBase
Defined at line 38 of file ../../src/power/testing/system-integration/util/test_util.h
Protected Methods
void Initialize ()
Defined at line 41 of file ../../src/power/testing/system-integration/util/test_util.cc
test_sagcontrol::SystemActivityGovernorState GetBootCompleteState ()
Defined at line 79 of file ../../src/power/testing/system-integration/util/test_util.cc
bool SetBootComplete ()
Defined at line 98 of file ../../src/power/testing/system-integration/util/test_util.cc
zx_status_t AwaitSystemSuspend ()
Defined at line 86 of file ../../src/power/testing/system-integration/util/test_util.cc
zx_status_t StartSystemResume ()
Defined at line 109 of file ../../src/power/testing/system-integration/util/test_util.cc
zx_status_t ChangeSagState (test_sagcontrol::SystemActivityGovernorState state, zx::duration poll_delay)
Change the SAG state and wait for the transition to complete.
Defined at line 126 of file ../../src/power/testing/system-integration/util/test_util.cc
void MatchInspectData (diagnostics::reader::ArchiveReader &reader,const std::string &moniker,const std::optional<std::string> &inspect_tree_name,const std::vector<std::string> &inspect_path,std::variant<bool, uint64_t>value)
Wait for an inspect selector to match a specific value.
Defined at line 156 of file ../../src/power/testing/system-integration/util/test_util.cc
zx::result<std::string> GetPowerElementId (diagnostics::reader::ArchiveReader &reader,const std::string &pb_moniker,const std::string &power_element_name)
Defined at line 230 of file ../../src/power/testing/system-integration/util/test_util.cc
zx::eventpair PrepareDriver (std::string_viewnode_filter,std::string_viewdriver_url_suffix,boolexpect_new_koid,booluse_df_elements)
Prepare the target driver for power system testing. This is done by creating a dictionary
with the power protocols from the test-specific instances of the SAG and power broker,
and restarting the target driver and its children with access to this dictionary.
|expect_new_koid| whether to expect the restarted node to have a new driver host koid, this
should be true if the target driver is not colocated with its parent driver, otherwise it
should be false.
Returns a zx::eventpair that should be held onto for the duration of the test. When released
the target driver and children are restarted again and lose access to the test-specific
power protocols.
Defined at line 264 of file ../../src/power/testing/system-integration/util/test_util.cc
fuchsia_component_sandbox::DictionaryRef CreateDictionaryForTest ()
Create and export a component framework dictionary that contains connectors for the various
power framework protocols, that are connected to the test-specific SAG and power broker that
is accessible in the incoming namespace of the test component. See 'meta/client.shard.cml'.
Defined at line 364 of file ../../src/power/testing/system-integration/util/test_util.cc
std::vector<fuchsia_driver_development::NodeInfo> GetNodeInfo (std::string_view node_filter)
Query the driver framework for nodes that have a moniker matching the |node_filter|.
Defined at line 424 of file ../../src/power/testing/system-integration/util/test_util.cc