Merge "Update KeyboardLayoutPickerControllerTest" into udc-dev am: a2375807ec
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/21809665 Change-Id: Ibeb356895d1f22653afb70ee50b7e4819167e3ab 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