summaryrefslogtreecommitdiff
path: root/android/testing.go
diff options
context:
space:
mode:
author Dennis Shen <dzshen@google.com> 2023-01-31 20:27:21 +0000
committer Dennis Shen <dzshen@google.com> 2023-02-01 20:23:46 +0000
commitd4f5d932a1f966797a0ea671af088d88019d5417 (patch)
treecc405240c428ca5090bb3ec459bba7c99a9c180d /android/testing.go
parentfd659ef7da3c7f1a787967ac6fa51312cdc88204 (diff)
Add soong unit test for trimmed apex build
BUG: b/259381334 TEST: m nothing Change-Id: I49e5d31a6f5c4f9a72a6a4b3b2ab7114b996adbc
Diffstat (limited to 'android/testing.go')
-rw-r--r--android/testing.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/android/testing.go b/android/testing.go
index e4202ae6b..fc39a9c7a 100644
--- a/android/testing.go
+++ b/android/testing.go
@@ -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