Disable broken tests in slice framework
Bug: 254117119 Test: atest FrameworksUiServicesTests:com.android.server.slice.SliceManagerServiceTest -- --abi x86_64 Change-Id: Ibfb45b7ba890f36068ef994730ef4771f20be1cb
This commit is contained in:
@@ -51,6 +51,7 @@ import com.android.server.UiServiceTestCase;
|
||||
|
||||
import org.junit.After;
|
||||
import org.junit.Before;
|
||||
import org.junit.Ignore;
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
|
||||
@@ -87,6 +88,7 @@ public class SliceManagerServiceTest extends UiServiceTestCase {
|
||||
LocalServices.removeServiceForTest(UsageStatsManagerInternal.class);
|
||||
}
|
||||
|
||||
@Ignore("b/253871109")
|
||||
@Test
|
||||
public void testAddPinCreatesPinned() throws RemoteException {
|
||||
grantSlicePermission();
|
||||
@@ -97,6 +99,7 @@ public class SliceManagerServiceTest extends UiServiceTestCase {
|
||||
verify(mService, times(1)).createPinnedSlice(eq(maybeAddUserId(TEST_URI, 0)), anyString());
|
||||
}
|
||||
|
||||
@Ignore("b/253871109")
|
||||
@Test
|
||||
public void testRemovePinDestroysPinned() throws RemoteException {
|
||||
grantSlicePermission();
|
||||
@@ -109,6 +112,7 @@ public class SliceManagerServiceTest extends UiServiceTestCase {
|
||||
verify(mCreatedSliceState, never()).destroy();
|
||||
}
|
||||
|
||||
@Ignore("b/253871109")
|
||||
@Test
|
||||
public void testCheckAutoGrantPermissions() throws RemoteException {
|
||||
String[] testPerms = new String[] {
|
||||
@@ -129,12 +133,14 @@ public class SliceManagerServiceTest extends UiServiceTestCase {
|
||||
verify(mContextSpy).checkPermission(eq("perm2"), eq(Process.myPid()), eq(Process.myUid()));
|
||||
}
|
||||
|
||||
@Ignore("b/253871109")
|
||||
@Test(expected = IllegalStateException.class)
|
||||
public void testNoPinThrow() throws Exception {
|
||||
grantSlicePermission();
|
||||
mService.getPinnedSpecs(TEST_URI, "pkg");
|
||||
}
|
||||
|
||||
@Ignore("b/253871109")
|
||||
@Test
|
||||
public void testGetPinnedSpecs() throws Exception {
|
||||
grantSlicePermission();
|
||||
|
||||
Reference in New Issue
Block a user