Add unit tests for class loader context.

Test: lunch aosp_cf_x86_phone-userdebug && m
Bug: 132357300
Change-Id: I96a1e6cef86652e429b1678a655fc0b02f40d00c
This commit is contained in:
Ulya Trafimovich
2020-10-20 17:41:54 +01:00
parent ccc8c85a7c
commit 6961267298
4 changed files with 264 additions and 23 deletions

View File

@@ -81,7 +81,9 @@ func GenerateDexpreoptRule(ctx android.PathContext, globalSoong *GlobalSoongConf
}
if !dexpreoptDisabled(ctx, global, module) {
if clc := genClassLoaderContext(ctx, global, module); clc != nil {
if clc, err := genClassLoaderContext(ctx, global, module); err != nil {
android.ReportPathErrorf(ctx, err.Error())
} else if clc != nil {
appImage := (generateProfile || module.ForceCreateAppImage || global.DefaultAppImages) &&
!module.NoCreateAppImage