Merge "Clarify UDP encapsulation socket API"
am: db1e624ee1
Change-Id: Ie1e7ea81440afee2618211d989989cf5daff3e1e
This commit is contained in:
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user