Crash bad callers earlier
Instead of crashing when parceling the NetworkInfo object, crash at the time the bad call is made. Bug: 145972387 Test: FrameworksNetTests Change-Id: If8b5fd3d7b800c97211bcd16c9a8c5812708d4ab
This commit is contained in:
@@ -109,8 +109,8 @@ public class Nat464XlatTest {
|
||||
|
||||
mNai.linkProperties = new LinkProperties();
|
||||
mNai.linkProperties.setInterfaceName(BASE_IFACE);
|
||||
mNai.networkInfo = new NetworkInfo(null);
|
||||
mNai.networkInfo.setType(ConnectivityManager.TYPE_WIFI);
|
||||
mNai.networkInfo = new NetworkInfo(ConnectivityManager.TYPE_WIFI, 0 /* subtype */,
|
||||
null /* typeName */, null /* subtypeName */);
|
||||
mNai.networkCapabilities = new NetworkCapabilities();
|
||||
markNetworkConnected();
|
||||
when(mNai.connService()).thenReturn(mConnectivity);
|
||||
|
||||
Reference in New Issue
Block a user