Searched refs:mockCaCert (Results 1 – 2 of 2) sorted by relevance
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/ |
D | InsecureEapNetworkHandlerTest.java | 660 CertificateEventInfo mockCaCert = generateMockCertEventInfo(TEST_GEN_CA_CERT); in runServerCertFromTrustStoreTest() local 662 mInsecureEapNetworkHandler.addPendingCertificate(config.networkId, 1, mockCaCert); in runServerCertFromTrustStoreTest() 674 true, false, mockCaCert.getCert(), mockServerCert.getCert(), in runServerCertFromTrustStoreTest() 804 CertificateEventInfo mockCaCert = generateMockCertEventInfo(TEST_GEN_CA_CERT); in verifyTrustOnFirstUseAcceptWhenConnectByUserWithMinimalChain() local 806 mInsecureEapNetworkHandler.addPendingCertificate(config.networkId, 1, mockCaCert); in verifyTrustOnFirstUseAcceptWhenConnectByUserWithMinimalChain() 810 isUserSelected, needUserApproval, mockCaCert.getCert(), mockServerCert.getCert(), in verifyTrustOnFirstUseAcceptWhenConnectByUserWithMinimalChain() 923 CertificateEventInfo mockCaCert = generateMockCertEventInfo(TEST_GEN_CA2_CERT); in verifyOnErrorWithIncompleteChain() local 926 mInsecureEapNetworkHandler.addPendingCertificate(config.networkId, 1, mockCaCert); in verifyOnErrorWithIncompleteChain() 950 CertificateEventInfo mockCaCert = generateMockCertEventInfo(TEST_GEN_FAKE_CA_CERT); in verifyOnErrorWithFakeRootCaCertInTheChain() local 952 mInsecureEapNetworkHandler.addPendingCertificate(config.networkId, 1, mockCaCert); in verifyOnErrorWithFakeRootCaCertInTheChain() [all …]
|
D | WifiConfigManagerTest.java | 8294 X509Certificate mockCaCert = mock(X509Certificate.class); in testUpdateCaCertificateSuccessWithSelfSignedCertificate() local 8295 when(mockCaCert.getBasicConstraints()).thenReturn(-1); in testUpdateCaCertificateSuccessWithSelfSignedCertificate() 8296 assertTrue(mWifiConfigManager.updateCaCertificate(eapPeapNetId, mockCaCert, in testUpdateCaCertificateSuccessWithSelfSignedCertificate() 8301 assertEquals(mockCaCert, config.enterpriseConfig.getCaCertificate()); in testUpdateCaCertificateSuccessWithSelfSignedCertificate() 8325 X509Certificate mockCaCert = mock(X509Certificate.class); in testUpdateCaCertificateFailureWithSelfSignedCertificateAndTofuNotEnabled() local 8326 when(mockCaCert.getBasicConstraints()).thenReturn(-1); in testUpdateCaCertificateFailureWithSelfSignedCertificateAndTofuNotEnabled() 8327 assertFalse(mWifiConfigManager.updateCaCertificate(eapPeapNetId, mockCaCert, in testUpdateCaCertificateFailureWithSelfSignedCertificateAndTofuNotEnabled()
|