1 /**
2  * @license
3  * Copyright 2016 Google Inc. All rights reserved.
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *   http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 package com.google.security.wycheproof;
18 
19 import com.google.security.wycheproof.WycheproofRunner.Fast;
20 import com.google.security.wycheproof.WycheproofRunner.Provider;
21 import com.google.security.wycheproof.WycheproofRunner.ProviderType;
22 // Android-changed: Update import to account for jarjar
23 import com.android.internal.org.bouncycastle.jce.provider.BouncyCastleProvider;
24 import org.junit.BeforeClass;
25 import org.junit.runner.RunWith;
26 import org.junit.runners.Suite.SuiteClasses;
27 
28 /**
29  * BouncyCastleTest excludes {@code @SlowTest} tests.
30  */
31 @RunWith(WycheproofRunner.class)
32 @SuiteClasses({
33   AesEaxTest.class,
34   AesGcmTest.class,
35   BasicTest.class,
36   CipherInputStreamTest.class,
37   CipherOutputStreamTest.class,
38   DhTest.class,
39   DhiesTest.class,
40   DsaTest.class,
41   EciesTest.class,
42 })
43 @Provider(ProviderType.BOUNCY_CASTLE)
44 @Fast
45 public final class BouncyCastleTest {
46   @BeforeClass
setUp()47   public static void setUp() throws Exception {
48     TestUtil.installOnlyThisProvider(new BouncyCastleProvider());
49   }
50 }
51