diff options
| author | 2022-03-24 09:20:43 +0000 | |
|---|---|---|
| committer | 2022-03-24 09:20:43 +0000 | |
| commit | 2e15df0bc8b1b0f4d13f9d29fdb1ac8eb2dedc74 (patch) | |
| tree | 3ee14c70bc291cbe9dc99fe696e21b974877fb48 | |
| parent | fabbe842e3fa1f97e54dafa3c773cb09d8b8ef0f (diff) | |
| parent | a6477eec2b56aef60313ac8ea6755ff20656cb16 (diff) | |
Merge "Follow up syntax improvement after mege" into tm-dev
| -rw-r--r-- | packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/SystemUIDialogTest.java | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/SystemUIDialogTest.java b/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/SystemUIDialogTest.java index 7c05c69ff3b5..6c83e9f88d63 100644 --- a/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/SystemUIDialogTest.java +++ b/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/SystemUIDialogTest.java @@ -57,33 +57,33 @@ public class SystemUIDialogTest extends SysuiTestCase { @Test public void testRegisterReceiver() { - final SystemUIDialog mDialog = new SystemUIDialog(mContext); + final SystemUIDialog dialog = new SystemUIDialog(mContext); final ArgumentCaptor<BroadcastReceiver> broadcastReceiverCaptor = ArgumentCaptor.forClass(BroadcastReceiver.class); final ArgumentCaptor<IntentFilter> intentFilterCaptor = ArgumentCaptor.forClass(IntentFilter.class); - mDialog.show(); + dialog.show(); verify(mBroadcastDispatcher).registerReceiver(broadcastReceiverCaptor.capture(), intentFilterCaptor.capture(), eq(null), any()); assertTrue(intentFilterCaptor.getValue().hasAction(Intent.ACTION_SCREEN_OFF)); assertTrue(intentFilterCaptor.getValue().hasAction(Intent.ACTION_CLOSE_SYSTEM_DIALOGS)); - mDialog.dismiss(); + dialog.dismiss(); verify(mBroadcastDispatcher).unregisterReceiver(eq(broadcastReceiverCaptor.getValue())); } @Test public void testNoRegisterReceiver() { - final SystemUIDialog mDialog = new SystemUIDialog(mContext, false); + final SystemUIDialog dialog = new SystemUIDialog(mContext, false); - mDialog.show(); + dialog.show(); verify(mBroadcastDispatcher, never()).registerReceiver(any(), any(), eq(null), any()); - assertTrue(mDialog.isShowing()); + assertTrue(dialog.isShowing()); - mDialog.dismiss(); + dialog.dismiss(); verify(mBroadcastDispatcher, never()).unregisterReceiver(any()); - assertFalse(mDialog.isShowing()); + assertFalse(dialog.isShowing()); } } |