Searched refs:mockProvider (Results 1 – 5 of 5) sorted by relevance
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/ |
D | Provider2Test.java | 135 MockProvider mockProvider = new MockProvider("MOCKNAME", 1.0, in test_getAlias() local 137 Provider.Service service = new Provider.Service(mockProvider, in test_getAlias() 139 mockProvider.putService(service); in test_getAlias() 140 Security.addProvider(mockProvider); in test_getAlias()
|
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/ |
D | KeyAgreementTest.java | 692 Provider mockProvider = new MockProvider("MockProvider") { in testKeyAgreement_getInstance_SuppliedProviderNotRegistered_Success() local 699 KeyAgreement s = KeyAgreement.getInstance("FOO", mockProvider); in testKeyAgreement_getInstance_SuppliedProviderNotRegistered_Success() 701 assertEquals(mockProvider, s.getProvider()); in testKeyAgreement_getInstance_SuppliedProviderNotRegistered_Success() 707 Provider mockProvider = new MockProvider("MockProvider") { in testKeyAgreement_getInstance_OnlyUsesSpecifiedProvider_SameNameAndClass_Success() local 713 Security.addProvider(mockProvider); in testKeyAgreement_getInstance_OnlyUsesSpecifiedProvider_SameNameAndClass_Success() 725 Security.removeProvider(mockProvider.getName()); in testKeyAgreement_getInstance_OnlyUsesSpecifiedProvider_SameNameAndClass_Success()
|
D | MacTest.java | 888 Provider mockProvider = new MockProvider("MockProvider") { in testMac_getInstance_SuppliedProviderNotRegistered_Success() local 895 Mac s = Mac.getInstance("FOO", mockProvider); in testMac_getInstance_SuppliedProviderNotRegistered_Success() 897 assertEquals(mockProvider, s.getProvider()); in testMac_getInstance_SuppliedProviderNotRegistered_Success() 903 Provider mockProvider = new MockProvider("MockProvider") { in testMac_getInstance_OnlyUsesSpecifiedProvider_SameNameAndClass_Success() local 909 Security.addProvider(mockProvider); in testMac_getInstance_OnlyUsesSpecifiedProvider_SameNameAndClass_Success() 921 Security.removeProvider(mockProvider.getName()); in testMac_getInstance_OnlyUsesSpecifiedProvider_SameNameAndClass_Success()
|
/libcore/luni/src/test/java/libcore/java/security/ |
D | SignatureTest.java | 61 Provider mockProvider = new MockProvider("MockProvider") { in testSignature_getInstance_SuppliedProviderNotRegistered_Success() local 68 Signature s = Signature.getInstance("FOO", mockProvider); in testSignature_getInstance_SuppliedProviderNotRegistered_Success() 70 assertEquals(mockProvider, s.getProvider()); in testSignature_getInstance_SuppliedProviderNotRegistered_Success() 76 Provider mockProvider = new MockProvider("MockProvider") { in testSignature_getInstance_OnlyUsesSpecifiedProvider_SameNameAndClass_Success() local 82 Security.addProvider(mockProvider); in testSignature_getInstance_OnlyUsesSpecifiedProvider_SameNameAndClass_Success() 94 Security.removeProvider(mockProvider.getName()); in testSignature_getInstance_OnlyUsesSpecifiedProvider_SameNameAndClass_Success()
|
/libcore/luni/src/test/java/libcore/javax/crypto/ |
D | CipherTest.java | 837 Provider mockProvider = new MockProvider("MockProvider") { in testCipher_getInstance_SuppliedProviderNotRegistered_Success() local 844 Cipher c = Cipher.getInstance("FOO", mockProvider); in testCipher_getInstance_SuppliedProviderNotRegistered_Success() 846 assertEquals(mockProvider, c.getProvider()); in testCipher_getInstance_SuppliedProviderNotRegistered_Success() 852 Provider mockProvider = new MockProvider("MockProvider") { in testCipher_getInstance_SuppliedProviderNotRegistered_MultipartTransform_Success() local 859 Cipher c = Cipher.getInstance("FOO/FOO/FOO", mockProvider); in testCipher_getInstance_SuppliedProviderNotRegistered_MultipartTransform_Success() 861 assertEquals(mockProvider, c.getProvider()); in testCipher_getInstance_SuppliedProviderNotRegistered_MultipartTransform_Success() 867 Provider mockProvider = new MockProvider("MockProvider") { in testCipher_getInstance_OnlyUsesSpecifiedProvider_SameNameAndClass_Success() local 873 Security.addProvider(mockProvider); in testCipher_getInstance_OnlyUsesSpecifiedProvider_SameNameAndClass_Success() 885 Security.removeProvider(mockProvider.getName()); in testCipher_getInstance_OnlyUsesSpecifiedProvider_SameNameAndClass_Success()
|