mirror of
https://github.com/kidfromjupiter/nearby.git
synced 2026-09-16 15:36:12 -04:00
Added APIs to control device sleep
These APIs can be used to prevent device into sleep when sending supper big files. PiperOrigin-RevId: 556809236
This commit is contained in:
committed by
Copybara-Service
parent
06942caeb3
commit
fabeff0d57
@@ -77,6 +77,14 @@ TEST(DeviceInfo, DISABLED_IsScreenLocked) {
|
||||
EXPECT_FALSE(DeviceInfo().IsScreenLocked());
|
||||
}
|
||||
|
||||
TEST(DeviceInfo, DISABLED_PreventSleep) {
|
||||
EXPECT_TRUE(DeviceInfo().PreventSleep());
|
||||
}
|
||||
|
||||
TEST(DeviceInfo, DISABLED_AllowSleep) {
|
||||
EXPECT_TRUE(DeviceInfo().AllowSleep());
|
||||
}
|
||||
|
||||
} // namespace
|
||||
} // namespace windows
|
||||
} // namespace nearby
|
||||
|
||||
Reference in New Issue
Block a user