Renamed method
Test: make Bug: 111405682 Change-Id: If3e48c5ee5f90aefb2795ce31025fabec689e7ad
This commit is contained in:
@@ -71,7 +71,7 @@ public class WakeLockScreenGesturePreferenceControllerTest {
|
||||
|
||||
@Test
|
||||
public void getAvailabilityStatus_gestureNotSupported_UNSUPPORTED_ON_DEVICE() {
|
||||
when(mAmbientDisplayConfiguration.wakeLockScreenGestureAvailable()).thenReturn(false);
|
||||
when(mAmbientDisplayConfiguration.wakeScreenGestureAvailable()).thenReturn(false);
|
||||
final int availabilityStatus = mController.getAvailabilityStatus();
|
||||
|
||||
assertThat(availabilityStatus).isEqualTo(UNSUPPORTED_ON_DEVICE);
|
||||
@@ -79,7 +79,7 @@ public class WakeLockScreenGesturePreferenceControllerTest {
|
||||
|
||||
@Test
|
||||
public void getAvailabilityStatus_gestureSupported_AVAILABLE() {
|
||||
when(mAmbientDisplayConfiguration.wakeLockScreenGestureAvailable()).thenReturn(true);
|
||||
when(mAmbientDisplayConfiguration.wakeScreenGestureAvailable()).thenReturn(true);
|
||||
final int availabilityStatus = mController.getAvailabilityStatus();
|
||||
|
||||
assertThat(availabilityStatus).isEqualTo(AVAILABLE);
|
||||
|
Reference in New Issue
Block a user