Merge "Verify network state of apps hosting fg-service and in idle state." am: 468293beef am: 7cb66673cc am: 7be6f4f41f
Original change: https://android-review.googlesource.com/c/platform/cts/+/1455860 Change-Id: Idc70c253bbf752622e8bf3e5c6ea81f3371005a9
This commit is contained in:
@@ -78,6 +78,17 @@ abstract class AbstractAppIdleTestCase extends AbstractRestrictBackgroundNetwork
|
||||
stopForegroundService();
|
||||
assertAppIdle(true);
|
||||
assertBackgroundNetworkAccess(false);
|
||||
|
||||
// Set Idle after foreground service start.
|
||||
launchComponentAndAssertNetworkAccess(TYPE_COMPONENT_FOREGROUND_SERVICE);
|
||||
setAppIdle(true);
|
||||
addPowerSaveModeWhitelist(TEST_PKG);
|
||||
removePowerSaveModeWhitelist(TEST_PKG);
|
||||
assertForegroundServiceNetworkAccess();
|
||||
stopForegroundService();
|
||||
assertAppIdle(true);
|
||||
assertBackgroundNetworkAccess(false);
|
||||
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
Reference in New Issue
Block a user