summaryrefslogtreecommitdiff
path: root/java/test_spec_test.go
diff options
context:
space:
mode:
author Aditya Choudhary <caditya@google.com> 2023-10-12 19:40:17 +0000
committer Aditya Choudhary <caditya@google.com> 2023-12-05 18:10:03 +0000
commit8094b6bf9dc368f080c6455261ebe1d999772de0 (patch)
tree6ed50d1ed0a82c641bd5083343244a0635224cd9 /java/test_spec_test.go
parent14e1149195e7a71a1a939856935b99009c7cc5a0 (diff)
Add Code Metadata rule to soong/testing.
This Cl adds a new rule to Soong to generate code ownership metadata. Also, this CL adds a provider in the Java SDK library to provide generated source files to the Code_metadata rule. Will add providers to other libraries in the future changes. Bug: 296873595 Change-Id: Ic2e43aa9b161231fea4416d1f0d36b778361d7c5
Diffstat (limited to 'java/test_spec_test.go')
-rw-r--r--java/test_spec_test.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/java/test_spec_test.go b/java/test_spec_test.go
index 39aff4cef..7f06785b0 100644
--- a/java/test_spec_test.go
+++ b/java/test_spec_test.go
@@ -27,7 +27,7 @@ func TestTestSpec(t *testing.T) {
java_test {
name: "java-test-module-name-two",
}`
- result := runTest(t, android.FixtureExpectsNoErrors, bp)
+ result := runTestSpecTest(t, android.FixtureExpectsNoErrors, bp)
module := result.ModuleForTests(
"module-name", "",
@@ -78,7 +78,7 @@ func TestTestSpec(t *testing.T) {
if metadata != expectedMetadata {
t.Errorf(
- "Retrieved metadata: %s is not equal to expectedMetadata: %s", metadata,
+ "Retrieved metadata: %s doesn't contain expectedMetadata: %s", metadata,
expectedMetadata,
)
}
@@ -121,11 +121,11 @@ func TestTestSpec(t *testing.T) {
}
}
-func runTest(
- t *testing.T, errorHandler android.FixtureErrorHandler, bp string,
+func runTestSpecTest(
+ t *testing.T, errorHandler android.FixtureErrorHandler, bp string,
) *android.TestResult {
return android.GroupFixturePreparers(
- soongTesting.PrepareForTestWithTestSpecBuildComponents,
+ soongTesting.PrepareForTestWithTestingBuildComponents,
PrepareForIntegrationTestWithJava,
).
ExtendWithErrorHandler(errorHandler).