Searched refs:mockServerCert (Results 1 – 2 of 2) sorted by relevance
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/ |
D | InsecureEapNetworkHandlerTest.java | 637 CertificateEventInfo mockServerCert = generateMockCertEventInfo(type); in runServerCertPinningTest() local 638 mInsecureEapNetworkHandler.addPendingCertificate(config.networkId, 0, mockServerCert); in runServerCertPinningTest() 640 true, false, null, mockServerCert.getCert(), in runServerCertPinningTest() 661 CertificateEventInfo mockServerCert = generateMockCertEventInfo(TEST_GEN_SERVER_CERT); in runServerCertFromTrustStoreTest() local 663 mInsecureEapNetworkHandler.addPendingCertificate(config.networkId, 0, mockServerCert); in runServerCertFromTrustStoreTest() 674 true, false, mockCaCert.getCert(), mockServerCert.getCert(), in runServerCertFromTrustStoreTest() 805 CertificateEventInfo mockServerCert = generateMockCertEventInfo(TEST_GEN_SERVER_CERT); in verifyTrustOnFirstUseAcceptWhenConnectByUserWithMinimalChain() local 807 mInsecureEapNetworkHandler.addPendingCertificate(config.networkId, 0, mockServerCert); in verifyTrustOnFirstUseAcceptWhenConnectByUserWithMinimalChain() 810 isUserSelected, needUserApproval, mockCaCert.getCert(), mockServerCert.getCert(), in verifyTrustOnFirstUseAcceptWhenConnectByUserWithMinimalChain() 925 CertificateEventInfo mockServerCert = generateMockCertEventInfo(TEST_GEN_SERVER_CERT); in verifyOnErrorWithIncompleteChain() local [all …]
|
D | WifiConfigManagerTest.java | 8197 X509Certificate mockServerCert = mock(X509Certificate.class); in testUpdateCaCertificateWithoutAltSubjectNames() local 8199 when(mockServerCert.getSubjectX500Principal()).thenReturn(mockSubjectDn); in testUpdateCaCertificateWithoutAltSubjectNames() 8204 mockServerCert, "1234", false)); in testUpdateCaCertificateWithoutAltSubjectNames() 8223 X509Certificate mockServerCert = mock(X509Certificate.class); in testUpdateCaCertificateWithAltSubjectNames() local 8225 when(mockServerCert.getSubjectX500Principal()).thenReturn(mockSubjectPrincipal); in testUpdateCaCertificateWithAltSubjectNames() 8239 when(mockServerCert.getSubjectAlternativeNames()).thenReturn(altNames); in testUpdateCaCertificateWithAltSubjectNames() 8242 mockServerCert, "1234", false)); in testUpdateCaCertificateWithAltSubjectNames() 8280 X509Certificate mockServerCert = mock(X509Certificate.class); in testUpdateCaCertificateFaiulreInvalidArgument() local 8282 when(mockServerCert.getSubjectX500Principal()).thenReturn(mockSubjectPrincipal); in testUpdateCaCertificateFaiulreInvalidArgument() 8285 mockServerCert, "1234", false)); in testUpdateCaCertificateFaiulreInvalidArgument()
|