Merge "Set extraInfo on cellular TestNetworkAgents."
This commit is contained in:
@@ -718,7 +718,7 @@ public class ConnectivityServiceTest {
|
||||
|
||||
@Override
|
||||
protected InstrumentedNetworkAgent makeNetworkAgent(LinkProperties linkProperties,
|
||||
final int type, final String typeName) throws Exception {
|
||||
NetworkAgentConfig nac) throws Exception {
|
||||
mNetworkMonitor = mock(INetworkMonitor.class);
|
||||
|
||||
final Answer validateAnswer = inv -> {
|
||||
@@ -737,8 +737,8 @@ public class ConnectivityServiceTest {
|
||||
any() /* name */,
|
||||
nmCbCaptor.capture());
|
||||
|
||||
final InstrumentedNetworkAgent na = new InstrumentedNetworkAgent(this, linkProperties,
|
||||
type, typeName) {
|
||||
final InstrumentedNetworkAgent na =
|
||||
new InstrumentedNetworkAgent(this, linkProperties, nac) {
|
||||
@Override
|
||||
public void networkStatus(int status, String redirectUrl) {
|
||||
mRedirectUrl = redirectUrl;
|
||||
|
||||
Reference in New Issue
Block a user