tether setting: fix test error: updateDisplay_shouldUpdateValue
ag/10257734 change band convert to general design. Fix test to match new design Bug: 149251992 Test: make RunSettingsRoboTests ROBOTEST_FILTER=com.android.settings.wifi Test: make RunSettingsRoboTests ROBOTEST_FILTER=CodeInspectionTest Change-Id: I6f09d9d4f440515fb51a237d966327e232fe5928
This commit is contained in:
@@ -160,7 +160,7 @@ public class WifiTetherApBandPreferenceControllerTest {
|
||||
// Set controller band index to 5GHz and verify is set.
|
||||
mController.displayPreference(mScreen);
|
||||
mController.onPreferenceChange(mPreference, VAL_5GHZ_STR);
|
||||
assertThat(mController.getBandIndex()).isEqualTo(VAL_5GHZ_INT);
|
||||
assertThat(mController.getBandIndex()).isEqualTo(VAL_2_5_GHZ_INT);
|
||||
|
||||
// Disable 5Ghz band
|
||||
when(mWifiManager.is5GHzBandSupported()).thenReturn(false);
|
||||
|
Reference in New Issue
Block a user