From b87e5455bcc1678b911141ce507fa21b4d3f98d4 Mon Sep 17 00:00:00 2001 From: clownshen Date: Tue, 23 Apr 2019 17:15:32 +0800 Subject: [PATCH] Fix WifiDetailPreferenceControllerTest new test case failure Bug: 130370187 Test: make RunSettingsRoboTests -j32 ROBOTEST_FILTER=com.android.settings.wifi.details.WifiDetailPreferenceControllerTest Change-Id: I314702be14db4e853412874c123e0a4b229849a2 --- .../wifi/details/WifiDetailPreferenceControllerTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/robotests/src/com/android/settings/wifi/details/WifiDetailPreferenceControllerTest.java b/tests/robotests/src/com/android/settings/wifi/details/WifiDetailPreferenceControllerTest.java index 904fdd86a05..d4ce481e005 100644 --- a/tests/robotests/src/com/android/settings/wifi/details/WifiDetailPreferenceControllerTest.java +++ b/tests/robotests/src/com/android/settings/wifi/details/WifiDetailPreferenceControllerTest.java @@ -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();