Merge "Update KeyboardLayoutPickerControllerTest" into udc-dev am: a2375807ec
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/21809665 Change-Id: Ied198e591c3d003dc6a9f763f8268c3f457ef0d0 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -93,13 +93,13 @@ public class KeyboardLayoutPickerControllerTest {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testLifecycle_onStart_NoInputDevice_shouldFinish() {
|
||||
public void testLifecycle_onStart_NoInputDevice_shouldReturn() {
|
||||
final FragmentActivity activity = Robolectric.setupActivity(FragmentActivity.class);
|
||||
when(mInputManager.getInputDeviceByDescriptor(anyString())).thenReturn(null);
|
||||
when(mFragment.getActivity()).thenReturn(activity);
|
||||
|
||||
mController.onStart();
|
||||
assertThat(activity.isFinishing()).isTrue();
|
||||
verify(mInputManager, never()).getEnabledKeyboardLayoutsForInputDevice(any());
|
||||
}
|
||||
|
||||
@Test
|
||||
|
Reference in New Issue
Block a user