summaryrefslogtreecommitdiff
path: root/tests/common/java/android/net/LinkAddressTest.java
diff options
context:
space:
mode:
authorRemi NGUYEN VAN <reminv@google.com>2022-01-18 16:47:04 +0900
committerRemi NGUYEN VAN <reminv@google.com>2022-01-18 16:55:44 +0900
commite34730189096c12239aca78d0ebb2334c6e6eca8 (patch)
tree634f6f39be2608ff3a13d9404953cfdaea70e689 /tests/common/java/android/net/LinkAddressTest.java
parent8bc36966d4e7aeb1eca933326d5e314af4909ed5 (diff)
Mark connectivity module tests as such
Add @ConnectivityModuleTest to tests for classes that are mainly used to back the connectivity (tethering) module, in particular data classes. This causes the test not to be run in NetworkStack/CaptivePortalLogin MTS tests when the connectivity (tethering) module is not installed. Skipping such tests is necessary in that configuration as they may test behavior that is new in the latest update, and data classes backing the connectivity module would not be affected by NetworkStack/CaptivePortalLogin updates anyway. Bug: 211075897 Test: atest CtsNetTestCasesLatestSdk Change-Id: I6163cd998fc78765b903fdb7acd21e652bc711c9
Diffstat (limited to 'tests/common/java/android/net/LinkAddressTest.java')
-rw-r--r--tests/common/java/android/net/LinkAddressTest.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/common/java/android/net/LinkAddressTest.java b/tests/common/java/android/net/LinkAddressTest.java
index 053a90305c..6b04fee4ef 100644
--- a/tests/common/java/android/net/LinkAddressTest.java
+++ b/tests/common/java/android/net/LinkAddressTest.java
@@ -43,6 +43,7 @@ import android.os.SystemClock;
import androidx.test.filters.SmallTest;
import androidx.test.runner.AndroidJUnit4;
+import com.android.testutils.ConnectivityModuleTest;
import com.android.testutils.DevSdkIgnoreRule;
import com.android.testutils.DevSdkIgnoreRule.IgnoreUpTo;
@@ -61,6 +62,7 @@ import java.util.List;
@RunWith(AndroidJUnit4.class)
@SmallTest
+@ConnectivityModuleTest
public class LinkAddressTest {
@Rule
public final DevSdkIgnoreRule ignoreRule = new DevSdkIgnoreRule();