Test that DisableGenerateProfile takes effects for APEXes.

Bug: 209630530
Test: m nothing
Change-Id: I5953f36e219ba63f8a01fa5dc60456db35eef5ac
This commit is contained in:
Jiakai Zhang
2021-12-13 17:19:05 +00:00
parent d469eefcc3
commit 7d3c9e0b5f
2 changed files with 26 additions and 0 deletions

View File

@@ -167,3 +167,10 @@ func FixtureSetBootImageProfiles(profiles ...string) android.FixturePreparer {
dexpreoptConfig.BootImageProfiles = android.PathsForSource(ctx, profiles)
})
}
// FixtureDisableGenerateProfile sets the DisableGenerateProfile property in the global config.
func FixtureDisableGenerateProfile(disable bool) android.FixturePreparer {
return FixtureModifyGlobalConfig(func(_ android.PathContext, dexpreoptConfig *GlobalConfig) {
dexpreoptConfig.DisableGenerateProfile = disable
})
}