Modify test cases according to change in remove preference behavior.
Bug: 35365702 Test: make RunSettingsRoboTests Change-Id: I541f4bd946116c766a90da955c11933a5499fa93
This commit is contained in:
@@ -50,6 +50,9 @@ public class AppLocationPermissionPreferenceControllerTest {
|
||||
Settings.System.putInt(mContext.getContentResolver(),
|
||||
android.provider.Settings.Global.LOCATION_SETTINGS_LINK_TO_PERMISSIONS_ENABLED,
|
||||
0);
|
||||
when(mScreen.getPreferenceCount()).thenReturn(1);
|
||||
when(mScreen.getPreference(0)).thenReturn(mPreference);
|
||||
when(mPreference.getKey()).thenReturn(mController.getPreferenceKey());
|
||||
|
||||
mController.displayPreference(mScreen);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user