class TestLoopBase
Defined at line 45 of file ../../src/power/testing/system-integration/util/test_util.h
Public Methods
zx::event GetCapturedToken (const std::string & element_name)
Get the duplicated DependencyToken captured by the intercepted Topology.AddElement call.
Defined at line 204 of file ../../src/power/testing/system-integration/util/test_util.cc
Protected Methods
void Initialize ()
Defined at line 217 of file ../../src/power/testing/system-integration/util/test_util.cc
test_sagcontrol::SystemActivityGovernorState GetBootCompleteState ()
Defined at line 255 of file ../../src/power/testing/system-integration/util/test_util.cc
bool SetBootComplete ()
Defined at line 274 of file ../../src/power/testing/system-integration/util/test_util.cc
zx_status_t AwaitSystemSuspend ()
Defined at line 262 of file ../../src/power/testing/system-integration/util/test_util.cc
zx_status_t StartSystemResume ()
Defined at line 285 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 302 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 331 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 405 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,std::vector<CustomDictionaryEntry>custom_entries)
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 439 of file ../../src/power/testing/system-integration/util/test_util.cc
fuchsia_component_sandbox::DictionaryRef CreateDictionaryForTest (std::vector<CustomDictionaryEntry> custom_entries)
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 542 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 617 of file ../../src/power/testing/system-integration/util/test_util.cc