Make CheckHiddenAPIRuleInputs more reusable
Adds a message parameter and allows leading spaces in the expected file string to allow them to be nicely indented. Bug: 177892522 Test: m nothing Change-Id: I33df26610738c48879fa0b8250dc377dd04bb07d
This commit is contained in:
@@ -319,10 +319,9 @@ func TestPlatformBootclasspath_HiddenAPIMonolithicFiles(t *testing.T) {
|
||||
// creates the index.csv file.
|
||||
platformBootclasspath := result.ModuleForTests("myplatform-bootclasspath", "android_common")
|
||||
indexRule := platformBootclasspath.Rule("monolithic_hidden_API_index")
|
||||
CheckHiddenAPIRuleInputs(t, `
|
||||
.intermediates/bar/android_common/javac/bar.jar
|
||||
.intermediates/foo-hiddenapi-annotations/android_common/javac/foo-hiddenapi-annotations.jar
|
||||
.intermediates/foo/android_common/javac/foo.jar
|
||||
`,
|
||||
indexRule)
|
||||
CheckHiddenAPIRuleInputs(t, "index", `
|
||||
out/soong/.intermediates/bar/android_common/javac/bar.jar
|
||||
out/soong/.intermediates/foo-hiddenapi-annotations/android_common/javac/foo-hiddenapi-annotations.jar
|
||||
out/soong/.intermediates/foo/android_common/javac/foo.jar
|
||||
`, indexRule)
|
||||
}
|
||||
|
Reference in New Issue
Block a user