Merge "HDMI: Run android.hardware.hdmi in presubmits"
This commit is contained in:
@@ -218,6 +218,23 @@
|
||||
"file_patterns": [
|
||||
"(/|^)GameManager[^/]*", "(/|^)GameMode[^/]*"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "HdmiCecTests",
|
||||
"options": [
|
||||
{
|
||||
"exclude-annotation": "androidx.test.filters.FlakyTest"
|
||||
},
|
||||
{
|
||||
"exclude-annotation": "org.junit.Ignore"
|
||||
},
|
||||
{
|
||||
"include-filter": "android.hardware.hdmi"
|
||||
}
|
||||
],
|
||||
"file_patterns": [
|
||||
"(/|^)DeviceFeature[^/]*", "(/|^)Hdmi[^/]*"
|
||||
]
|
||||
}
|
||||
],
|
||||
"presubmit-large": [
|
||||
|
||||
@@ -17,12 +17,15 @@ package android.hardware.hdmi;
|
||||
|
||||
import static com.google.common.truth.Truth.assertThat;
|
||||
|
||||
import android.platform.test.annotations.Presubmit;
|
||||
|
||||
import androidx.test.filters.SmallTest;
|
||||
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.junit.runners.JUnit4;
|
||||
|
||||
@Presubmit
|
||||
@SmallTest
|
||||
@RunWith(JUnit4.class)
|
||||
/** Tests for {@link HdmiUtils} class. */
|
||||
|
||||
@@ -29,9 +29,11 @@ android_test {
|
||||
"androidx.test.rules",
|
||||
"frameworks-base-testutils",
|
||||
"guava-android-testlib",
|
||||
"platform-test-annotations",
|
||||
"truth-prebuilt",
|
||||
],
|
||||
libs: ["android.test.runner"],
|
||||
platform_apis: true,
|
||||
certificate: "platform",
|
||||
test_suites: ["device-tests"],
|
||||
}
|
||||
|
||||
@@ -22,6 +22,9 @@
|
||||
<option name="cleanup-apks" value="true" />
|
||||
<option name="test-file-name" value="HdmiCecTests.apk" />
|
||||
</target_preparer>
|
||||
<target_preparer class="com.android.tradefed.targetprep.RootTargetPreparer">
|
||||
<option name="force-root" value="true" />
|
||||
</target_preparer>
|
||||
|
||||
<option name="test-suite-tag" value="apct"/>
|
||||
<option name="test-tag" value="HdmiTests"/>
|
||||
@@ -30,5 +33,6 @@
|
||||
<option name="package" value="android.hardware.hdmi" />
|
||||
<option name="hidden-api-checks" value="false"/>
|
||||
<option name="runner" value="androidx.test.runner.AndroidJUnitRunner"/>
|
||||
<option name="test-filter-dir" value="/data/data/android.hardware.hdmi" />
|
||||
</test>
|
||||
</configuration>
|
||||
@@ -22,6 +22,8 @@ import static android.hardware.hdmi.DeviceFeatures.FEATURE_SUPPORT_UNKNOWN;
|
||||
|
||||
import static com.google.common.truth.Truth.assertThat;
|
||||
|
||||
import android.platform.test.annotations.Presubmit;
|
||||
|
||||
import androidx.test.filters.SmallTest;
|
||||
|
||||
import com.google.common.testing.EqualsTester;
|
||||
@@ -31,6 +33,7 @@ import org.junit.runner.RunWith;
|
||||
import org.junit.runners.JUnit4;
|
||||
|
||||
/** Tests for {@link DeviceFeatures} */
|
||||
@Presubmit
|
||||
@RunWith(JUnit4.class)
|
||||
@SmallTest
|
||||
public class DeviceFeaturesTest {
|
||||
|
||||
@@ -18,6 +18,7 @@ package android.hardware.hdmi;
|
||||
|
||||
import android.os.Handler;
|
||||
import android.os.test.TestLooper;
|
||||
import android.platform.test.annotations.Presubmit;
|
||||
import android.util.Log;
|
||||
|
||||
import androidx.test.filters.SmallTest;
|
||||
@@ -34,6 +35,7 @@ import java.util.List;
|
||||
/**
|
||||
* Tests for {@link HdmiAudioSystemClient}
|
||||
*/
|
||||
@Presubmit
|
||||
@RunWith(JUnit4.class)
|
||||
@SmallTest
|
||||
public class HdmiAudioSystemClientTest {
|
||||
|
||||
@@ -16,6 +16,8 @@
|
||||
|
||||
package android.hardware.hdmi;
|
||||
|
||||
import android.platform.test.annotations.Presubmit;
|
||||
|
||||
import androidx.test.filters.SmallTest;
|
||||
|
||||
import com.google.common.testing.EqualsTester;
|
||||
@@ -25,6 +27,7 @@ import org.junit.runner.RunWith;
|
||||
import org.junit.runners.JUnit4;
|
||||
|
||||
/** Tests for {@link HdmiDeviceInfo} */
|
||||
@Presubmit
|
||||
@RunWith(JUnit4.class)
|
||||
@SmallTest
|
||||
public class HdmiDeviceInfoTest {
|
||||
|
||||
@@ -16,6 +16,8 @@
|
||||
|
||||
package android.hardware.hdmi;
|
||||
|
||||
import android.platform.test.annotations.Presubmit;
|
||||
|
||||
import androidx.test.filters.SmallTest;
|
||||
|
||||
import com.google.common.testing.EqualsTester;
|
||||
@@ -25,6 +27,7 @@ import org.junit.runner.RunWith;
|
||||
import org.junit.runners.JUnit4;
|
||||
|
||||
/** Tests for {@link HdmiPortInfo} */
|
||||
@Presubmit
|
||||
@RunWith(JUnit4.class)
|
||||
@SmallTest
|
||||
public class HdmiPortInfoTest {
|
||||
|
||||
@@ -18,6 +18,8 @@ package android.hardware.hdmi;
|
||||
|
||||
import static com.google.common.truth.Truth.assertThat;
|
||||
|
||||
import android.platform.test.annotations.Presubmit;
|
||||
|
||||
import androidx.test.filters.SmallTest;
|
||||
|
||||
import org.junit.Test;
|
||||
@@ -26,6 +28,7 @@ import org.junit.runners.JUnit4;
|
||||
/**
|
||||
* Tests for {@link HdmiUtils}.
|
||||
*/
|
||||
@Presubmit
|
||||
@RunWith(JUnit4.class)
|
||||
@SmallTest
|
||||
public class HdmiUtilsTest {
|
||||
|
||||
Reference in New Issue
Block a user