summaryrefslogtreecommitdiff
path: root/api/api_test.go
diff options
context:
space:
mode:
author Harshit Mahajan <harshitmahajan@google.com> 2024-10-09 12:42:55 +0000
committer Harshit Mahajan <harshitmahajan@google.com> 2024-10-25 07:24:57 +0000
commit989825d3f064fe20903db70e7a234f67dcdc6f5e (patch)
treefa11ea0a2a09811868d035e445d809796a327d91 /api/api_test.go
parentce3c8280eb99956dc50379b8d3dadc5013a76152 (diff)
Separating framework platform crashrecovery jar
Creating new jar "framework-platformcrashrecovery". This would separate all the apis to a different sdk library while still being part of core platform. This jar is behind release_crashrecovery_module flag which also controls enabling CrashRecovery module apex. Based on the flag only one of platformcrashrecovery jar or CrashRecovery Apex will be used. So essentially on device if release_crashrecovery_module flag is 1. true: CrashRecovery Apex is present, this jar is not used 2. false: CrashRecovery Apex is not used, this jar is present Bug: 289203818 Test: Jar is present in Bootclasspath on device Test: ExplcitHealthCheckService registered on device Flag: build.release_crashrecovery_module Change-Id: I4696e74a1ba236614398b48a6d7145777079286b
Diffstat (limited to 'api/api_test.go')
-rw-r--r--api/api_test.go9
1 files changed, 3 insertions, 6 deletions
diff --git a/api/api_test.go b/api/api_test.go
index 166f053978f2..28109b5ea2cf 100644
--- a/api/api_test.go
+++ b/api/api_test.go
@@ -78,10 +78,7 @@ func gatherRequiredDepsForTest() string {
"stub-annotations",
}
- extraSdkLibraryModules := []string{
- "framework-virtualization",
- "framework-location",
- }
+ extraSdkLibraryModules := non_updatable_modules
extraSystemModules := []string{
"core-public-stubs-system-modules",
@@ -184,10 +181,10 @@ func gatherRequiredDepsForTest() string {
func TestCombinedApisDefaults(t *testing.T) {
+ testNonUpdatableModules := append(non_updatable_modules, "framework-foo", "framework-bar")
result := android.GroupFixturePreparers(
prepareForTestWithCombinedApis,
- java.FixtureWithLastReleaseApis(
- "framework-location", "framework-virtualization", "framework-foo", "framework-bar"),
+ java.FixtureWithLastReleaseApis(testNonUpdatableModules...),
android.FixtureModifyProductVariables(func(variables android.FixtureProductVariables) {
variables.VendorVars = map[string]map[string]string{
"boolean_var": {