Merge "Update language to comply with Android's inclusive language guidance" am: 577c469d6b am: 156ea0167e

Original change: https://android-review.googlesource.com/c/platform/cts/+/1373261

Change-Id: I33b66637d645594ab3ba03dd13dea7fa6a9186e1
This commit is contained in:
Chiachang Wang
2020-07-29 06:20:47 +00:00
committed by Automerger Merge Worker

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));
}); });