Pass TrackingReason to NetworkInterfaceState
Because changing the tethering mode invokes addInterface(), the tracking mode for the tethering interface needs to be persisted separately. Test: TH Flag: EXEMPT mainline Bug: 1000001 Change-Id: Ifb8371a55a582bf2133a59bdbedcce95c94626cc
This commit is contained in:
parent
98c1ad6ce6
commit
a2d1cb97fa
1 changed files with 33 additions and 20 deletions
|
|
@ -69,6 +69,7 @@ import org.mockito.ArgumentCaptor;
|
|||
import org.mockito.Mock;
|
||||
import org.mockito.MockitoAnnotations;
|
||||
|
||||
import java.util.EnumSet;
|
||||
import java.util.Objects;
|
||||
|
||||
@SmallTest
|
||||
|
|
@ -232,8 +233,8 @@ public class EthernetNetworkFactoryTest {
|
|||
private void createInterfaceUndergoingProvisioning(
|
||||
EthernetPort port, final int transportType) {
|
||||
final IpConfiguration ipConfig = createDefaultIpConfig();
|
||||
mNetFactory.addInterface(port, ipConfig,
|
||||
createInterfaceCapsBuilder(transportType).build());
|
||||
mNetFactory.addInterface(port, ipConfig, createInterfaceCapsBuilder(transportType).build(),
|
||||
EnumSet.of(EthernetTracker.TrackingReason.REGEX));
|
||||
assertTrue(mNetFactory.updateInterfaceLinkState(port, true));
|
||||
|
||||
ArgumentCaptor<NetworkOfferCallback> captor = ArgumentCaptor.forClass(
|
||||
|
|
|
|||
Loading…
Reference in a new issue