Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 01077bbc authored by Ricky Wai's avatar Ricky Wai
Browse files

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
parent 508008be
Loading
Loading
Loading
Loading
+4 −8
Original line number Diff line number Diff line
@@ -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());
            }
        }
    }