From eae7b36699477c9c781669f553a7c085e415ac1e Mon Sep 17 00:00:00 2001 From: Yu Liu Date: Thu, 16 Nov 2023 17:05:47 -0800 Subject: Add container property to aconfig_declarations. Bug: 311155208 Test: Unit test Change-Id: I7b187138856d0144203961e82b6dad5e2f8eed9d --- android/testing.go | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'android/testing.go') diff --git a/android/testing.go b/android/testing.go index da3b75aa2..c596468c3 100644 --- a/android/testing.go +++ b/android/testing.go @@ -1293,3 +1293,10 @@ func StringRelativeToTop(config Config, command string) string { func StringsRelativeToTop(config Config, command []string) []string { return normalizeStringArrayRelativeToTop(config, command) } + +func EnsureListContainsSuffix(t *testing.T, result []string, expected string) { + t.Helper() + if !SuffixInList(result, expected) { + t.Errorf("%q is not found in %v", expected, result) + } +} -- cgit v1.2.3-59-g8ed1b