Stop search tests using location_settings
Stop robolectric search tests using location_settings, use sound_settings instead. The choice of location_settings.xml seems arbitrary, and there's a commit coming which means one of the controllers doesn't just use settings to check availability. When the unconfigured mock returns null from a method, that causes the test to fail in a non-obvious way. Bug: 171371424 Test: m RunSettingsRoboTests Change-Id: I4d3386e3c62fb4151e4a4e27625edccec89316d9
This commit is contained in:
@@ -30,7 +30,7 @@ public class FakeIndexProvider implements Indexable {
|
|||||||
public static final String KEY = "TestKey";
|
public static final String KEY = "TestKey";
|
||||||
|
|
||||||
public static final BaseSearchIndexProvider SEARCH_INDEX_DATA_PROVIDER =
|
public static final BaseSearchIndexProvider SEARCH_INDEX_DATA_PROVIDER =
|
||||||
new BaseSearchIndexProvider(R.xml.location_settings) {
|
new BaseSearchIndexProvider(R.xml.sound_settings) {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public List<String> getNonIndexableKeys(Context context) {
|
public List<String> getNonIndexableKeys(Context context) {
|
||||||
|
Reference in New Issue
Block a user