Test passing null cert/keys to WifiEnterpriseConfig am: 88b3c589ad am: cb79016b16 am: 3bac61ac86
am: 96c87f7a9b
Change-Id: Iddf9cb68c3026d6fdec0550a4b7f1a6c84f6139d
This commit is contained in:
@@ -86,6 +86,16 @@ public class WifiEnterpriseConfigTest {
|
||||
assertTrue(result[0] == cert0 && result[1] == cert1);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testSetClientKeyEntryWithNull() {
|
||||
mEnterpriseConfig.setClientKeyEntry(null, null);
|
||||
assertEquals(null, mEnterpriseConfig.getClientCertificateChain());
|
||||
assertEquals(null, mEnterpriseConfig.getClientCertificate());
|
||||
mEnterpriseConfig.setClientKeyEntryWithCertificateChain(null, null);
|
||||
assertEquals(null, mEnterpriseConfig.getClientCertificateChain());
|
||||
assertEquals(null, mEnterpriseConfig.getClientCertificate());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testSetClientCertificateChain() {
|
||||
PrivateKey clientKey = FakeKeys.RSA_KEY1;
|
||||
|
||||
Reference in New Issue
Block a user