Merge "Add Portrait/Landscape support for NexusLauncher screenshot tests" into udc-qpr-dev

This commit is contained in:
Alex Chau
2023-05-30 15:54:10 +00:00
committed by Android (Google) Code Review
9 changed files with 21 additions and 12 deletions

View File

@@ -82,10 +82,6 @@ import org.junit.rules.RuleChain;
import org.junit.rules.TestRule;
import java.io.IOException;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import java.util.concurrent.Callable;
import java.util.concurrent.CountDownLatch;
import java.util.concurrent.TimeUnit;
@@ -209,12 +205,6 @@ public abstract class AbstractLauncherUiTest {
mTargetContext.unregisterReceiver(broadcastReceiver);
}
// Annotation for tests that need to be run in portrait and landscape modes.
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.METHOD)
protected @interface PortraitLandscape {
}
protected TestRule getRulesInsideActivityMonitor() {
final RuleChain inner = RuleChain
.outerRule(new PortraitLandscapeRunner(this))