Merge "Fix test relying on implementation details." am: 8410e0ea92 am: 512e2acdfd

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2481489

Change-Id: Idc5c0d409c80749e90f15d64e7e43dfe069e8924
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Jeff Sharkey
2023-03-10 21:03:38 +00:00
committed by Automerger Merge Worker

View File

@@ -737,8 +737,8 @@ public class AlarmManagerServiceTest {
verify(alarmPi).send(eq(mMockContext), eq(0), any(Intent.class), verify(alarmPi).send(eq(mMockContext), eq(0), any(Intent.class),
onFinishedCaptor.capture(), any(Handler.class), isNull(), onFinishedCaptor.capture(), any(Handler.class), isNull(),
optionsCaptor.capture()); optionsCaptor.capture());
assertTrue(optionsCaptor.getValue() final BroadcastOptions options = new BroadcastOptions(optionsCaptor.getValue());
.getBoolean(BroadcastOptions.KEY_ALARM_BROADCAST, false)); assertTrue(options.isAlarmBroadcast());
} }
@Test @Test