Add annotations to BinaryTransparencyHostTest

@Presubmit: since it's now running there
@LargeTest: the the test can easily run more than a MediumTest's budget

Bug: 264296226
Test: atest BinaryTransparencyHostTest
Change-Id: I0a77893baa18c9bfed1bbe65d91e7d66c5b444ba
This commit is contained in:
Victor Hsieh
2023-02-07 15:22:50 -08:00
parent 40d352d46e
commit b9a8babc13

View File

@@ -22,6 +22,9 @@ import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertTrue;
import static org.junit.Assert.fail;
import android.platform.test.annotations.LargeTest;
import android.platform.test.annotations.Presubmit;
import com.android.tradefed.device.DeviceNotAvailableException;
import com.android.tradefed.log.LogUtil.CLog;
import com.android.tradefed.testtype.DeviceJUnit4ClassRunner;
@@ -36,7 +39,7 @@ import org.junit.runner.RunWith;
import java.util.concurrent.TimeUnit;
// TODO: Add @Presubmit
@Presubmit
@RunWith(DeviceJUnit4ClassRunner.class)
public final class BinaryTransparencyHostTest extends BaseHostJUnit4Test {
private static final String PACKAGE_NAME = "android.transparency.test.app";
@@ -103,6 +106,7 @@ public final class BinaryTransparencyHostTest extends BaseHostJUnit4Test {
}
}
@LargeTest
@Test
public void testRebootlessApexUpdateTriggersJobScheduling() throws Exception {
try {