Make TestableNetworkCallback understand blocked reasons.
This provides some support for tests that want to test the new
onBlockedStatusChanged(Network, int) callback. This cannot be
implemented entirely in TestableNetworkCallback, because in
Kotlin, "override" is a mandatory keyword, but NetworkCallback
(which TestableNetworkCallback inherits from) only has the new
method in S, not R.
The unit tests in the other CL in this topic provide an idea of
how to do this. There may be more elegant ways to do it though.
Bug: 165835257
Test: new ConnectivityServiceTest tests in this topic
Change-Id: Ibdf36a6bc916bf247688c19bfd81f6b62d59bf03
1 file changed
tree: 39090e26fff2f86d2915dc7d941a0224ce6c539a
- staticlibs/