class PowerTest
Defined at line 15 of file ../../src/devices/block/drivers/ufs/test/power-test.cc
Public Methods
void SetUp ()
Defined at line 17 of file ../../src/devices/block/drivers/ufs/test/power-test.cc
std::shared_ptr<libsync::Completion> SetPowerLevelAsync (fuchsia_power_broker::PowerLevel level)
Issues ElementRunner::SetLevel(|level|) from the fake Power Broker and waits for the reply.
Issues SetLevel(level) without waiting for the reply; the returned completion is signaled when
the driver answers it.
Defined at line 22 of file ../../src/devices/block/drivers/ufs/test/power-test.cc
void SetPowerLevelSync (fuchsia_power_broker::PowerLevel level)
Defined at line 34 of file ../../src/devices/block/drivers/ufs/test/power-test.cc
void VerifyInitialOffIgnoredAndSuspend ()
Power Broker sends SetLevel(off) as soon as the framework-provided element exists (no lease is
held yet); fdf_power::Suspendable acknowledges it without calling Ufs::Suspend() until it has
seen the first "on". Verify that the hardware stayed active, then perform the first real
suspend.
Defined at line 43 of file ../../src/devices/block/drivers/ufs/test/power-test.cc