Enhanced4gBasePreferenceControllerTest migrated to junit

Bug: 175389659
Test: atest -c Enhanced4gBasePreferenceControllerTest
Change-Id: I7ebcb303eb74168b81dd650fe78f3988647aa64d
This commit is contained in:
Jeremy Goldman
2020-12-12 01:08:52 +08:00
parent 836df5eb3a
commit 4348c2c826
2 changed files with 14 additions and 10 deletions

View File

@@ -185,6 +185,7 @@ public class Enhanced4gBasePreferenceController extends TelephonyTogglePreferenc
return this;
}
@VisibleForTesting
protected int getMode() {
return MODE_NONE;
}
@@ -194,12 +195,12 @@ public class Enhanced4gBasePreferenceController extends TelephonyTogglePreferenc
}
@VisibleForTesting
VolteQueryImsState queryImsState(int subId) {
protected VolteQueryImsState queryImsState(int subId) {
return new VolteQueryImsState(mContext, subId);
}
@VisibleForTesting
boolean isCallStateIdle() {
protected boolean isCallStateIdle() {
return (mCallState != null) && (mCallState == TelephonyManager.CALL_STATE_IDLE);
}