diff options
author | 2024-08-08 15:50:47 -0700 | |
---|---|---|
committer | 2024-08-09 16:47:45 -0700 | |
commit | a66b4630f60847c216699831b99aeb905362ccda (patch) | |
tree | f67e64ab0206908cbd5155f74b35b43d6271c26b /java/bootclasspath_fragment_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/bootclasspath_fragment_test.go')
-rw-r--r-- | java/bootclasspath_fragment_test.go | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/java/bootclasspath_fragment_test.go b/java/bootclasspath_fragment_test.go index 8bc0a7ef6..d72417afa 100644 --- a/java/bootclasspath_fragment_test.go +++ b/java/bootclasspath_fragment_test.go @@ -222,11 +222,7 @@ func TestBootclasspathFragment_StubLibs(t *testing.T) { PrepareForTestWithJavaSdkLibraryFiles, FixtureWithLastReleaseApis("mysdklibrary", "myothersdklibrary", "mycoreplatform"), FixtureConfigureApexBootJars("someapex:mysdklibrary"), - android.FixtureModifyProductVariables(func(variables android.FixtureProductVariables) { - variables.BuildFlags = map[string]string{ - "RELEASE_HIDDEN_API_EXPORTABLE_STUBS": "true", - } - }), + android.PrepareForTestWithBuildFlag("RELEASE_HIDDEN_API_EXPORTABLE_STUBS", "true"), ).RunTestWithBp(t, ` bootclasspath_fragment { name: "myfragment", |