diff options
author | Cody Kesting <ckesting@google.com> | 2019-08-14 20:12:08 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2019-08-14 20:12:08 +0000 |
commit | 245b55ed3a41b1428ff8ef1f25530037086ae8f4 (patch) | |
tree | 94096b46ca8a56c755ffc960a7ef0736ce9d4c9f /tests/iketests/src/java/com/android/ike/ikev2/IkeSessionStateMachineTest.java | |
parent | f32cda311c18bf7727d54fd275f81009f7b54d78 (diff) | |
parent | d58e65d2198c91469bed5f3f865c21ce69d150fe (diff) | |
download | ike-245b55ed3a41b1428ff8ef1f25530037086ae8f4.tar.gz |
Merge "Require UICC Apptype for authentication in EAP."
Diffstat (limited to 'tests/iketests/src/java/com/android/ike/ikev2/IkeSessionStateMachineTest.java')
-rw-r--r-- | tests/iketests/src/java/com/android/ike/ikev2/IkeSessionStateMachineTest.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/iketests/src/java/com/android/ike/ikev2/IkeSessionStateMachineTest.java b/tests/iketests/src/java/com/android/ike/ikev2/IkeSessionStateMachineTest.java index 3fbc7ad9..3a0eb6d1 100644 --- a/tests/iketests/src/java/com/android/ike/ikev2/IkeSessionStateMachineTest.java +++ b/tests/iketests/src/java/com/android/ike/ikev2/IkeSessionStateMachineTest.java @@ -60,6 +60,7 @@ import android.net.IpSecManager; import android.net.IpSecManager.UdpEncapsulationSocket; import android.os.Looper; import android.os.test.TestLooper; +import android.telephony.TelephonyManager; import com.android.ike.TestUtils; import com.android.ike.eap.EapAuthenticator; @@ -437,7 +438,9 @@ public final class IkeSessionStateMachineTest { mIpSecManager = mMockIpSecTestUtils.getIpSecManager(); mContext = mMockIpSecTestUtils.getContext(); mUdpEncapSocket = mIpSecManager.openUdpEncapsulationSocket(); - mEapSessionConfig = new EapSessionConfig.Builder().setEapSimConfig(EAP_SIM_SUB_ID).build(); + mEapSessionConfig = new EapSessionConfig.Builder() + .setEapSimConfig(EAP_SIM_SUB_ID, TelephonyManager.APPTYPE_USIM) + .build(); mMockEapAuthenticatorFactory = mock(IkeEapAuthenticatorFactory.class); mMockEapAuthenticator = mock(EapAuthenticator.class); |