Merge "WiFi: Replace -1 with LINK_SPEED_UNKNOWN constant"

This commit is contained in:
Sunil Ravi
2019-02-27 21:16:25 +00:00
committed by Android (Google) Code Review
2 changed files with 4 additions and 4 deletions

View File

@@ -429,7 +429,7 @@ public class WifiDetailPreferenceControllerTest {
@Test
public void linkSpeedPref_shouldNotShowIfNotSet() {
when(mockWifiInfo.getTxLinkSpeedMbps()).thenReturn(-1);
when(mockWifiInfo.getTxLinkSpeedMbps()).thenReturn(WifiInfo.LINK_SPEED_UNKNOWN);
displayAndResume();
@@ -447,7 +447,7 @@ public class WifiDetailPreferenceControllerTest {
@Test
public void rxLinkSpeedPref_shouldNotShowIfNotSet() {
when(mockWifiInfo.getRxLinkSpeedMbps()).thenReturn(-1);
when(mockWifiInfo.getRxLinkSpeedMbps()).thenReturn(WifiInfo.LINK_SPEED_UNKNOWN);
displayAndResume();