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.Provider;
20 import com.google.security.wycheproof.WycheproofRunner.ProviderType;
21 // Android-changed: Update import to account for jarjar
22 import com.android.internal.org.bouncycastle.jce.provider.BouncyCastleProvider;
23 import org.junit.BeforeClass;
24 import org.junit.runner.RunWith;
25 import org.junit.runners.Suite.SuiteClasses;
26 
27 /**
28  * BouncyCastleAllTests runs all tests.
29  */
30 @RunWith(WycheproofRunner.class)
31 @SuiteClasses({
32   AesEaxTest.class,
33   AesGcmTest.class,
34   BasicTest.class,
35   CipherInputStreamTest.class,
36   CipherOutputStreamTest.class,
37   DhTest.class,
38   DhiesTest.class,
39   DsaTest.class,
40   EciesTest.class,
41 })
42 @Provider(ProviderType.BOUNCY_CASTLE)
43 public final class BouncyCastleAllTests {
44   @BeforeClass
setUp()45   public static void setUp() throws Exception {
46     TestUtil.installOnlyThisProvider(new BouncyCastleProvider());
47   }
48 }
49