Merge "Support encoding/decoding IkeSessionParams with IKE_OPTION_INITIAL_CONTACT" am: 839597dea5
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1868646 Change-Id: I7d084f653c30257c30e660dda4d5681cd8164a48
This commit is contained in:
committed by
Automerger Merge Worker
commit
b816eaa304
@@ -79,6 +79,7 @@ public final class IkeSessionParamsUtils {
|
||||
IKE_OPTIONS.add(IkeSessionParams.IKE_OPTION_EAP_ONLY_AUTH);
|
||||
IKE_OPTIONS.add(IkeSessionParams.IKE_OPTION_MOBIKE);
|
||||
IKE_OPTIONS.add(IkeSessionParams.IKE_OPTION_FORCE_PORT_4500);
|
||||
IKE_OPTIONS.add(IkeSessionParams.IKE_OPTION_INITIAL_CONTACT);
|
||||
}
|
||||
|
||||
/** Serializes an IkeSessionParams to a PersistableBundle. */
|
||||
|
||||
@@ -135,11 +135,12 @@ public class IkeSessionParamsUtilsTest {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testEncodeRecodeParamsWithIkeOptions() throws Exception {
|
||||
public void testEncodeDecodeParamsWithIkeOptions() throws Exception {
|
||||
final IkeSessionParams params =
|
||||
createBuilderMinimum()
|
||||
.addIkeOption(IkeSessionParams.IKE_OPTION_ACCEPT_ANY_REMOTE_ID)
|
||||
.addIkeOption(IkeSessionParams.IKE_OPTION_MOBIKE)
|
||||
.addIkeOption(IkeSessionParams.IKE_OPTION_INITIAL_CONTACT)
|
||||
.build();
|
||||
verifyPersistableBundleEncodeDecodeIsLossless(params);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user