diff options
author | 2024-08-08 15:50:47 -0700 | |
---|---|---|
committer | 2024-08-09 16:47:45 -0700 | |
commit | a66b4630f60847c216699831b99aeb905362ccda (patch) | |
tree | f67e64ab0206908cbd5155f74b35b43d6271c26b /java/hiddenapi_singleton_test.go | |
parent | 788f69722c2fb02bad642d7b5e4bb30a2fa6e86a (diff) |
Add PrepareForTestWithBuildFlag
Add a helper function that creates a test fixture preparer that
sets a build flag, and use it everywhere that was setting build flags
manually.
Test: all soong tests
Flag: EXEMPT refactor
Change-Id: I68d50d68787a30d091f0827e8caa51f5c5a762ef
Diffstat (limited to 'java/hiddenapi_singleton_test.go')
-rw-r--r-- | java/hiddenapi_singleton_test.go | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/java/hiddenapi_singleton_test.go b/java/hiddenapi_singleton_test.go index 62297978c..afe8b4c8e 100644 --- a/java/hiddenapi_singleton_test.go +++ b/java/hiddenapi_singleton_test.go @@ -203,10 +203,8 @@ func TestHiddenAPISingletonSdks(t *testing.T) { FixtureConfigureBootJars("platform:foo"), android.FixtureModifyProductVariables(func(variables android.FixtureProductVariables) { variables.Always_use_prebuilt_sdks = proptools.BoolPtr(tc.unbundledBuild) - variables.BuildFlags = map[string]string{ - "RELEASE_HIDDEN_API_EXPORTABLE_STUBS": "true", - } }), + android.PrepareForTestWithBuildFlag("RELEASE_HIDDEN_API_EXPORTABLE_STUBS", "true"), ).RunTestWithBp(t, ` java_library { name: "foo", |