Merge changes from topic "presubmit-am-63dae37384ff42c4ad3ee8cab0e7dbc9"
* changes: [automerge] Promote WMJetpackUnitTests to presubmit 2p:77071e81402p:d8503772f1[automerge] Promote WMJetpackUnitTests to presubmit 2p:77071e8140Promote WMJetpackUnitTests to presubmit
This commit is contained in:
32
libs/WindowManager/Jetpack/src/TEST_MAPPING
Normal file
32
libs/WindowManager/Jetpack/src/TEST_MAPPING
Normal file
@@ -0,0 +1,32 @@
|
||||
{
|
||||
"presubmit": [
|
||||
{
|
||||
"name": "WMJetpackUnitTests",
|
||||
"options": [
|
||||
{
|
||||
"include-annotation": "android.platform.test.annotations.Presubmit"
|
||||
},
|
||||
{
|
||||
"exclude-annotation": "androidx.test.filters.FlakyTest"
|
||||
},
|
||||
{
|
||||
"exclude-annotation": "org.junit.Ignore"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "CtsWindowManagerJetpackTestCases",
|
||||
"options": [
|
||||
{
|
||||
"include-annotation": "android.platform.test.annotations.Presubmit"
|
||||
},
|
||||
{
|
||||
"exclude-annotation": "androidx.test.filters.FlakyTest"
|
||||
},
|
||||
{
|
||||
"exclude-annotation": "org.junit.Ignore"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -23,6 +23,8 @@ package {
|
||||
|
||||
android_test {
|
||||
name: "WMJetpackUnitTests",
|
||||
// To make the test run via TEST_MAPPING
|
||||
test_suites: ["device-tests"],
|
||||
|
||||
srcs: [
|
||||
"**/*.java",
|
||||
|
||||
@@ -18,6 +18,8 @@ package androidx.window.extensions;
|
||||
|
||||
import static com.google.common.truth.Truth.assertThat;
|
||||
|
||||
import android.platform.test.annotations.Presubmit;
|
||||
|
||||
import androidx.test.ext.junit.runners.AndroidJUnit4;
|
||||
import androidx.test.filters.SmallTest;
|
||||
|
||||
@@ -25,6 +27,13 @@ import org.junit.Before;
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
|
||||
/**
|
||||
* Test class for {@link WindowExtensionsTest}.
|
||||
*
|
||||
* Build/Install/Run:
|
||||
* atest WMJetpackUnitTests:WindowExtensionsTest
|
||||
*/
|
||||
@Presubmit
|
||||
@SmallTest
|
||||
@RunWith(AndroidJUnit4.class)
|
||||
public class WindowExtensionsTest {
|
||||
|
||||
@@ -24,6 +24,8 @@ import static org.junit.Assert.assertNull;
|
||||
import static org.mockito.ArgumentMatchers.anyInt;
|
||||
import static org.mockito.Mockito.never;
|
||||
|
||||
import android.platform.test.annotations.Presubmit;
|
||||
|
||||
import androidx.test.ext.junit.runners.AndroidJUnit4;
|
||||
import androidx.test.filters.SmallTest;
|
||||
|
||||
@@ -39,6 +41,7 @@ import org.mockito.MockitoAnnotations;
|
||||
* Build/Install/Run:
|
||||
* atest WMJetpackUnitTests:JetpackTaskFragmentOrganizerTest
|
||||
*/
|
||||
@Presubmit
|
||||
@SmallTest
|
||||
@RunWith(AndroidJUnit4.class)
|
||||
public class JetpackTaskFragmentOrganizerTest {
|
||||
|
||||
@@ -23,6 +23,8 @@ import static com.google.common.truth.Truth.assertWithMessage;
|
||||
import static org.mockito.Mockito.doReturn;
|
||||
import static org.mockito.Mockito.mock;
|
||||
|
||||
import android.platform.test.annotations.Presubmit;
|
||||
|
||||
import androidx.test.ext.junit.runners.AndroidJUnit4;
|
||||
import androidx.test.filters.SmallTest;
|
||||
import androidx.window.extensions.embedding.SplitController.TaskContainer;
|
||||
@@ -37,6 +39,7 @@ import org.junit.runner.RunWith;
|
||||
* Build/Install/Run:
|
||||
* atest WMJetpackUnitTests:SplitController
|
||||
*/
|
||||
@Presubmit
|
||||
@SmallTest
|
||||
@RunWith(AndroidJUnit4.class)
|
||||
public class SplitControllerTest {
|
||||
|
||||
@@ -21,6 +21,7 @@ import static com.android.dx.mockito.inline.extended.ExtendedMockito.verify;
|
||||
import static org.mockito.ArgumentMatchers.anyInt;
|
||||
import static org.mockito.Mockito.never;
|
||||
|
||||
import android.platform.test.annotations.Presubmit;
|
||||
import android.window.TaskFragmentOrganizer;
|
||||
|
||||
import androidx.test.ext.junit.runners.AndroidJUnit4;
|
||||
@@ -38,6 +39,7 @@ import org.mockito.MockitoAnnotations;
|
||||
* Build/Install/Run:
|
||||
* atest WMJetpackUnitTests:TaskFragmentAnimationControllerTest
|
||||
*/
|
||||
@Presubmit
|
||||
@SmallTest
|
||||
@RunWith(AndroidJUnit4.class)
|
||||
public class TaskFragmentAnimationControllerTest {
|
||||
|
||||
Reference in New Issue
Block a user