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

Unified Diff: components/cronet/android/test/proguard.cfg

Issue 2660963002: Cronet: a framework to provide alternative Cronet implementations (Closed)
Patch Set: Created 3 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: components/cronet/android/test/proguard.cfg
diff --git a/components/cronet/android/test/proguard.cfg b/components/cronet/android/test/proguard.cfg
index 22b0db07f95b327dcdcf3850cee91d03f690653b..335913149a83c06b48cde82a591b14846457a9b0 100644
--- a/components/cronet/android/test/proguard.cfg
+++ b/components/cronet/android/test/proguard.cfg
@@ -3,6 +3,8 @@
-keepattributes Signature,InnerClasses,SourceFile,LineNumberTable
-dontwarn io.netty.**
-keep class io.netty.** { *; }
+# Keep ChromiumNativeTestSupport & ChromiumPlatformOnlyTestSupport since they are
+# instantiated through Reflection by the smoke tests.
-keep class org.chromium.net.smoke.ChromiumNativeTestSupport
-keep class org.chromium.net.smoke.ChromiumPlatformOnlyTestSupport
@@ -11,6 +13,10 @@
-dontwarn android.support.test.runner.MonitoringInstrumentation
+# Do not obfuscate this class for testing since some of the tests check the class
+# name in order to check that an instantiated engine is the Java one.
+-keepnames class org.chromium.net.impl.JavaCronetEngine
+
# These classes should be explicitly kept to avoid failure if
# class/merging/horizontal proguard optimization is enabled.
# NOTE: make sure that only test classes are added to this list.

Powered by Google App Engine
This is Rietveld 408576698