[Settings] Revert the test for using mPhoneStateListener since the Robolectric test is broken
Bug: 183066948 Test: make RunSettingsRoboTests -j ROBOTEST_FILTER=AirplaneModeEnablerTest Change-Id: Ic5c67a9a2996f40fcb07d0840f5c677494e1dc0a
This commit is contained in:
@@ -57,7 +57,7 @@ public final class AirplaneModeEnablerTest {
|
||||
|
||||
ShadowSettings.setAirplaneMode(true);
|
||||
|
||||
mAirplaneModeEnabler.mTelephonyCallback.onRadioPowerStateChanged(
|
||||
mAirplaneModeEnabler.mPhoneStateListener.onRadioPowerStateChanged(
|
||||
TelephonyManager.RADIO_POWER_OFF);
|
||||
|
||||
verify(mAirplaneModeChangedListener, times(1)).onAirplaneModeChanged(true);
|
||||
|
Reference in New Issue
Block a user