summaryrefslogtreecommitdiff
path: root/sdk/java_sdk_test.go
diff options
context:
space:
mode:
author Jiakai Zhang <jiakaiz@google.com> 2023-05-08 16:28:38 +0000
committer Jiakai Zhang <jiakaiz@google.com> 2023-05-09 21:47:31 +0100
commit1d99986d30518b711d6716fc26fa380881647023 (patch)
tree92fc13fcd1dbefcb448c8b460a11241be20fb8c5 /sdk/java_sdk_test.go
parente792debb72bb9dce95ebcfb4d9fce2cc36bc05c7 (diff)
Generate boot image profiles even if dexpreopt is disabled.
Bug: 280440941 Test: - 1. Patch ag/22302622 to disable dexpreopt. 2. See boot image profiles still generated. (cherry picked from https://android-review.googlesource.com/q/commit:bc698cd28aa2ee17af208bfd56f003347116ddb0) Merged-In: I5f7f746ca1d4da660fe0c40115e6c71750dfdccc Change-Id: I1bf05ade53fa83f3dba46f28a8f9246ba1fdf664
Diffstat (limited to 'sdk/java_sdk_test.go')
-rw-r--r--sdk/java_sdk_test.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/sdk/java_sdk_test.go b/sdk/java_sdk_test.go
index 3a2ecc00c..6159ea9c2 100644
--- a/sdk/java_sdk_test.go
+++ b/sdk/java_sdk_test.go
@@ -19,12 +19,14 @@ import (
"testing"
"android/soong/android"
+ "android/soong/dexpreopt"
"android/soong/java"
)
var prepareForSdkTestWithJava = android.GroupFixturePreparers(
java.PrepareForTestWithJavaBuildComponents,
PrepareForTestWithSdkBuildComponents,
+ dexpreopt.PrepareForTestWithFakeDex2oatd,
// Ensure that all source paths are provided. This helps ensure that the snapshot generation is
// consistent and all files referenced from the snapshot's Android.bp file have actually been