Home
last modified time | relevance | path

Searched refs:mockProvider2 (Results 1 – 4 of 4) sorted by relevance

/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/
DKeyAgreementTest.java716 Provider mockProvider2 = new MockProvider("MockProvider") { in testKeyAgreement_getInstance_OnlyUsesSpecifiedProvider_SameNameAndClass_Success() local
721 KeyAgreement s = KeyAgreement.getInstance("FOO", mockProvider2); in testKeyAgreement_getInstance_OnlyUsesSpecifiedProvider_SameNameAndClass_Success()
722 assertEquals(mockProvider2, s.getProvider()); in testKeyAgreement_getInstance_OnlyUsesSpecifiedProvider_SameNameAndClass_Success()
DMacTest.java912 Provider mockProvider2 = new MockProvider("MockProvider") { in testMac_getInstance_OnlyUsesSpecifiedProvider_SameNameAndClass_Success() local
917 Mac s = Mac.getInstance("FOO", mockProvider2); in testMac_getInstance_OnlyUsesSpecifiedProvider_SameNameAndClass_Success()
918 assertEquals(mockProvider2, s.getProvider()); in testMac_getInstance_OnlyUsesSpecifiedProvider_SameNameAndClass_Success()
/libcore/luni/src/test/java/libcore/java/security/
DSignatureTest.java85 Provider mockProvider2 = new MockProvider("MockProvider") { in testSignature_getInstance_OnlyUsesSpecifiedProvider_SameNameAndClass_Success() local
90 Signature s = Signature.getInstance("FOO", mockProvider2); in testSignature_getInstance_OnlyUsesSpecifiedProvider_SameNameAndClass_Success()
91 assertEquals(mockProvider2, s.getProvider()); in testSignature_getInstance_OnlyUsesSpecifiedProvider_SameNameAndClass_Success()
/libcore/luni/src/test/java/libcore/javax/crypto/
DCipherTest.java876 Provider mockProvider2 = new MockProvider("MockProvider") { in testCipher_getInstance_OnlyUsesSpecifiedProvider_SameNameAndClass_Success() local
881 Cipher c = Cipher.getInstance("FOO", mockProvider2); in testCipher_getInstance_OnlyUsesSpecifiedProvider_SameNameAndClass_Success()
882 assertEquals(mockProvider2, c.getProvider()); in testCipher_getInstance_OnlyUsesSpecifiedProvider_SameNameAndClass_Success()