ethernet: remove unit test cases that have end-to-end coverage
The removed test cases already have coverage in EthernetManagerTest and are therefore removed. The removed tests should all be covered by testNetworkRequest_withSingleExistingInterface. Test: atest EthernetManagerTest Change-Id: I5e23fc17ab10429dfb10477ff9ba546db37727ea
This commit is contained in:
@@ -305,35 +305,6 @@ public class EthernetNetworkFactoryTest {
|
||||
verify(mIpClient).shutdown();
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testUpdateInterfaceLinkStateForProvisionedInterface() throws Exception {
|
||||
initEthernetNetworkFactory();
|
||||
createAndVerifyProvisionedInterface(TEST_IFACE);
|
||||
|
||||
final boolean retDown = mNetFactory.updateInterfaceLinkState(TEST_IFACE, false /* up */);
|
||||
|
||||
assertTrue(retDown);
|
||||
verifyStop();
|
||||
|
||||
final boolean retUp = mNetFactory.updateInterfaceLinkState(TEST_IFACE, true /* up */);
|
||||
|
||||
assertTrue(retUp);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testUpdateInterfaceLinkStateForUnprovisionedInterface() throws Exception {
|
||||
initEthernetNetworkFactory();
|
||||
createUnprovisionedInterface(TEST_IFACE);
|
||||
|
||||
final boolean ret = mNetFactory.updateInterfaceLinkState(TEST_IFACE, false /* up */);
|
||||
|
||||
assertTrue(ret);
|
||||
// There should not be an active IPClient or NetworkAgent.
|
||||
verify(mDeps, never()).makeIpClient(any(), any(), any());
|
||||
verify(mDeps, never())
|
||||
.makeEthernetNetworkAgent(any(), any(), any(), any(), any(), any(), any());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testUpdateInterfaceLinkStateForNonExistingInterface() throws Exception {
|
||||
initEthernetNetworkFactory();
|
||||
@@ -345,17 +316,6 @@ public class EthernetNetworkFactoryTest {
|
||||
verifyNoStopOrStart();
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testUpdateInterfaceLinkStateWithNoChanges() throws Exception {
|
||||
initEthernetNetworkFactory();
|
||||
createAndVerifyProvisionedInterface(TEST_IFACE);
|
||||
|
||||
final boolean ret = mNetFactory.updateInterfaceLinkState(TEST_IFACE, true /* up */);
|
||||
|
||||
assertFalse(ret);
|
||||
verifyNoStopOrStart();
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testProvisioningLoss() throws Exception {
|
||||
initEthernetNetworkFactory();
|
||||
|
||||
Reference in New Issue
Block a user