Fix a bug where any() returns null
The type needs to be specified Test: NetworkAgentTest Change-Id: I7128ae520cb7175f1fb9467a94edfd1a4bdeb9da
This commit is contained in:
parent
c162fc297f
commit
1705798d13
1 changed files with 2 additions and 1 deletions
|
|
@ -44,6 +44,7 @@ import android.net.NetworkCapabilities.TRANSPORT_VPN
|
|||
import android.net.NetworkInfo
|
||||
import android.net.NetworkProvider
|
||||
import android.net.NetworkRequest
|
||||
import android.net.NetworkScore
|
||||
import android.net.RouteInfo
|
||||
import android.net.SocketKeepalive
|
||||
import android.net.Uri
|
||||
|
|
@ -631,7 +632,7 @@ class NetworkAgentTest {
|
|||
argThat<NetworkInfo> { it.detailedState == NetworkInfo.DetailedState.CONNECTING },
|
||||
any(LinkProperties::class.java),
|
||||
any(NetworkCapabilities::class.java),
|
||||
any() /* score */,
|
||||
any(NetworkScore::class.java),
|
||||
any(NetworkAgentConfig::class.java),
|
||||
eq(NetworkProvider.ID_NONE))
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue