Biometrics Enrollment refactor (7/N)
This cl moves the creation of repos and interactors to the SettingsApplication. Bug: 297082837 Test: atest Change-Id: I9049da6f03bb1dc18d4186961444bf613d773d0e
This commit is contained in:
committed by
Joshua Mccloskey
parent
b2f88a16c9
commit
584b6c9e96
@@ -67,7 +67,6 @@ class FingerprintEnrollIntroFragmentTest {
|
||||
|
||||
private val gatekeeperViewModel =
|
||||
FingerprintGatekeeperViewModel(
|
||||
GatekeeperInfo.GatekeeperPasswordInfo(byteArrayOf(1, 2, 3), 100L),
|
||||
interactor
|
||||
)
|
||||
private val backgroundDispatcher = StandardTestDispatcher()
|
||||
@@ -86,13 +85,10 @@ class FingerprintEnrollIntroFragmentTest {
|
||||
.toFingerprintSensor()
|
||||
|
||||
var enrollFlow = Default
|
||||
val flowViewModel = FingerprintFlowViewModel(enrollFlow)
|
||||
val flowViewModel = FingerprintFlowViewModel()
|
||||
|
||||
private val navigationViewModel =
|
||||
FingerprintNavigationViewModel(
|
||||
Introduction(),
|
||||
false,
|
||||
flowViewModel,
|
||||
interactor
|
||||
)
|
||||
|
||||
@@ -124,6 +120,11 @@ class FingerprintEnrollIntroFragmentTest {
|
||||
}
|
||||
}
|
||||
|
||||
gatekeeperViewModel.onConfirmDevice(true, 100L, false)
|
||||
flowViewModel.updateFlowType(enrollFlow)
|
||||
navigationViewModel.hasConfirmedDeviceCredential(true)
|
||||
navigationViewModel.updateFingerprintFlow(enrollFlow)
|
||||
|
||||
fragmentScenario =
|
||||
launchFragmentInContainer(Bundle(), R.style.SudThemeGlif) {
|
||||
FingerprintEnrollIntroV2Fragment(factory)
|
||||
|
||||
Reference in New Issue
Block a user