diff options
| author | 2023-06-06 19:16:25 +0000 | |
|---|---|---|
| committer | 2023-06-06 19:16:25 +0000 | |
| commit | 2eab04105f8efe8efdaefabec5e8d4d6de47b1d3 (patch) | |
| tree | 74dc913fc94023ec0a122d1a045aebedf9993dc7 /api/api_test.go | |
| parent | 715355b6007c1b475b905a0b3b0c2a63948b5694 (diff) | |
| parent | 1453baa8cbbfd559745c57cccffe847e53fdb3cb (diff) | |
Merge "Create full API surface java_library in combined_apis"
Diffstat (limited to 'api/api_test.go')
| -rw-r--r-- | api/api_test.go | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/api/api_test.go b/api/api_test.go index 15b695ca0d36..1f4c2af32493 100644 --- a/api/api_test.go +++ b/api/api_test.go @@ -19,6 +19,7 @@ import ( "android/soong/android" "android/soong/bp2build" + "android/soong/java" ) func runCombinedApisTestCaseWithRegistrationCtxFunc(t *testing.T, tc bp2build.Bp2buildTestCase, registrationCtxFunc func(ctx android.RegistrationContext)) { @@ -30,7 +31,9 @@ func runCombinedApisTestCaseWithRegistrationCtxFunc(t *testing.T, tc bp2build.Bp func runCombinedApisTestCase(t *testing.T, tc bp2build.Bp2buildTestCase) { t.Helper() - runCombinedApisTestCaseWithRegistrationCtxFunc(t, tc, func(ctx android.RegistrationContext) {}) + runCombinedApisTestCaseWithRegistrationCtxFunc(t, tc, func(ctx android.RegistrationContext) { + ctx.RegisterModuleType("java_defaults", java.DefaultsFactory) + }) } func TestCombinedApisGeneral(t *testing.T) { @@ -42,6 +45,13 @@ func TestCombinedApisGeneral(t *testing.T) { system_server_classpath: ["ssc"], } `, + Filesystem: map[string]string{ + "a/Android.bp": ` + java_defaults { + name: "android.jar_defaults", + } + `, + }, ExpectedBazelTargets: []string{ bp2build.MakeBazelTargetNoRestrictions("merged_txts", "foo-current.txt", bp2build.AttrNameToString{ "scope": `"public"`, |