Merge "Move LocationServicePreference to Location > LocationServices" into sc-dev am: 6731f0eb7a

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/13605909

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I28967dd9c7981c60d21c30a08cc7c8d8ef03af3d
This commit is contained in:
TreeHugger Robot
2021-02-24 02:40:07 +00:00
committed by Automerger Merge Worker
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);
}
}