Enable ignored slice provider tests
Test: robotest Bug: 199371852 Change-Id: I6c1ef3eb64ecb0d6bdd0e973bd4e4727111b3aef
This commit is contained in:
@@ -172,7 +172,6 @@ public class SettingsSliceProviderTest {
|
||||
}
|
||||
|
||||
@Test
|
||||
@Ignore
|
||||
public void testInitialSliceReturned_emptySlice() {
|
||||
SliceTestUtils.insertSliceToDb(mContext, KEY);
|
||||
Slice slice = mProvider.onBindSlice(INTENT_SLICE_URI);
|
||||
@@ -182,7 +181,6 @@ public class SettingsSliceProviderTest {
|
||||
}
|
||||
|
||||
@Test
|
||||
@Ignore
|
||||
public void testLoadSlice_returnsSliceFromAccessor() {
|
||||
SliceTestUtils.insertSliceToDb(mContext, KEY);
|
||||
|
||||
@@ -194,7 +192,6 @@ public class SettingsSliceProviderTest {
|
||||
}
|
||||
|
||||
@Test
|
||||
@Ignore
|
||||
public void loadSlice_registersIntentFilter() {
|
||||
SliceTestUtils.insertSliceToDb(mContext, KEY);
|
||||
|
||||
@@ -205,7 +202,6 @@ public class SettingsSliceProviderTest {
|
||||
}
|
||||
|
||||
@Test
|
||||
@Ignore
|
||||
public void loadSlice_registersBackgroundListener() {
|
||||
SliceTestUtils.insertSliceToDb(mContext, KEY);
|
||||
|
||||
@@ -219,7 +215,6 @@ public class SettingsSliceProviderTest {
|
||||
}
|
||||
|
||||
@Test
|
||||
@Ignore
|
||||
public void testLoadSlice_cachedEntryRemovedOnBuild() {
|
||||
SliceData data = getMockData();
|
||||
mProvider.mSliceWeakDataCache.put(data.getUri(), data);
|
||||
@@ -232,7 +227,6 @@ public class SettingsSliceProviderTest {
|
||||
}
|
||||
|
||||
@Test
|
||||
@Ignore
|
||||
public void onBindSlice_mainThread_shouldNotOverrideStrictMode() {
|
||||
ShadowThreadUtils.setIsMainThread(true);
|
||||
final StrictMode.ThreadPolicy oldThreadPolicy = StrictMode.getThreadPolicy();
|
||||
@@ -276,7 +270,6 @@ public class SettingsSliceProviderTest {
|
||||
}
|
||||
|
||||
@Test
|
||||
@Ignore
|
||||
public void onBindSlice_nightModeChanged_shouldReloadTheme() {
|
||||
mContext.getResources().getConfiguration().uiMode = UI_MODE_NIGHT_NO;
|
||||
final SliceData data = getMockData();
|
||||
@@ -290,7 +283,6 @@ public class SettingsSliceProviderTest {
|
||||
}
|
||||
|
||||
@Test
|
||||
@Ignore
|
||||
public void onBindSlice_nightModeNotChanged_shouldNotReloadTheme() {
|
||||
mContext.getResources().getConfiguration().uiMode = UI_MODE_NIGHT_NO;
|
||||
SliceData data = getMockData();
|
||||
@@ -332,7 +324,6 @@ public class SettingsSliceProviderTest {
|
||||
}
|
||||
|
||||
@Test
|
||||
@Ignore
|
||||
public void getDescendantUris_invalidPath_returnsEmpty() {
|
||||
final String key = "platform_key";
|
||||
SliceTestUtils.insertSliceToDb(mContext, key, true /* isPlatformSlice */,
|
||||
@@ -350,7 +341,6 @@ public class SettingsSliceProviderTest {
|
||||
}
|
||||
|
||||
@Test
|
||||
@Ignore
|
||||
public void getDescendantUris_platformSlice_doesNotReturnOEMSlice() {
|
||||
SliceTestUtils.insertSliceToDb(mContext, "oem_key", false /* isPlatformSlice */,
|
||||
null /* customizedUnavailableSliceSubtitle */, true /* isPublicSlice */);
|
||||
@@ -366,7 +356,6 @@ public class SettingsSliceProviderTest {
|
||||
}
|
||||
|
||||
@Test
|
||||
@Ignore
|
||||
public void getDescendantUris_oemSlice_doesNotReturnPlatformSlice() {
|
||||
SliceTestUtils.insertSliceToDb(mContext, "platform_key", true /* isPlatformSlice */,
|
||||
null /* customizedUnavailableSliceSubtitle */, true /* isPublicSlice */);
|
||||
@@ -382,7 +371,6 @@ public class SettingsSliceProviderTest {
|
||||
}
|
||||
|
||||
@Test
|
||||
@Ignore
|
||||
public void getDescendantUris_oemSlice_returnsOEMUriDescendant() {
|
||||
final String key = "oem_key";
|
||||
SliceTestUtils.insertSliceToDb(mContext, key, false /* isPlatformSlice */,
|
||||
@@ -407,7 +395,6 @@ public class SettingsSliceProviderTest {
|
||||
}
|
||||
|
||||
@Test
|
||||
@Ignore
|
||||
public void getDescendantUris_oemSliceNoPath_returnsOEMUriDescendant() {
|
||||
final String key = "oem_key";
|
||||
SliceTestUtils.insertSliceToDb(mContext, key, false /* isPlatformSlice */,
|
||||
@@ -431,7 +418,6 @@ public class SettingsSliceProviderTest {
|
||||
}
|
||||
|
||||
@Test
|
||||
@Ignore
|
||||
public void getDescendantUris_oemSliceNoPath_notContainPrivateUri() {
|
||||
final String key = "oem_key";
|
||||
SliceTestUtils.insertSliceToDb(mContext, key, false /* isPlatformSlice */,
|
||||
@@ -453,7 +439,6 @@ public class SettingsSliceProviderTest {
|
||||
}
|
||||
|
||||
@Test
|
||||
@Ignore
|
||||
public void getDescendantUris_platformSlice_returnsPlatformUriDescendant() {
|
||||
final String key = "platform_key";
|
||||
SliceTestUtils.insertSliceToDb(mContext, key, true /* isPlatformSlice */,
|
||||
@@ -478,7 +463,6 @@ public class SettingsSliceProviderTest {
|
||||
}
|
||||
|
||||
@Test
|
||||
@Ignore
|
||||
public void getDescendantUris_platformSliceNoPath_returnsPlatformUriDescendant() {
|
||||
final String key = "platform_key";
|
||||
SliceTestUtils.insertSliceToDb(mContext, key, true /* isPlatformSlice */,
|
||||
@@ -502,7 +486,6 @@ public class SettingsSliceProviderTest {
|
||||
}
|
||||
|
||||
@Test
|
||||
@Ignore
|
||||
public void getDescendantUris_noAuthorityNorPath_returnsAllUris() {
|
||||
final String platformKey = "platform_key";
|
||||
final String oemKey = "oemKey";
|
||||
@@ -536,7 +519,6 @@ public class SettingsSliceProviderTest {
|
||||
|
||||
@Test
|
||||
@Config(qualifiers = "mcc999")
|
||||
@Ignore
|
||||
public void getDescendantUris_privateSlicesNeeded_containsPrivateSliceUri() {
|
||||
final String privateKey = "test_private";
|
||||
final Uri specialUri = Uri.parse("content://com.android.settings.slices/test");
|
||||
@@ -559,7 +541,6 @@ public class SettingsSliceProviderTest {
|
||||
|
||||
@Test
|
||||
@Config(qualifiers = "mcc999")
|
||||
@Ignore
|
||||
public void getDescendantUris_privateSlicesNotNeeded_notContainPrivateSliceUri() {
|
||||
final Uri specialUri = Uri.parse("content://com.android.settings.slices/test");
|
||||
doReturn(false).when(mProvider).isPrivateSlicesNeeded(specialUri);
|
||||
|
Reference in New Issue
Block a user