summaryrefslogtreecommitdiff
path: root/java/dexpreopt_test.go
diff options
context:
space:
mode:
author Ulya Trafimovich <skvadrik@google.com> 2021-01-14 17:52:43 +0000
committer Ulya Trafimovich <skvadrik@google.com> 2021-01-28 06:29:13 +0000
commit76b0852a481d3a0c81464e3470294e030b78c897 (patch)
treefc4eaba0f873cc9daa29a6ce21781c4f82ebc677 /java/dexpreopt_test.go
parent27878ca164ba98b130bd0752d089f5cba3787eb9 (diff)
Write module dexpreopt.config for Make.
This is needed for Java libraries that are <uses-library> dependencies of Java libraries and apps defined as Make modules. Each dexpreopted module in Make generates a dexpreopt.config file, which incorporates information from its dependencies' dexpreopt.config files. For dependencies that are Make modules their dexpreopt.config files are generated by Make, and for Soong modules they are generated by Soong. Since Soong doesn't know which libraries are used by Make, it generates build rules for a superset of the necessary libraries. Bug: 132357300 Test: lunch aosp_cf_x86_phone-userdebug && m Change-Id: I325b1037658736ee3c02450b08c00eca1a175962
Diffstat (limited to 'java/dexpreopt_test.go')
-rw-r--r--java/dexpreopt_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/java/dexpreopt_test.go b/java/dexpreopt_test.go
index 5550a4c17..a9e0773b7 100644
--- a/java/dexpreopt_test.go
+++ b/java/dexpreopt_test.go
@@ -148,7 +148,7 @@ func TestDexpreoptEnabled(t *testing.T) {
t.Run(test.name, func(t *testing.T) {
ctx, _ := testJava(t, test.bp)
- dexpreopt := ctx.ModuleForTests("foo", "android_common").MaybeDescription("dexpreopt")
+ dexpreopt := ctx.ModuleForTests("foo", "android_common").MaybeRule("dexpreopt")
enabled := dexpreopt.Rule != nil
if enabled != test.enabled {