Merge "Display IMEI info when sim is removed"
This commit is contained in:
committed by
Android (Google) Code Review
commit
cad68b3cfa
@@ -111,6 +111,17 @@ public class ImeiInfoDialogControllerTest {
|
||||
verify(mDialog).removeViewFromScreen(ID_GSM_SETTINGS);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void populateImeiInfo_cdmaSimDisabled_shouldRemoveImeiInfoAndSetMinToEmpty() {
|
||||
ReflectionHelpers.setField(mController, "mSubscriptionInfo", null);
|
||||
when(mTelephonyManager.getPhoneType()).thenReturn(TelephonyManager.PHONE_TYPE_CDMA);
|
||||
|
||||
mController.populateImeiInfo();
|
||||
|
||||
verify(mDialog).setText(ID_MIN_NUMBER_VALUE, "");
|
||||
verify(mDialog).removeViewFromScreen(ID_GSM_SETTINGS);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void populateImeinfo_gsm_shouldSetImeiAndRemoveCdmaSettings() {
|
||||
when(mTelephonyManager.getPhoneType()).thenReturn(TelephonyManager.PHONE_TYPE_GSM);
|
||||
|
Reference in New Issue
Block a user