Merge "Update KeyboardLayoutPickerControllerTest" into udc-dev

This commit is contained in:
Daniel Huang
2023-03-07 10:08:10 +00:00
committed by Android (Google) Code Review

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