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:
Daniel Huang
2023-03-07 10:22:18 +00:00
committed by Automerger Merge Worker

View File

@@ -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