Merge "Update language to comply with Android's inclusive language guidance"

This commit is contained in:
Chiachang Wang
2020-07-29 05:44:57 +00:00
committed by Gerrit Code Review

View File

@@ -352,8 +352,8 @@ public class ConnectivityManagerTest {
wifiAddressString, wifiNetwork, cellNetwork), wifiAddressString, wifiNetwork, cellNetwork),
wifiAddressString.equals(cellAddressString)); wifiAddressString.equals(cellAddressString));
// Sanity check that the IP addresses that the requests appeared to come from // Verify that the IP addresses that the requests appeared to come from are actually on the
// are actually on the respective networks. // respective networks.
assertOnNetwork(wifiAddressString, wifiNetwork); assertOnNetwork(wifiAddressString, wifiNetwork);
assertOnNetwork(cellAddressString, cellNetwork); assertOnNetwork(cellAddressString, cellNetwork);
@@ -709,7 +709,7 @@ public class ConnectivityManagerTest {
private void assertMultipathPreferenceIsEventually(Network network, int oldValue, private void assertMultipathPreferenceIsEventually(Network network, int oldValue,
int expectedValue) { int expectedValue) {
// Sanity check : if oldValue == expectedValue, there is no way to guarantee the test // Quick check : if oldValue == expectedValue, there is no way to guarantee the test
// is not flaky. // is not flaky.
assertNotSame(oldValue, expectedValue); assertNotSame(oldValue, expectedValue);
@@ -1013,7 +1013,7 @@ public class ConnectivityManagerTest {
// NAT-T keepalive. If keepalive limits from resource overlay is not zero, TCP keepalive // NAT-T keepalive. If keepalive limits from resource overlay is not zero, TCP keepalive
// needs to be supported except if the kernel doesn't support it. // needs to be supported except if the kernel doesn't support it.
if (!isTcpKeepaliveSupportedByKernel()) { if (!isTcpKeepaliveSupportedByKernel()) {
// Sanity check to ensure the callback result is expected. // Verify that the callback result is expected.
runWithShellPermissionIdentity(() -> { runWithShellPermissionIdentity(() -> {
assertEquals(0, createConcurrentSocketKeepalives(network, srcAddr, 0, 1)); assertEquals(0, createConcurrentSocketKeepalives(network, srcAddr, 0, 1));
}); });