Home
last modified time | relevance | path

Searched refs:MockProvider (Results 1 – 6 of 6) sorted by relevance

/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/
DProvider2Test.java135 MockProvider mockProvider = new MockProvider("MOCKNAME", 1.0, in test_getAlias()
153 public static class MockProvider extends Provider { class in Provider2Test
157 public MockProvider(String name, double version, String info) { in MockProvider() method in Provider2Test.MockProvider
/libcore/luni/src/test/java/libcore/java/security/
DProviderTest.java305 Provider provider = new MockProvider("MockProvider") { in testProviderService_supportsParameter_UnknownService_Success()
323 Provider provider = new MockProvider("MockProvider") { in testProviderService_supportsParameter_KnownService_NoClassInitialization_Success()
350 Provider provider = new MockProvider("MockProvider") { in testProviderService_supportsParameter_TypeDoesNotSupportParameter_Failure()
372 Provider provider = new MockProvider("MockProvider") { in testProviderService_supportsParameter_SupportedKeyClasses_NonKeyClass_Success()
391 Provider provider = new MockProvider("MockProvider") { in testProviderService_supportsParameter_KnownService_NonKey_Failure()
413 Provider provider = new MockProvider("MockProvider") { in testProviderService_supportsParameter_KnownService_SupportedKeyClasses_NonKey_Failure()
435 Provider provider = new MockProvider("MockProvider") { in testProviderService_supportsParameter_KnownService_Null_Failure()
454 Provider provider = new MockProvider("MockProvider") { in testProviderService_supportsParameter_SupportedKeyClasses_Success()
473 Provider provider = new MockProvider("MockProvider") { in testProviderService_supportsParameter_SupportedKeyClasses_Failure()
492 Provider provider = new MockProvider("MockProvider") { in testProviderService_supportsParameter_SupportedKeyFormats_Success()
[all …]
DSignatureTest.java51 private static abstract class MockProvider extends Provider { class in SignatureTest
52 public MockProvider(String name) { in MockProvider() method in SignatureTest.MockProvider
61 Provider mockProvider = new MockProvider("MockProvider") { in testSignature_getInstance_SuppliedProviderNotRegistered_Success()
76 Provider mockProvider = new MockProvider("MockProvider") { in testSignature_getInstance_OnlyUsesSpecifiedProvider_SameNameAndClass_Success()
85 Provider mockProvider2 = new MockProvider("MockProvider") { in testSignature_getInstance_OnlyUsesSpecifiedProvider_SameNameAndClass_Success()
99 Provider mockProviderSpecific = new MockProvider("MockProviderSpecific") { in testSignature_getInstance_DelayedInitialization_KeyType()
105 Provider mockProviderSpecific2 = new MockProvider("MockProviderSpecific2") { in testSignature_getInstance_DelayedInitialization_KeyType()
111 Provider mockProviderAll = new MockProvider("MockProviderAll") { in testSignature_getInstance_DelayedInitialization_KeyType()
219 Provider mockProviderNonSpi = new MockProvider("MockProviderNonSpi") { in testSignature_getProvider_Subclass()
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/
DKeyAgreementTest.java681 private static abstract class MockProvider extends Provider { class in KeyAgreementTest
682 public MockProvider(String name) { in MockProvider() method in KeyAgreementTest.MockProvider
692 Provider mockProvider = new MockProvider("MockProvider") { in testKeyAgreement_getInstance_SuppliedProviderNotRegistered_Success()
707 Provider mockProvider = new MockProvider("MockProvider") { in testKeyAgreement_getInstance_OnlyUsesSpecifiedProvider_SameNameAndClass_Success()
716 Provider mockProvider2 = new MockProvider("MockProvider") { in testKeyAgreement_getInstance_OnlyUsesSpecifiedProvider_SameNameAndClass_Success()
730 Provider mockProviderSpecific = new MockProvider("MockProviderSpecific") { in testKeyAgreement_getInstance_DelayedInitialization_KeyType()
736 Provider mockProviderSpecific2 = new MockProvider("MockProviderSpecific2") { in testKeyAgreement_getInstance_DelayedInitialization_KeyType()
742 Provider mockProviderAll = new MockProvider("MockProviderAll") { in testKeyAgreement_getInstance_DelayedInitialization_KeyType()
DMacTest.java878 private static abstract class MockProvider extends Provider { class in MacTest
879 public MockProvider(String name) { in MockProvider() method in MacTest.MockProvider
888 Provider mockProvider = new MockProvider("MockProvider") { in testMac_getInstance_SuppliedProviderNotRegistered_Success()
903 Provider mockProvider = new MockProvider("MockProvider") { in testMac_getInstance_OnlyUsesSpecifiedProvider_SameNameAndClass_Success()
912 Provider mockProvider2 = new MockProvider("MockProvider") { in testMac_getInstance_OnlyUsesSpecifiedProvider_SameNameAndClass_Success()
926 Provider mockProviderSpecific = new MockProvider("MockProviderSpecific") { in testMac_getInstance_DelayedInitialization_KeyType()
932 Provider mockProviderSpecific2 = new MockProvider("MockProviderSpecific2") { in testMac_getInstance_DelayedInitialization_KeyType()
938 Provider mockProviderAll = new MockProvider("MockProviderAll") { in testMac_getInstance_DelayedInitialization_KeyType()
/libcore/luni/src/test/java/libcore/javax/crypto/
DCipherTest.java827 private static abstract class MockProvider extends Provider { class in CipherTest
828 public MockProvider(String name) { in MockProvider() method in CipherTest.MockProvider
837 Provider mockProvider = new MockProvider("MockProvider") { in testCipher_getInstance_SuppliedProviderNotRegistered_Success()
852 Provider mockProvider = new MockProvider("MockProvider") { in testCipher_getInstance_SuppliedProviderNotRegistered_MultipartTransform_Success()
867 Provider mockProvider = new MockProvider("MockProvider") { in testCipher_getInstance_OnlyUsesSpecifiedProvider_SameNameAndClass_Success()
876 Provider mockProvider2 = new MockProvider("MockProvider") { in testCipher_getInstance_OnlyUsesSpecifiedProvider_SameNameAndClass_Success()
890 Provider mockProviderSpecific = new MockProvider("MockProviderSpecific") { in testCipher_getInstance_DelayedInitialization_KeyType()
896 Provider mockProviderSpecific2 = new MockProvider("MockProviderSpecific2") { in testCipher_getInstance_DelayedInitialization_KeyType()
902 Provider mockProviderAll = new MockProvider("MockProviderAll") { in testCipher_getInstance_DelayedInitialization_KeyType()
965 Provider mockProviderInvalid = new MockProvider("MockProviderInvalid") { in testCipher_getInstance_WrongType_Failure()