summaryrefslogtreecommitdiffstats
path: root/tests/wifitests/src/com/android/server/wifi/WifiConfigurationTestUtil.java
diff options
context:
space:
mode:
authorRoshan Pius <rpius@google.com>2016-09-02 21:48:34 -0700
committerRoshan Pius <rpius@google.com>2016-09-06 10:34:02 -0700
commit241605aebc6a8f55624026e8b72246bceb1c2ac2 (patch)
treea00371dda6ff5d9a2bba64d28cfce91fc16fecb2 /tests/wifitests/src/com/android/server/wifi/WifiConfigurationTestUtil.java
parentd83ef7d8c4948afc328d8ef0e746b32c195f271e (diff)
downloadandroid_frameworks_opt_net_wifi-241605aebc6a8f55624026e8b72246bceb1c2ac2.tar.gz
android_frameworks_opt_net_wifi-241605aebc6a8f55624026e8b72246bceb1c2ac2.tar.bz2
android_frameworks_opt_net_wifi-241605aebc6a8f55624026e8b72246bceb1c2ac2.zip
XmlUtil: Add couple of missing elements in WifiConfiguration
Add the cipher elements missing in the serialization/deserialization of WifiConfiguration data. These fields generally have a default value set in wpa_supplicant and so it wasn't detected earlier. Also, add the missing requirePMF field. BUG: 31246524 TEST: Unit tests TEST: Verified that we can still connect to an EAP TLS network after reboot. Change-Id: I7bf1850738f15ec9d25b32521312db0b678c1e19
Diffstat (limited to 'tests/wifitests/src/com/android/server/wifi/WifiConfigurationTestUtil.java')
-rw-r--r--tests/wifitests/src/com/android/server/wifi/WifiConfigurationTestUtil.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/wifitests/src/com/android/server/wifi/WifiConfigurationTestUtil.java b/tests/wifitests/src/com/android/server/wifi/WifiConfigurationTestUtil.java
index 978da9672..55ca4cea4 100644
--- a/tests/wifitests/src/com/android/server/wifi/WifiConfigurationTestUtil.java
+++ b/tests/wifitests/src/com/android/server/wifi/WifiConfigurationTestUtil.java
@@ -369,9 +369,12 @@ public class WifiConfigurationTestUtil {
assertEquals(expected.wepKeys, actual.wepKeys);
assertEquals(expected.wepTxKeyIndex, actual.wepTxKeyIndex);
assertEquals(expected.hiddenSSID, actual.hiddenSSID);
+ assertEquals(expected.requirePMF, actual.requirePMF);
assertEquals(expected.allowedKeyManagement, actual.allowedKeyManagement);
assertEquals(expected.allowedProtocols, actual.allowedProtocols);
assertEquals(expected.allowedAuthAlgorithms, actual.allowedAuthAlgorithms);
+ assertEquals(expected.allowedGroupCiphers, actual.allowedGroupCiphers);
+ assertEquals(expected.allowedPairwiseCiphers, actual.allowedPairwiseCiphers);
assertEquals(expected.shared, actual.shared);
assertEquals(expected.getIpConfiguration(), actual.getIpConfiguration());
}