Add checkbox to let user wipe eSIM data together with FDR
This CL add a check box for eSIM enabled devices to reset eSIM data during factory reset of the phone. Bug: 67500470 Test: make RunSettingsRoboTests Change-Id: I5a81d43f23ae55f8549a5b807fdf41f36c9d3acd
This commit is contained in:
@@ -66,7 +66,7 @@ public class ResetNetworkConfirmTest {
|
||||
public void testResetNetworkData_resetEsim() {
|
||||
mResetNetworkConfirm.mEraseEsim = true;
|
||||
doReturn(true)
|
||||
.when(mRecoverySystem).wipeEuiccData(any(Context.class), anyBoolean(), anyString());
|
||||
.when(mRecoverySystem).wipeEuiccData(any(Context.class), anyString());
|
||||
|
||||
mResetNetworkConfirm.esimFactoryReset(mActivity, "" /* packageName */);
|
||||
try {
|
||||
@@ -77,7 +77,7 @@ public class ResetNetworkConfirmTest {
|
||||
}
|
||||
|
||||
Assert.assertNotNull(mResetNetworkConfirm.mEraseEsimTask);
|
||||
verify(mRecoverySystem).wipeEuiccData(any(Context.class), anyBoolean(), anyString());
|
||||
verify(mRecoverySystem).wipeEuiccData(any(Context.class), anyString());
|
||||
}
|
||||
|
||||
@Test
|
||||
@@ -88,6 +88,6 @@ public class ResetNetworkConfirmTest {
|
||||
|
||||
Assert.assertNull(mResetNetworkConfirm.mEraseEsimTask);
|
||||
verify(mRecoverySystem, never())
|
||||
.wipeEuiccData(any(Context.class), anyBoolean(), anyString());
|
||||
.wipeEuiccData(any(Context.class), anyString());
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user