Merge "Move LocationServicePreference to Location > LocationServices" into sc-dev

This commit is contained in:
TreeHugger Robot
2021-02-24 01:41:25 +00:00
committed by Android (Google) Code Review
12 changed files with 43 additions and 39 deletions

View File

@@ -32,7 +32,7 @@ import org.robolectric.RuntimeEnvironment;
import java.util.List;
@RunWith(RobolectricTestRunner.class)
public class ScanningSettingsTest {
public class LocationServicesTest {
private Context mContext;
@@ -43,10 +43,10 @@ public class ScanningSettingsTest {
@Test
public void searchProvider_shouldIndexDefaultXml() {
final List<SearchIndexableResource> sir = ScanningSettings.SEARCH_INDEX_DATA_PROVIDER
final List<SearchIndexableResource> sir = LocationServices.SEARCH_INDEX_DATA_PROVIDER
.getXmlResourcesToIndex(mContext, true /* enabled */);
assertThat(sir).hasSize(1);
assertThat(sir.get(0).xmlResId).isEqualTo(R.xml.location_scanning);
assertThat(sir.get(0).xmlResId).isEqualTo(R.xml.location_services);
}
}