summaryrefslogtreecommitdiff
path: root/tests/unit/java/com/android/server/ethernet/EthernetTrackerTest.java
diff options
context:
space:
mode:
authorPatrick Rohr <prohr@google.com>2022-05-26 02:13:09 +0000
committerJames Mattis <jmattis@google.com>2022-07-27 15:57:51 -0700
commit7ede1b283b71f1ab8cbb7ea318443b1558debe2f (patch)
tree50af43941f4509b21f622c3eaeec725beabc4b68 /tests/unit/java/com/android/server/ethernet/EthernetTrackerTest.java
parent67e660e537b07e737463d96fb98e8ce736ff9e46 (diff)
Revert "Temporarily ignore ethernet tests until prebuilts are updated"
This reverts commit 14f45a3e988e948bb0fda178f184aa4563b1f4eb. Reason for revert: Reenabling tests after prebuilts are updated. Bug: 233824546 Change-Id: I6883ea55dd390e7fe102b735e0b757e838d9eff6 Merged-In: I8e806b3b884f2e0b6c1a1d2fffdb9a99c5dd60e8 (cherry picked from commit 3a7645fc75a16d308a105ef4f57d9f75bd887b43) Merged-In: I6883ea55dd390e7fe102b735e0b757e838d9eff6
Diffstat (limited to 'tests/unit/java/com/android/server/ethernet/EthernetTrackerTest.java')
-rw-r--r--tests/unit/java/com/android/server/ethernet/EthernetTrackerTest.java14
1 files changed, 0 insertions, 14 deletions
diff --git a/tests/unit/java/com/android/server/ethernet/EthernetTrackerTest.java b/tests/unit/java/com/android/server/ethernet/EthernetTrackerTest.java
index e90d55dcf4..93789cabcb 100644
--- a/tests/unit/java/com/android/server/ethernet/EthernetTrackerTest.java
+++ b/tests/unit/java/com/android/server/ethernet/EthernetTrackerTest.java
@@ -60,7 +60,6 @@ import com.android.testutils.HandlerUtils;
import org.junit.After;
import org.junit.Before;
-import org.junit.Ignore;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.ArgumentCaptor;
@@ -114,7 +113,6 @@ public class EthernetTrackerTest {
/**
* Test: Creation of various valid static IP configurations
*/
- @Ignore("TODO: temporarily ignore tests until prebuilts are updated")
@Test
public void createStaticIpConfiguration() {
// Empty gives default StaticIPConfiguration object
@@ -147,7 +145,6 @@ public class EthernetTrackerTest {
/**
* Test: Attempt creation of various bad static IP configurations
*/
- @Ignore("TODO: temporarily ignore tests until prebuilts are updated")
@Test
public void createStaticIpConfiguration_Bad() {
assertStaticConfigurationFails("ip=192.0.2.1/24 gateway= blah=20.20.20.20"); // Unknown key
@@ -191,7 +188,6 @@ public class EthernetTrackerTest {
/**
* Test: Attempt to create a capabilties with various valid sets of capabilities/transports
*/
- @Ignore("TODO: temporarily ignore tests until prebuilts are updated")
@Test
public void createNetworkCapabilities() {
@@ -318,7 +314,6 @@ public class EthernetTrackerTest {
configTransports).build());
}
- @Ignore("TODO: temporarily ignore tests until prebuilts are updated")
@Test
public void testCreateEthernetTrackerConfigReturnsCorrectValue() {
final String capabilities = "2";
@@ -335,14 +330,12 @@ public class EthernetTrackerTest {
assertEquals(transport, config.mTransport);
}
- @Ignore("TODO: temporarily ignore tests until prebuilts are updated")
@Test
public void testCreateEthernetTrackerConfigThrowsNpeWithNullInput() {
assertThrows(NullPointerException.class,
() -> EthernetTracker.createEthernetTrackerConfig(null));
}
- @Ignore("TODO: temporarily ignore tests until prebuilts are updated")
@Test
public void testUpdateConfiguration() {
final NetworkCapabilities capabilities = new NetworkCapabilities.Builder().build();
@@ -360,7 +353,6 @@ public class EthernetTrackerTest {
eq(TEST_IFACE), eq(ipConfig), eq(capabilities), eq(listener));
}
- @Ignore("TODO: temporarily ignore tests until prebuilts are updated")
@Test
public void testConnectNetworkCorrectlyCallsFactory() {
tracker.connectNetwork(TEST_IFACE, NULL_LISTENER);
@@ -370,7 +362,6 @@ public class EthernetTrackerTest {
eq(NULL_LISTENER));
}
- @Ignore("TODO: temporarily ignore tests until prebuilts are updated")
@Test
public void testDisconnectNetworkCorrectlyCallsFactory() {
tracker.disconnectNetwork(TEST_IFACE, NULL_LISTENER);
@@ -380,7 +371,6 @@ public class EthernetTrackerTest {
eq(NULL_LISTENER));
}
- @Ignore("TODO: temporarily ignore tests until prebuilts are updated")
@Test
public void testIsValidTestInterfaceIsFalseWhenTestInterfacesAreNotIncluded() {
final String validIfaceName = TEST_TAP_PREFIX + "123";
@@ -392,7 +382,6 @@ public class EthernetTrackerTest {
assertFalse(isValidTestInterface);
}
- @Ignore("TODO: temporarily ignore tests until prebuilts are updated")
@Test
public void testIsValidTestInterfaceIsFalseWhenTestInterfaceNameIsInvalid() {
final String invalidIfaceName = "123" + TEST_TAP_PREFIX;
@@ -404,7 +393,6 @@ public class EthernetTrackerTest {
assertFalse(isValidTestInterface);
}
- @Ignore("TODO: temporarily ignore tests until prebuilts are updated")
@Test
public void testIsValidTestInterfaceIsTrueWhenTestInterfacesIncludedAndValidName() {
final String validIfaceName = TEST_TAP_PREFIX + "123";
@@ -434,7 +422,6 @@ public class EthernetTrackerTest {
return ifaceParcel;
}
- @Ignore("TODO: temporarily ignore tests until prebuilts are updated")
@Test
public void testListenEthernetStateChange() throws Exception {
tracker.setIncludeTestInterfaces(true);
@@ -487,7 +474,6 @@ public class EthernetTrackerTest {
anyInt(), any());
}
- @Ignore("TODO: temporarily ignore tests until prebuilts are updated")
@Test
public void testListenEthernetStateChange_unsolicitedEventListener() throws Exception {
when(mNetd.interfaceGetList()).thenReturn(new String[] {});