Move LocationServicePreference to Location > LocationServices

Bug: 180533061
Test: manual on device
Change-Id: Idd700f5c530af67f4936e207e42988267185f256
This commit is contained in:
Yu-Han Yang
2021-02-17 13:52:39 -08:00
parent 1ebb7fa010
commit e93c1298fc
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);
}
}