Check BAL flags on AlarmManagerTest for BAL broadcast test
As now BroadcastOptions has the BAL also, so we need to update the test. Test is broken due to ag/15878929, we implement BroadcastOptions changes in AlarmManagerService but didn't fix the test. Bug: 201401122 Test: atest AlarmManagerServiceTest Change-Id: Iefaee3c52592c58cdc9675fd053c9779e61646a0
This commit is contained in:
@@ -2898,14 +2898,10 @@ public class AlarmManagerServiceTest {
|
||||
if (idleOptions != null) {
|
||||
assertEquals(idleOptions, bundleCaptor.getValue());
|
||||
} else {
|
||||
if (isActivity) {
|
||||
assertFalse("BAL flag needs to be false in alarm manager",
|
||||
bundleCaptor.getValue().getBoolean(
|
||||
ActivityOptions.KEY_PENDING_INTENT_BACKGROUND_ACTIVITY_ALLOWED,
|
||||
true));
|
||||
} else {
|
||||
assertNull(bundleCaptor.getValue());
|
||||
}
|
||||
assertFalse("BAL flag needs to be false in alarm manager",
|
||||
bundleCaptor.getValue().getBoolean(
|
||||
ActivityOptions.KEY_PENDING_INTENT_BACKGROUND_ACTIVITY_ALLOWED,
|
||||
true));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user