Remove extra IndexProviders that provided bad data.
Gesture Settings and Wireless settings were indexing duplicate results that only added complexity to Search. PowerUsageDetail was never supposed to be indexed. Bug:33701673 Test: make RunSettingsRoboTests Change-Id: I45d1fa4bd412c3418acec24f8c98eb4736f220ab
This commit is contained in:
@@ -89,19 +89,4 @@ public class SwipeToNotificationPreferenceControllerTest {
|
||||
|
||||
assertThat(mController.isSwitchPrefEnabled()).isFalse();
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testPreferenceController_ProperResultPayloadType() {
|
||||
ResultPayload payload = mController.getResultPayload();
|
||||
assertThat(payload).isInstanceOf(InlineSwitchPayload.class);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testPreferenceController_CorrectPayload() {
|
||||
InlineSwitchPayload payload = (InlineSwitchPayload) mController.getResultPayload();
|
||||
assertThat(payload.settingsUri).isEqualTo("system_navigation_keys_enabled");
|
||||
assertThat(payload.settingSource).isEqualTo(ResultPayload.SettingsSource.SECURE);
|
||||
assertThat(payload.valueMap.get(1)).isEqualTo(true);
|
||||
assertThat(payload.valueMap.get(0)).isEqualTo(false);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user