From 4fe970f3036b74b7e4a5aeff1dd04a9d28a1355f Mon Sep 17 00:00:00 2001 From: Anton Hansson Date: Fri, 9 Oct 2020 10:16:49 +0100 Subject: [PATCH] Make test api extend system in sdk_library.go The test stubs for the "main" android API are being changed to incude @SystemApi annotated APIs. Update sdk_library to make modules and optional libraries follow the same principle. Bug: 129133308 Test: presubmit Change-Id: I7bd940e1a8127d954d30c532c74d684a5ba9d33c Merged-In: I7bd940e1a8127d954d30c532c74d684a5ba9d33c (cherry picked from commit 13dbaac5b6cc4f135404d2954541fd44b09e89e0) --- java/sdk_library.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java/sdk_library.go b/java/sdk_library.go index 859dc8d53..d6ef4e9ea 100644 --- a/java/sdk_library.go +++ b/java/sdk_library.go @@ -257,7 +257,7 @@ var ( }) apiScopeTest = initApiScope(&apiScope{ name: "test", - extends: apiScopePublic, + extends: apiScopeSystem, legacyEnabledStatus: (*SdkLibrary).generateTestAndSystemScopesByDefault, scopeSpecificProperties: func(module *SdkLibrary) *ApiScopeProperties { return &module.sdkLibraryProperties.Test