Merge "tether setting: fix test error: updateDisplay_shouldUpdateValue"

This commit is contained in:
TreeHugger Robot
2020-02-12 01:33:13 +00:00
committed by Android (Google) Code Review

View File

@@ -160,7 +160,7 @@ public class WifiTetherApBandPreferenceControllerTest {
// Set controller band index to 5GHz and verify is set. // Set controller band index to 5GHz and verify is set.
mController.displayPreference(mScreen); mController.displayPreference(mScreen);
mController.onPreferenceChange(mPreference, VAL_5GHZ_STR); 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 // Disable 5Ghz band
when(mWifiManager.is5GHzBandSupported()).thenReturn(false); when(mWifiManager.is5GHzBandSupported()).thenReturn(false);