Merge "Clarify UDP encapsulation socket API"

This commit is contained in:
Lorenzo Colitti
2018-03-30 04:58:47 +00:00
committed by Gerrit Code Review

View File

@@ -179,7 +179,7 @@ public class IpSecManagerTest {
IpSecManager.UdpEncapsulationSocket encapSocket = IpSecManager.UdpEncapsulationSocket encapSocket =
mIpSecManager.openUdpEncapsulationSocket(TEST_UDP_ENCAP_PORT); mIpSecManager.openUdpEncapsulationSocket(TEST_UDP_ENCAP_PORT);
assertNotNull(encapSocket.getSocket()); assertNotNull(encapSocket.getFileDescriptor());
assertEquals(TEST_UDP_ENCAP_PORT, encapSocket.getPort()); assertEquals(TEST_UDP_ENCAP_PORT, encapSocket.getPort());
encapSocket.close(); encapSocket.close();
@@ -202,7 +202,7 @@ public class IpSecManagerTest {
IpSecManager.UdpEncapsulationSocket encapSocket = IpSecManager.UdpEncapsulationSocket encapSocket =
mIpSecManager.openUdpEncapsulationSocket(); mIpSecManager.openUdpEncapsulationSocket();
assertNotNull(encapSocket.getSocket()); assertNotNull(encapSocket.getFileDescriptor());
assertEquals(TEST_UDP_ENCAP_PORT, encapSocket.getPort()); assertEquals(TEST_UDP_ENCAP_PORT, encapSocket.getPort());
encapSocket.close(); encapSocket.close();