diff options
| author | Chiachang Wang <chiachangwang@google.com> | 2022-01-07 16:05:27 +0800 |
|---|---|---|
| committer | Chiachang Wang <chiachangwang@google.com> | 2022-01-20 10:30:19 +0800 |
| commit | 7212fbee14c6d95f44a7adcea8a6ef21366e2730 (patch) | |
| tree | 34cd920c80b4e706273cc15353356dde6420e97a /tests/unit/java/android/net/NetworkStatsCollectionTest.java | |
| parent | 7aac4ad2f793734bffb8e5acb5dfd2e959160d9a (diff) | |
Update the SDK for the tests with intended target in T+
Correct the SDK for those tests are expected running in T+
device. Check @IgnoreUpTo(S) may be incorrect after receiving
patches before T release.
Refer to temporary constant definition in DevSdkIgnoreRule until
the SDK constant being pushed into AOSP and synced with branch
used for mainline.
BUg: 215294242
Test: atest CtsNetTestCases CtsNetTestCasesLatestSdk
Change-Id: Ide6a241f7944dd1e75bc33b21aa29471a5df94c6
Diffstat (limited to 'tests/unit/java/android/net/NetworkStatsCollectionTest.java')
| -rw-r--r-- | tests/unit/java/android/net/NetworkStatsCollectionTest.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/unit/java/android/net/NetworkStatsCollectionTest.java b/tests/unit/java/android/net/NetworkStatsCollectionTest.java index 1c557d6443..e45c5c870f 100644 --- a/tests/unit/java/android/net/NetworkStatsCollectionTest.java +++ b/tests/unit/java/android/net/NetworkStatsCollectionTest.java @@ -29,6 +29,7 @@ import static android.text.format.DateUtils.HOUR_IN_MILLIS; import static android.text.format.DateUtils.MINUTE_IN_MILLIS; import static com.android.net.module.util.NetworkStatsUtils.multiplySafeByRational; +import static com.android.testutils.DevSdkIgnoreRuleKt.SC_V2; import static com.android.testutils.MiscAsserts.assertThrows; import static org.junit.Assert.assertArrayEquals; @@ -37,7 +38,6 @@ import static org.junit.Assert.assertNotNull; import static org.junit.Assert.fail; import android.content.res.Resources; -import android.os.Build; import android.os.Process; import android.os.UserHandle; import android.telephony.SubscriptionPlan; @@ -78,7 +78,7 @@ import java.util.List; */ @RunWith(DevSdkIgnoreRunner.class) @SmallTest -@DevSdkIgnoreRule.IgnoreUpTo(Build.VERSION_CODES.S) +@DevSdkIgnoreRule.IgnoreUpTo(SC_V2) // TODO: Use to Build.VERSION_CODES.SC_V2 when available public class NetworkStatsCollectionTest { private static final String TEST_FILE = "test.bin"; |
