OLD | NEW |
1 # Copyright 2016 The Chromium Authors. All rights reserved. | 1 # Copyright 2016 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 # This file is for proguard flags which are applied to the combined test and | 5 # This file is for proguard flags which are applied to the combined test and |
6 # tested code. Do not put any flags in this file which might affect the | 6 # tested code. Do not put any flags in this file which might affect the |
7 # correctness of the .apk we are testing, since it will apply to that .apk as | 7 # correctness of the .apk we are testing, since it will apply to that .apk as |
8 # well. | 8 # well. |
9 | 9 |
10 # Keep all junit3 tests | 10 # Keep all junit3 tests |
11 -keep class * extends junit.framework.TestCase { | 11 -keep class * extends junit.framework.TestCase { |
12 *; | 12 *; |
13 } | 13 } |
14 | 14 |
15 # Keep all junit4 tests | 15 # Keep all junit4 tests |
16 -keep @**.RunWith class * { | 16 -keep @**.RunWith class * { |
17 *; | 17 *; |
18 } | 18 } |
19 | 19 |
20 # Keep any class inherited from junit Runner since their constructor is called | 20 # Keep any class inherited from junit Runner since their constructor is called |
21 # reflectively | 21 # reflectively |
22 -keep class * extends org.junit.runner.Runner { | 22 -keep class * extends org.junit.runner.Runner { |
23 *; | 23 *; |
24 } | 24 } |
25 | 25 |
| 26 # Keey any annotation used by tests for instrumentation runner to list out |
| 27 # test annotation information |
| 28 -keep @interface android.support.test.** |
| 29 -keep @interface org.chromium.base.test.** |
| 30 -keep @interface org.junit.** |
| 31 -keep @interface android.test.** |
| 32 |
26 # We have some "library class WebView depends on program class SslCertificate" | 33 # We have some "library class WebView depends on program class SslCertificate" |
27 # warnings, and they don't affect us. | 34 # warnings, and they don't affect us. |
28 -dontwarn android.webkit.WebView* | 35 -dontwarn android.webkit.WebView* |
OLD | NEW |