diff options
| author | Chiachang Wang <chiachangwang@google.com> | 2022-01-21 06:34:29 +0000 |
|---|---|---|
| committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2022-01-21 06:34:29 +0000 |
| commit | b04664d7a6f9e57d4863a48f763403ab736f6995 (patch) | |
| tree | 48d3bb2da4cdb40624cdbc4c8f93df970ea6e367 /tests/unit/java/android/net/NetworkStatsCollectionTest.java | |
| parent | 015e5690af19055208e3e2156d406e2c9f507b96 (diff) | |
| parent | 7212fbee14c6d95f44a7adcea8a6ef21366e2730 (diff) | |
Merge "Update the SDK for the tests with intended target in T+"
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 870e88aa70..2e8298603b 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; @@ -79,7 +79,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"; |
