diff options
author | Sunil Ravi <sunilravi@google.com> | 2020-08-04 23:46:59 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2020-08-04 23:46:59 +0000 |
commit | 296f72cc1951e2af64fbdd0522f68237353f4d61 (patch) | |
tree | e6d9156863ad3b2e1b9e743bbc268c21d7c05602 /tests | |
parent | ece9f2221fcb68c1f18ab78966e7eb8f5049dfdd (diff) | |
parent | 6c33a7523e332766e47537cd2333c2fab234b44c (diff) |
Merge "Mark FILS akm as EAP in scan result capabilities." into rvc-qpr-dev
Diffstat (limited to 'tests')
4 files changed, 12 insertions, 12 deletions
diff --git a/tests/wifitests/src/com/android/server/wifi/ClientModeImplTest.java b/tests/wifitests/src/com/android/server/wifi/ClientModeImplTest.java index 3048ef3d5..d23925424 100644 --- a/tests/wifitests/src/com/android/server/wifi/ClientModeImplTest.java +++ b/tests/wifitests/src/com/android/server/wifi/ClientModeImplTest.java @@ -4807,8 +4807,8 @@ public class ClientModeImplTest extends WifiBaseTest { * */ private void setupFilsEnabledApInScanResult() { - String caps = "[WPA2-EAP+EAP-SHA256+FILS-SHA256-CCMP]" - + "[RSN-EAP+EAP-SHA256+FILS-SHA256-CCMP][ESS]"; + String caps = "[WPA2-EAP+EAP-SHA256+EAP-FILS-SHA256-CCMP]" + + "[RSN-EAP+EAP-SHA256+EAP-FILS-SHA256-CCMP][ESS]"; ScanResult scanResult = new ScanResult(WifiSsid.createFromAsciiEncoded(sFilsSsid), sFilsSsid, sBSSID, 1245, 0, caps, -78, 2412, 1025, 22, 33, 20, 0, 0, true); ScanResult.InformationElement ie = createIE(ScanResult.InformationElement.EID_SSID, diff --git a/tests/wifitests/src/com/android/server/wifi/WifiMetricsTest.java b/tests/wifitests/src/com/android/server/wifi/WifiMetricsTest.java index c2436a751..d16ef3dcf 100644 --- a/tests/wifitests/src/com/android/server/wifi/WifiMetricsTest.java +++ b/tests/wifitests/src/com/android/server/wifi/WifiMetricsTest.java @@ -586,9 +586,9 @@ public class WifiMetricsTest extends WifiBaseTest { mockScanDetails.add(buildMockScanDetail(false, null, "[WAPI-WAPI-CERT-SMS4-SMS4]", 0)); // Number of scans of R2 networks must be equal to NUM_HOTSPOT2_R2_NETWORK_SCAN_RESULTS mockScanDetails.add(buildMockScanDetail(false, NetworkDetail.HSRelease.R2, - "[WPA-EAP-CCMP+FILS-SHA256-CCMP]", FEATURE_MBO | FEATURE_OCE)); + "[WPA-EAP-CCMP+EAP-FILS-SHA256-CCMP]", FEATURE_MBO | FEATURE_OCE)); mockScanDetails.add(buildMockScanDetail(false, NetworkDetail.HSRelease.R2, - "[WPA2-EAP+FT/EAP-CCMP+FILS-SHA256-CCMP]", 0)); + "[WPA2-EAP+FT/EAP-CCMP+EAP-FILS-SHA256-CCMP]", 0)); // Number of scans of R1 networks must be equal to NUM_HOTSPOT2_R1_NETWORK_SCAN_RESULTS mockScanDetails.add(buildMockScanDetail(false, NetworkDetail.HSRelease.R1, "[WPA-EAP-CCMP]", 0)); diff --git a/tests/wifitests/src/com/android/server/wifi/util/InformationElementUtilTest.java b/tests/wifitests/src/com/android/server/wifi/util/InformationElementUtilTest.java index 77c99a9d1..a0d1da854 100644 --- a/tests/wifitests/src/com/android/server/wifi/util/InformationElementUtilTest.java +++ b/tests/wifitests/src/com/android/server/wifi/util/InformationElementUtilTest.java @@ -663,8 +663,8 @@ public class InformationElementUtilTest extends WifiBaseTest { capabilities.from(ies, beaconCap, true); String result = capabilities.generateCapabilitiesString(); - assertEquals("[WPA2-EAP+EAP-SHA256+FILS-SHA256-CCMP][RSN-EAP+EAP-SHA256+FILS-SHA256-CCMP]", - result); + assertEquals("[WPA2-EAP+EAP-SHA256+EAP-FILS-SHA256-CCMP]" + + "[RSN-EAP+EAP-SHA256+EAP-FILS-SHA256-CCMP]", result); } /** @@ -704,8 +704,8 @@ public class InformationElementUtilTest extends WifiBaseTest { capabilities.from(ies, beaconCap, true); String result = capabilities.generateCapabilitiesString(); - assertEquals("[WPA2-EAP+EAP-SHA256+FILS-SHA384-CCMP][RSN-EAP+EAP-SHA256+FILS-SHA384-CCMP]", - result); + assertEquals("[WPA2-EAP+EAP-SHA256+EAP-FILS-SHA384-CCMP]" + + "[RSN-EAP+EAP-SHA256+EAP-FILS-SHA384-CCMP]", result); } /** diff --git a/tests/wifitests/src/com/android/server/wifi/util/ScanResultUtilTest.java b/tests/wifitests/src/com/android/server/wifi/util/ScanResultUtilTest.java index e58d083c4..00e3a0bd2 100644 --- a/tests/wifitests/src/com/android/server/wifi/util/ScanResultUtilTest.java +++ b/tests/wifitests/src/com/android/server/wifi/util/ScanResultUtilTest.java @@ -211,8 +211,8 @@ public class ScanResultUtilTest extends WifiBaseTest { @Test public void testFilsSha256AkmSupportedNetwork() { final String ssid = "FILS-AP"; - String caps = "[WPA2-EAP+EAP-SHA256+FILS-SHA256-CCMP]" - + "[RSN-EAP+EAP-SHA256+FILS-SHA256-CCMP][ESS]"; + String caps = "[WPA2-EAP+EAP-SHA256+EAP-FILS-SHA256-CCMP]" + + "[RSN-EAP+EAP-SHA256+EAP-FILS-SHA256-CCMP][ESS]"; ScanResult input = new ScanResult(WifiSsid.createFromAsciiEncoded(ssid), ssid, "ab:cd:01:ef:45:89", 1245, 0, caps, -78, 2450, 1025, 22, 33, 20, 0, @@ -231,8 +231,8 @@ public class ScanResultUtilTest extends WifiBaseTest { @Test public void testFilsSha384AkmSupportedNetwork() { final String ssid = "FILS-AP"; - String caps = "[WPA2-EAP+EAP-SHA384+FILS-SHA384-CCMP]" - + "[RSN-EAP+EAP-SHA384+FILS-SHA384-CCMP][ESS]"; + String caps = "[WPA2-EAP+EAP-SHA384+EAP-FILS-SHA384-CCMP]" + + "[RSN-EAP+EAP-SHA384+EAP-FILS-SHA384-CCMP][ESS]"; ScanResult input = new ScanResult(WifiSsid.createFromAsciiEncoded(ssid), ssid, "ab:cd:01:ef:45:89", 1245, 0, caps, -78, 2450, 1025, 22, 33, 20, 0, |