Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(210)

Side by Side Diff: testing/android/proguard_for_test.flags

Issue 2767783004: Add proguard flags for JUnit4 tests (Closed)
Patch Set: only Runner Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 # We want all tests to stick around. 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
16 -keep @**.RunWith class * {
17 *;
18 }
19
20 # Keep any class inherited from junit Runner since their constructor is called
21 # reflectively
22 -keep class * extends org.junit.runner.Runner {
23 *;
24 }
25
15 # TODO(yfriedman): Remove when crbug.com/488192 is fixed. 26 # TODO(yfriedman): Remove when crbug.com/488192 is fixed.
16 -dontwarn org.apache.http.conn.scheme.LayeredSocketFactory 27 -dontwarn org.apache.http.conn.scheme.LayeredSocketFactory
17 28
18 # We have some "library class WebView depends on program class SslCertificate" 29 # We have some "library class WebView depends on program class SslCertificate"
19 # warnings, and they don't affect us. 30 # warnings, and they don't affect us.
20 -dontwarn android.webkit.WebView* 31 -dontwarn android.webkit.WebView*
21 32
22 # We don't want BasicHttpParams or AbstractHttpParams to get renamed since that 33 # We don't want BasicHttpParams or AbstractHttpParams to get renamed since that
23 # then makes our calls to them use the implementation that we find in our .dex 34 # then makes our calls to them use the implementation that we find in our .dex
24 # file, which is broken. We need to rely on these calls resolving to the 35 # file, which is broken. We need to rely on these calls resolving to the
25 # system's implementation. See crbug.com/488192#c36. 36 # system's implementation. See crbug.com/488192#c36.
26 -keepnames class org.apache.** { 37 -keepnames class org.apache.** {
27 *; 38 *;
28 } 39 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698