Skip connectivity unit tests before S
The tests are packaged together with other tests in a common coverage suite, so need to be individually annotated so that they are skipped before S. They do not need to pass on platforms older than S, because such platforms will not updated with the code that is tested. Bug: 187935317 Test: atest ConnectivityCoverageTests on R Change-Id: I10da45ae023e7f1e8cd11ec857b84346892a3fa8
This commit is contained in:
parent
d4c644cf4d
commit
05dd1ba540
1 changed files with 179 additions and 6 deletions
|
|
@ -23,6 +23,9 @@ import static org.junit.Assert.assertEquals;
|
|||
import static org.junit.Assert.assertNotSame;
|
||||
import static org.junit.Assert.assertNull;
|
||||
|
||||
import android.os.Build;
|
||||
|
||||
import androidx.test.filters.SdkSuppress;
|
||||
import androidx.test.filters.SmallTest;
|
||||
|
||||
import org.junit.Test;
|
||||
|
|
@ -32,6 +35,7 @@ import org.junit.runners.JUnit4;
|
|||
/** Unit tests for {@link IpSecConfig}. */
|
||||
@SmallTest
|
||||
@RunWith(JUnit4.class)
|
||||
@SdkSuppress(minSdkVersion = Build.VERSION_CODES.S, codeName = "S")
|
||||
public class IpSecConfigTest {
|
||||
|
||||
@Test
|
||||
|
|
|
|||
Loading…
Reference in a new issue