diff options
| author | 2021-04-15 09:40:37 +0000 | |
|---|---|---|
| committer | 2021-04-15 09:40:37 +0000 | |
| commit | a4b0d08b83a63eb4c4e9873ac3a2273027acbedc (patch) | |
| tree | fe552d1731326beb3ac0e87d686abb6b3996563c /java/hiddenapi_singleton_test.go | |
| parent | 1f105f13382f144f32b3089a1e5ffb7845bc5ecc (diff) | |
| parent | 00b2bfdea57286232ac6c7ec36742d95c9d7a04e (diff) | |
Merge "Move hidden API index file rule to platform_bootclasspath"
Diffstat (limited to 'java/hiddenapi_singleton_test.go')
| -rw-r--r-- | java/hiddenapi_singleton_test.go | 55 | 
1 files changed, 0 insertions, 55 deletions
diff --git a/java/hiddenapi_singleton_test.go b/java/hiddenapi_singleton_test.go index e5e1c2547..5ea9a5bca 100644 --- a/java/hiddenapi_singleton_test.go +++ b/java/hiddenapi_singleton_test.go @@ -50,61 +50,6 @@ func TestHiddenAPISingleton(t *testing.T) {  	android.AssertStringDoesContain(t, "hiddenapi command", hiddenapiRule.RuleParams.Command, want)  } -func TestHiddenAPIIndexSingleton(t *testing.T) { -	result := android.GroupFixturePreparers( -		hiddenApiFixtureFactory, -		PrepareForTestWithJavaSdkLibraryFiles, -		FixtureWithLastReleaseApis("bar"), -		FixtureConfigureBootJars("platform:foo", "platform:bar"), -	).RunTestWithBp(t, ` -		java_library { -			name: "foo", -			srcs: ["a.java"], -			compile_dex: true, - -			hiddenapi_additional_annotations: [ -				"foo-hiddenapi-annotations", -			], -		} - -		java_library { -			name: "foo-hiddenapi-annotations", -			srcs: ["a.java"], -			compile_dex: true, -		} - -		java_import { -			name: "foo", -			jars: ["a.jar"], -			compile_dex: true, -			prefer: false, -		} - -		java_sdk_library { -			name: "bar", -			srcs: ["a.java"], -			compile_dex: true, -		} -	`) - -	hiddenAPIIndex := result.SingletonForTests("hiddenapi_index") -	indexRule := hiddenAPIIndex.Rule("singleton-merged-hiddenapi-index") -	CheckHiddenAPIRuleInputs(t, ` -.intermediates/bar/android_common/hiddenapi/index.csv -.intermediates/foo/android_common/hiddenapi/index.csv -`, -		indexRule) - -	// Make sure that the foo-hiddenapi-annotations.jar is included in the inputs to the rules that -	// creates the index.csv file. -	foo := result.ModuleForTests("foo", "android_common") -	indexParams := foo.Output("hiddenapi/index.csv") -	CheckHiddenAPIRuleInputs(t, ` -.intermediates/foo-hiddenapi-annotations/android_common/javac/foo-hiddenapi-annotations.jar -.intermediates/foo/android_common/javac/foo.jar -`, indexParams) -} -  func TestHiddenAPISingletonWithSourceAndPrebuiltPreferredButNoDex(t *testing.T) {  	expectedErrorMessage :=  		"hiddenapi has determined that the source module \"foo\" should be ignored as it has been" +  |