Add soong unit test for trimmed apex build

BUG: b/259381334
TEST: m nothing
Change-Id: I49e5d31a6f5c4f9a72a6a4b3b2ab7114b996adbc
This commit is contained in:
Dennis Shen
2023-01-31 20:27:21 +00:00
parent fd659ef7da
commit d4f5d932a1
2 changed files with 72 additions and 0 deletions

View File

@@ -1125,6 +1125,11 @@ func SetKatiEnabledForTests(config Config) {
config.katiEnabled = true
}
func SetTrimmedApexEnabledForTests(config Config) {
config.productVariables.TrimmedApex = new(bool)
*config.productVariables.TrimmedApex = true
}
func AndroidMkEntriesForTest(t *testing.T, ctx *TestContext, mod blueprint.Module) []AndroidMkEntries {
t.Helper()
var p AndroidMkEntriesProvider