From bcbe3b6bf221bda794e84de444cd3440e7fe2f7b Mon Sep 17 00:00:00 2001 From: Nathan Harold Date: Thu, 14 Dec 2017 14:46:46 -0800 Subject: [PATCH] Fix broken test due to API rename A race condition during an Api rename has caused the name change from reserveSecurityParameterIndex to allocateSecurityParameterIndex to be wrong in a test. Fixing. Bug: 69128142 Test: runtest frameworks-net Change-Id: I12fb9832cb938dc19f463b1f1124127435d7b173 --- .../java/com/android/server/IpSecServiceParameterizedTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/net/java/com/android/server/IpSecServiceParameterizedTest.java b/tests/net/java/com/android/server/IpSecServiceParameterizedTest.java index 963e042f1d..80e42a33b3 100644 --- a/tests/net/java/com/android/server/IpSecServiceParameterizedTest.java +++ b/tests/net/java/com/android/server/IpSecServiceParameterizedTest.java @@ -178,7 +178,7 @@ public class IpSecServiceParameterizedTest { .thenReturn(TEST_SPI_OUT); IpSecSpiResponse spiResp = - mIpSecService.reserveSecurityParameterIndex( + mIpSecService.allocateSecurityParameterIndex( IpSecTransform.DIRECTION_OUT, mRemoteAddr, TEST_SPI_OUT, new Binder()); IpSecService.UserRecord userRecord =