[Wi-Fi] Fix Wi-Fi broken tests

Bug: 150910070
Test: make RunSettingsRoboTests -j ROBOTEST_FILTER=com.android.settings.wifi
Change-Id: Ie9b9384610857e2999fe4642a93c2d31ce3315f3
This commit is contained in:
Arc Wang
2020-03-19 14:42:14 +08:00
parent 9b72496123
commit 4fafe6716c
7 changed files with 36 additions and 33 deletions

View File

@@ -160,11 +160,10 @@ public class WifiSettings2Test {
}
@Test
@Ignore
public void setAdditionalSettingsSummaries_wifiWakeupEnabled_displayOn() {
final ContentResolver contentResolver = mContext.getContentResolver();
when(mWifiManager.isAutoWakeupEnabled()).thenReturn(true);
when(mWifiManager.isScanAlwaysAvailable()).thenReturn(false);
when(mWifiManager.isScanAlwaysAvailable()).thenReturn(true);
Settings.Global.putInt(contentResolver, Settings.Global.AIRPLANE_MODE_ON, 0);
when(mPowerManager.isPowerSaveMode()).thenReturn(false);