Fix FaceSetupSliceTest
am: acde97cf90
Change-Id: Ied72d5ae4b891ef1c5600b8d416b016d0aede23e
This commit is contained in:
@@ -108,10 +108,10 @@ public class FaceSetupSliceTest {
|
|||||||
when(faceManager.hasEnrolledTemplates(UserHandle.myUserId())).thenReturn(true);
|
when(faceManager.hasEnrolledTemplates(UserHandle.myUserId())).thenReturn(true);
|
||||||
when(mContext.getSystemService(Context.FACE_SERVICE)).thenReturn(faceManager);
|
when(mContext.getSystemService(Context.FACE_SERVICE)).thenReturn(faceManager);
|
||||||
Settings.Secure.putInt(mContext.getContentResolver(),
|
Settings.Secure.putInt(mContext.getContentResolver(),
|
||||||
Settings.Secure.FACE_UNLOCK_MUST_RE_ENROLL,
|
Settings.Secure.FACE_UNLOCK_RE_ENROLL,
|
||||||
1);
|
3);
|
||||||
final FaceSetupSlice setupSlice = new FaceSetupSlice(mContext);
|
final FaceSetupSlice setupSlice = new FaceSetupSlice(mContext);
|
||||||
|
|
||||||
assertThat(setupSlice.getSlice()).isNotNull();
|
assertThat(setupSlice.getSlice()).isNotNull();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user