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

Unified Diff: build/config/android/rules.gni

Issue 2182303002: Merging under test java into instrumentation test java. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@runtimelibrary
Patch Set: Addressing agrieve's comments Created 4 years, 5 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: build/config/android/rules.gni
diff --git a/build/config/android/rules.gni b/build/config/android/rules.gni
index 35be87bd3d76bd25c55bcf65a4b5c27264f05b10..06e0ff1dfa143d4ee3554b5758e7dd578d0c9e22 100644
--- a/build/config/android/rules.gni
+++ b/build/config/android/rules.gni
@@ -2289,6 +2289,15 @@ if (enable_java_templates) {
data_deps += invoker.additional_apks
}
+ if (defined(invoker.proguard_enabled) && invoker.proguard_enabled) {
+ # When ProGuard is on, we use ProGuard to combine the under test java
+ # code and the test java code. This is to allow us to apply all ProGuard
+ # optimizations that we ship with, but not have them break tests. The
+ # apk under test will still have the same resources, assets, and
+ # manifest, all of which are the ones used in the tests.
+ proguard_configs = [ "//testing/android/proguard_for_test.flags" ]
+ }
+
create_dist_ijar = true
if (defined(invoker.run_findbugs_override)) {
# Only allow findbugs when there are java files.

Powered by Google App Engine
This is Rietveld 408576698