summaryrefslogtreecommitdiff
path: root/java/robolectric.go
diff options
context:
space:
mode:
author Aditya Choudhary <caditya@google.com> 2023-10-06 19:54:58 +0000
committer Aditya Choudhary <caditya@google.com> 2023-11-15 09:08:02 +0000
commit9b59352a82b099daf032fced3e3997aab652f3d2 (patch)
treec19800a6d78aa0b9c2a96081256d2a533b09d58e /java/robolectric.go
parentbf3e32d870a69608af720194647c24ecdb934e54 (diff)
Add proto for Test ownership metadata.
This Cl adds a new rule to Soong to generate test spec metadata. Also, this CL adds a provider in various test module to provide test spec related data to the Soong rule. Will add providers and test code to other Module in the future changes. Provider added for the following test modules in this change: android_robolectric_test, android_test, bootclasspath_fragment_test, java_test, java_test_host, python_test, python_test_host, sh_test,and sh_test_host. Bug: 296873595 Change-Id: I5f89f72d5874bb7838ae357efdb8c6ca208e18a7
Diffstat (limited to 'java/robolectric.go')
-rw-r--r--java/robolectric.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/java/robolectric.go b/java/robolectric.go
index af5633934..a8e6bfaff 100644
--- a/java/robolectric.go
+++ b/java/robolectric.go
@@ -22,6 +22,7 @@ import (
"android/soong/android"
"android/soong/java/config"
+ "android/soong/testing"
"android/soong/tradefed"
"github.com/google/blueprint/proptools"
@@ -253,6 +254,7 @@ func (r *robolectricTest) GenerateAndroidBuildActions(ctx android.ModuleContext)
}
r.installFile = ctx.InstallFile(installPath, ctx.ModuleName()+".jar", r.combinedJar, installDeps...)
+ ctx.SetProvider(testing.TestModuleProviderKey, testing.TestModuleProviderData{})
}
func generateRoboTestConfig(ctx android.ModuleContext, outputFile android.WritablePath,