Have NetworkPolicyManagerService create MultipathPolicyTracker
To make connectivity service mainline, this patch makes MultipathPolicyTracker as a submodule of NetworkPolicyManagerService to remove the dependencies of ConnectivityService. Bug: 175015282 Test: FrameworksNetTests Change-Id: I82a7c62069ffd0683deb2f5ce2f99de120a2a16f
This commit is contained in:
@@ -4742,11 +4742,9 @@ public class ConnectivityServiceTest {
|
||||
|
||||
@Test
|
||||
public void testNetworkCallbackMaximum() {
|
||||
// We can only have 99 callbacks, because MultipathPolicyTracker is
|
||||
// already one of them.
|
||||
final int MAX_REQUESTS = 99;
|
||||
final int MAX_REQUESTS = 100;
|
||||
final int CALLBACKS = 89;
|
||||
final int INTENTS = 10;
|
||||
final int INTENTS = 11;
|
||||
assertEquals(MAX_REQUESTS, CALLBACKS + INTENTS);
|
||||
|
||||
NetworkRequest networkRequest = new NetworkRequest.Builder().build();
|
||||
|
||||
Reference in New Issue
Block a user