Clarify UDP encapsulation socket API
This change updates the getSocket() methods for IPsec to improve clarity of the return types, both for public APIs, and internal-only methods. Bug: 72473753 Test: APIs updated, CTS + unit tests ran. Merged-In: I0afebd432c5d04c47c93daa1ce616d712aa323d7 Change-Id: I0afebd432c5d04c47c93daa1ce616d712aa323d7 (cherry picked from commit 4c987ebade580d4abc8a3d549e0df90baab33140)
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