Merge "Add a Builder to NetworkAgentConfig, and make it SystemApi."
This commit is contained in:
committed by
Android (Google) Code Review
commit
640fa9a6ac
@@ -35,7 +35,6 @@ import android.net.ConnectivityManager;
|
||||
import android.net.IDnsResolver;
|
||||
import android.net.INetd;
|
||||
import android.net.Network;
|
||||
import android.net.NetworkAgentConfig;
|
||||
import android.net.NetworkCapabilities;
|
||||
import android.net.NetworkInfo;
|
||||
import android.net.NetworkProvider;
|
||||
@@ -75,7 +74,6 @@ public class LingerMonitorTest {
|
||||
@Mock INetd mNetd;
|
||||
@Mock INetworkManagementService mNMS;
|
||||
@Mock Context mCtx;
|
||||
@Mock NetworkAgentConfig mAgentConfig;
|
||||
@Mock NetworkNotificationManager mNotifier;
|
||||
@Mock Resources mResources;
|
||||
|
||||
@@ -358,7 +356,7 @@ public class LingerMonitorTest {
|
||||
NetworkScore ns = new NetworkScore();
|
||||
ns.putIntExtension(NetworkScore.LEGACY_SCORE, 50);
|
||||
NetworkAgentInfo nai = new NetworkAgentInfo(null, null, new Network(netId), info, null,
|
||||
caps, ns, mCtx, null, mAgentConfig, mConnService, mNetd, mDnsResolver, mNMS,
|
||||
caps, ns, mCtx, null, null /* config */, mConnService, mNetd, mDnsResolver, mNMS,
|
||||
NetworkProvider.ID_NONE);
|
||||
nai.everValidated = true;
|
||||
return nai;
|
||||
|
||||
@@ -63,7 +63,6 @@ public class Nat464XlatTest {
|
||||
static final int NETID = 42;
|
||||
|
||||
@Mock ConnectivityService mConnectivity;
|
||||
@Mock NetworkAgentConfig mAgentConfig;
|
||||
@Mock IDnsResolver mDnsResolver;
|
||||
@Mock INetd mNetd;
|
||||
@Mock INetworkManagementService mNms;
|
||||
@@ -72,6 +71,7 @@ public class Nat464XlatTest {
|
||||
|
||||
TestLooper mLooper;
|
||||
Handler mHandler;
|
||||
NetworkAgentConfig mAgentConfig = new NetworkAgentConfig();
|
||||
|
||||
Nat464Xlat makeNat464Xlat() {
|
||||
return new Nat464Xlat(mNai, mNetd, mDnsResolver, mNms) {
|
||||
|
||||
Reference in New Issue
Block a user