From 3ee19697d591969df930a9a9c7148238bbd76a1f Mon Sep 17 00:00:00 2001 From: Spandan Das Date: Wed, 19 Jun 2024 04:47:40 +0000 Subject: [PATCH] Add unit test for sdk library permission xml file Followup to the fix in https://r.android.com/3137737. This adds a unit test to check the permission xml file contents of sdk library. This file contains the on-device location of the sdk implementation library. override/overridden apexes are installed in the same location, so the on-device sdklibrary path should remain consistent in the xml files of the override and overridden apexes. Test: go test ./apex Bug: 346486531 Change-Id: I61adbf94bdfce8aa89de89cc90b6f564f2f7417f --- apex/apex_test.go | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/apex/apex_test.go b/apex/apex_test.go index dfc4bb372..3c8700d55 100644 --- a/apex/apex_test.go +++ b/apex/apex_test.go @@ -7125,6 +7125,46 @@ func TestJavaSDKLibrary(t *testing.T) { ensureMatches(t, contents, "