Home
last modified time | relevance | path

Searched refs:mMainClearConfirm (Results 1 – 1 of 1) sorted by relevance

/packages/apps/Settings/tests/robotests/src/com/android/settings/
DMainClearConfirmTest.java70 private MainClearConfirm mMainClearConfirm; field in MainClearConfirmTest
76 mMainClearConfirm = spy(new MainClearConfirm()); in setUp()
112 assertThat(mMainClearConfirm.shouldWipePersistentDataBlock(null)).isFalse(); in shouldWipePersistentDataBlock_noPersistentDataBlockManager_shouldReturnFalse()
117 doReturn(true).when(mMainClearConfirm).isDeviceStillBeingProvisioned(); in shouldWipePersistentDataBlock_deviceIsStillBeingProvisioned_shouldReturnFalse()
119 assertThat(mMainClearConfirm.shouldWipePersistentDataBlock( in shouldWipePersistentDataBlock_deviceIsStillBeingProvisioned_shouldReturnFalse()
126 when(mMainClearConfirm.getActivity()).thenReturn(mMockActivity); in shouldWipePersistentDataBlock_oemUnlockAllowedAndFlagDiscabled_shouldReturnFalse()
129 doReturn(false).when(mMainClearConfirm).isDeviceStillBeingProvisioned(); in shouldWipePersistentDataBlock_oemUnlockAllowedAndFlagDiscabled_shouldReturnFalse()
130 doReturn(true).when(mMainClearConfirm).isOemUnlockedAllowed(); in shouldWipePersistentDataBlock_oemUnlockAllowedAndFlagDiscabled_shouldReturnFalse()
132 assertThat(mMainClearConfirm.shouldWipePersistentDataBlock(mPersistentDataBlockManager)) in shouldWipePersistentDataBlock_oemUnlockAllowedAndFlagDiscabled_shouldReturnFalse()
139 when(mMainClearConfirm.getActivity()).thenReturn(mMockActivity); in shouldWipePersistentDataBlock_oemUnlockAllowedAndFlagEnabled_shouldReturnTrue()
[all …]