class TestLoopBase
Defined at line 37 of file ../../src/power/testing/system-integration/util/test_util.h
Protected Methods
void Initialize ()
Defined at line 40 of file ../../src/power/testing/system-integration/util/test_util.cc
test_sagcontrol::SystemActivityGovernorState GetBootCompleteState ()
Defined at line 72 of file ../../src/power/testing/system-integration/util/test_util.cc
bool SetBootComplete ()
Defined at line 91 of file ../../src/power/testing/system-integration/util/test_util.cc
zx_status_t AwaitSystemSuspend ()
Defined at line 79 of file ../../src/power/testing/system-integration/util/test_util.cc
zx_status_t StartSystemResume ()
Defined at line 102 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 119 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 149 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 223 of file ../../src/power/testing/system-integration/util/test_util.cc
zx::eventpair PrepareDriver (std::string_view node_filter, std::string_view driver_url_suffix, bool expect_new_koid)
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 257 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 326 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 386 of file ../../src/power/testing/system-integration/util/test_util.cc