Home
last modified time | relevance | path

Searched refs:expectedTries (Results 1 – 1 of 1) sorted by relevance

/packages/modules/NetworkStack/tests/unit/src/android/net/shared/
DNetdUtilsTest.java90 private void verifyTetherInterfaceSucceeds(int expectedTries) throws Exception { in verifyTetherInterfaceSucceeds() argument
91 setNetworkAddInterfaceOutcome(null, expectedTries); in verifyTetherInterfaceSucceeds()
95 verify(mNetd, times(expectedTries)).networkAddInterface(LOCAL_NET_ID, IFACE_NAME); in verifyTetherInterfaceSucceeds()
110 private void runTetherInterfaceWithServiceSpecificException(int expectedTries, in runTetherInterfaceWithServiceSpecificException() argument
112 setNetworkAddInterfaceOutcome(new ServiceSpecificException(expectedCode), expectedTries); in runTetherInterfaceWithServiceSpecificException()
121 verifyNetworkAddInterfaceFails(expectedTries); in runTetherInterfaceWithServiceSpecificException()
125 private void runTetherInterfaceWithRemoteException(int expectedTries) throws Exception { in runTetherInterfaceWithRemoteException() argument
126 setNetworkAddInterfaceOutcome(new RemoteException(), expectedTries); in runTetherInterfaceWithRemoteException()
133 verifyNetworkAddInterfaceFails(expectedTries); in runTetherInterfaceWithRemoteException()
137 private void verifyNetworkAddInterfaceFails(int expectedTries) throws Exception { in verifyNetworkAddInterfaceFails() argument
[all …]