Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a2375807 authored by Daniel Huang's avatar Daniel Huang Committed by Android (Google) Code Review
Browse files

Merge "Update KeyboardLayoutPickerControllerTest" into udc-dev

parents 524b15c6 cf4be05b
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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