Rename getBypassable to isBypassable
Bug: 262336021 Bug: 256775913 Test: atest FrameworksNetTests Change-Id: I5ac8f4f9a2a64189fc66d3c14af6da201a35e3e2
This commit is contained in:
parent
df91219a9b
commit
2ed983512c
1 changed files with 10 additions and 10 deletions
|
|
@ -94,20 +94,20 @@ public class VpnTransportInfoTest {
|
|||
|
||||
@DevSdkIgnoreRule.IgnoreAfter(Build.VERSION_CODES.TIRAMISU)
|
||||
@Test
|
||||
public void testGetBypassable_beforeU() {
|
||||
public void testIsBypassable_beforeU() {
|
||||
final VpnTransportInfo v = new VpnTransportInfo(VpnManager.TYPE_VPN_PLATFORM, "12345");
|
||||
assertThrows(UnsupportedOperationException.class, () -> v.getBypassable());
|
||||
assertThrows(UnsupportedOperationException.class, () -> v.isBypassable());
|
||||
}
|
||||
|
||||
@DevSdkIgnoreRule.IgnoreUpTo(Build.VERSION_CODES.TIRAMISU)
|
||||
@Test
|
||||
public void testGetBypassable_afterU() {
|
||||
public void testIsBypassable_afterU() {
|
||||
final VpnTransportInfo v = new VpnTransportInfo(VpnManager.TYPE_VPN_PLATFORM, "12345");
|
||||
assertFalse(v.getBypassable());
|
||||
assertFalse(v.isBypassable());
|
||||
|
||||
final VpnTransportInfo v2 =
|
||||
new VpnTransportInfo(VpnManager.TYPE_VPN_PLATFORM, "12345", true, false);
|
||||
assertTrue(v2.getBypassable());
|
||||
assertTrue(v2.isBypassable());
|
||||
}
|
||||
|
||||
@DevSdkIgnoreRule.IgnoreUpTo(Build.VERSION_CODES.TIRAMISU)
|
||||
|
|
|
|||
Loading…
Reference in a new issue