From 175947f654b4ac34c4085c74007de195ac999b49 Mon Sep 17 00:00:00 2001 From: Paul Duffin Date: Fri, 12 Mar 2021 21:44:02 +0000 Subject: Convert hiddenapi tests to use test fixtures These tests rely on files provided by javaMockFS() so have been converted to test fixtures to allow them to remove that dependency which will allow javaMockFS() to be removed. Bug: 182638834 Test: m nothing Change-Id: Ifd4069a74fcf67e555f998ddbc4de3fde26b2aae --- java/hiddenapi_singleton.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'java/hiddenapi_singleton.go') diff --git a/java/hiddenapi_singleton.go b/java/hiddenapi_singleton.go index 82e8b3f75..6ad4ff322 100644 --- a/java/hiddenapi_singleton.go +++ b/java/hiddenapi_singleton.go @@ -31,6 +31,8 @@ func RegisterHiddenApiSingletonComponents(ctx android.RegistrationContext) { ctx.RegisterModuleType("hiddenapi_flags", hiddenAPIFlagsFactory) } +var PrepareForTestWithHiddenApiBuildComponents = android.FixtureRegisterWithContext(RegisterHiddenApiSingletonComponents) + type hiddenAPISingletonPathsStruct struct { // The path to the CSV file that contains the flags that will be encoded into the dex boot jars. // -- cgit v1.2.3-59-g8ed1b