diff options
Diffstat (limited to 'java/testing.go')
-rw-r--r-- | java/testing.go | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/java/testing.go b/java/testing.go index fc4e4775b..0327963ae 100644 --- a/java/testing.go +++ b/java/testing.go @@ -95,6 +95,29 @@ func prebuiltApisFilesForLibs(apiLevels []string, sdkLibs []string) map[string][ return fs } +// Register build components provided by this package that are needed by tests. +// +// In particular this must register all the components that are used in the `Android.bp` snippet +// returned by GatherRequiredDepsForTest() +func RegisterRequiredBuildComponentsForTest(ctx android.RegistrationContext) { + RegisterAARBuildComponents(ctx) + RegisterAppBuildComponents(ctx) + RegisterAppImportBuildComponents(ctx) + RegisterAppSetBuildComponents(ctx) + RegisterDexpreoptBootJarsComponents(ctx) + RegisterDocsBuildComponents(ctx) + RegisterGenRuleBuildComponents(ctx) + RegisterJavaBuildComponents(ctx) + RegisterPrebuiltApisBuildComponents(ctx) + RegisterRuntimeResourceOverlayBuildComponents(ctx) + RegisterSdkLibraryBuildComponents(ctx) + RegisterStubsBuildComponents(ctx) + RegisterSystemModulesBuildComponents(ctx) +} + +// Gather the module definitions needed by tests that depend upon code from this package. +// +// Returns an `Android.bp` snippet that defines the modules that are needed by this package. func GatherRequiredDepsForTest() string { var bp string |