Merge "Fix WifiDetailPreferenceControllerTest new test case failure" into qt-dev

am: 28cfb72aaa

Change-Id: I5543b540f1b61a4c0f844f11886e45d56959162d
This commit is contained in:
Andrew Sapperstein
2019-04-23 12:19:11 -07:00
committed by android-build-merger

View File

@@ -1653,7 +1653,7 @@ public class WifiDetailPreferenceControllerTest {
displayAndResume();
// change as not in range
when(mockAccessPoint.matches(any(WifiConfiguration.class))).thenReturn(false);
when(mockAccessPoint.matches(any(AccessPoint.class))).thenReturn(false);
boolean changed = mController.updateAccessPoint();
assertThat(changed).isTrue();
@@ -1666,7 +1666,7 @@ public class WifiDetailPreferenceControllerTest {
displayAndResume();
// change as in range
when(mockAccessPoint.matches(any(WifiConfiguration.class))).thenReturn(true);
when(mockAccessPoint.matches(any(AccessPoint.class))).thenReturn(true);
boolean changed = mController.updateAccessPoint();
assertThat(changed).isTrue();