Merge "Revert "Send empty LinkProperties when entering StoppedState."" am: e339662247

am: 66c8516600

Change-Id: I9c7175d9e2db45780f14630db43a6ab5672dfe3d
This commit is contained in:
Roshan Pius
2017-12-09 01:58:08 +00:00
committed by android-build-merger
2 changed files with 2 additions and 9 deletions

View File

@@ -163,10 +163,10 @@ public class IpClient extends StateMachine {
// TODO: Find an lighter weight approach.
private class LoggingCallbackWrapper extends Callback {
private static final String PREFIX = "INVOKE ";
private final Callback mCallback;
private Callback mCallback;
public LoggingCallbackWrapper(Callback callback) {
mCallback = (callback != null) ? callback : new Callback();
mCallback = callback;
}
private void log(String msg) {
@@ -1283,7 +1283,6 @@ public class IpClient extends StateMachine {
stopAllIP();
resetLinkProperties();
mCallback.onLinkPropertiesChange(new LinkProperties(mLinkProperties));
if (mStartTimeMillis > 0) {
recordMetric(IpManagerEvent.COMPLETE_LIFECYCLE);
mStartTimeMillis = 0;

View File

@@ -69,8 +69,6 @@ import java.util.Set;
/**
* Tests for IpManager.
*
* TODO: Rename to IpClientTest.
*/
@RunWith(AndroidJUnit4.class)
@SmallTest
@@ -113,10 +111,6 @@ public class IpManagerTest {
verify(mNMService, times(1)).registerObserver(arg.capture());
mObserver = arg.getValue();
reset(mNMService);
final LinkProperties emptyLp = new LinkProperties();
emptyLp.setInterfaceName(ifname);
verify(mCb, timeout(100)).onLinkPropertiesChange(eq(emptyLp));
reset(mCb);
return ipm;
}