aboutsummaryrefslogtreecommitdiff
path: root/dexpreopt/testing.go
diff options
context:
space:
mode:
Diffstat (limited to 'dexpreopt/testing.go')
-rw-r--r--dexpreopt/testing.go9
1 files changed, 8 insertions, 1 deletions
diff --git a/dexpreopt/testing.go b/dexpreopt/testing.go
index b1fbef566..09adb6bfa 100644
--- a/dexpreopt/testing.go
+++ b/dexpreopt/testing.go
@@ -180,7 +180,7 @@ func FixtureSetPreoptWithUpdatableBcp(value bool) android.FixturePreparer {
// FixtureSetBootImageProfiles sets the BootImageProfiles property in the global config.
func FixtureSetBootImageProfiles(profiles ...string) android.FixturePreparer {
return FixtureModifyGlobalConfig(func(ctx android.PathContext, dexpreoptConfig *GlobalConfig) {
- dexpreoptConfig.BootImageProfiles = android.PathsForSource(ctx, profiles)
+ dexpreoptConfig.BootImageProfiles = android.PathsForTesting(profiles...)
})
}
@@ -211,3 +211,10 @@ func FixtureSetEnableUffdGc(value string) android.FixturePreparer {
dexpreoptConfig.EnableUffdGc = value
})
}
+
+// FixtureSetPlatformSdkVersion sets the PlatformSdkVersion property in the global config.
+func FixtureSetPlatformSdkVersion(value string) android.FixturePreparer {
+ return FixtureModifyGlobalConfig(func(_ android.PathContext, dexpreoptConfig *GlobalConfig) {
+ dexpreoptConfig.PlatformSdkVersion = value
+ })
+}