Rename API surface provided to mainline modules

This API surface is provided by platform and mainline modules to other
mainline modules. Rename it to module-lib API surface to align it with
the terminology in go/android-api-types

Test: go test ./bp2build
Test: go test ./cc
Change-Id: Ieb9f3214e66366fc2ceb6f47e2d6623acb537827
This commit is contained in:
Spandan Das
2023-01-26 23:02:00 +00:00
parent 0725a60e5d
commit 627fc3e436
4 changed files with 26 additions and 24 deletions

View File

@@ -2825,7 +2825,7 @@ func TestCcApiContributionsWithHdrs(t *testing.T) {
expectedBazelTargets := []string{
MakeBazelTarget(
"cc_api_library_headers",
"libfoo.systemapi.headers",
"libfoo.module-libapi.headers",
AttrNameToString{
"export_includes": `["dir1"]`,
}),
@@ -2842,18 +2842,18 @@ func TestCcApiContributionsWithHdrs(t *testing.T) {
"api": `"libfoo.map.txt"`,
"library_name": `"libfoo"`,
"api_surfaces": `[
"systemapi",
"module-libapi",
"vendorapi",
]`,
"hdrs": `[
":libfoo.systemapi.headers",
":libfoo.module-libapi.headers",
":libfoo.vendorapi.headers",
]`,
}),
}
RunApiBp2BuildTestCase(t, cc.RegisterLibraryBuildComponents, Bp2buildTestCase{
Blueprint: bp,
Description: "cc API contributions to systemapi and vendorapi",
Description: "cc API contributions to module-libapi and vendorapi",
ExpectedBazelTargets: expectedBazelTargets,
})
}
@@ -2872,8 +2872,8 @@ func TestCcApiSurfaceCombinations(t *testing.T) {
stubs: {symbol_file: "a.map.txt"},
}`,
expectedApi: `"a.map.txt"`,
expectedApiSurfaces: `["systemapi"]`,
description: "Library that contributes to systemapi",
expectedApiSurfaces: `["module-libapi"]`,
description: "Library that contributes to module-libapi",
},
{
bp: `
@@ -2894,10 +2894,10 @@ func TestCcApiSurfaceCombinations(t *testing.T) {
}`,
expectedApi: `"a.map.txt"`,
expectedApiSurfaces: `[
"systemapi",
"module-libapi",
"vendorapi",
]`,
description: "Library that contributes to systemapi and vendorapi",
description: "Library that contributes to module-libapi and vendorapi",
},
}
for _, testCase := range testCases {