Add missing test dependencies for AppEnumerationInternalTests
In Android.bp, all dependencies of a test should be declared explicitly, so that test infrastructure could only provide the needed dependencies instead of all to run a test. This change adds the missing dependencies that are used in test config file but not declared in Android.bp.
Bug: 222438068
Test: atest-src AppEnumerationInternalTests \
--experimental-device-driven-test \
--experimental-java-runtime-dependencies \
--bazel-arg=--test_timeout=48000
Test: atest AppEnumerationInternalTests
Change-Id: I5d642e5406c76f10c5889574e940902d0fc07490
diff --git a/services/tests/PackageManagerServiceTests/appenumeration/Android.bp b/services/tests/PackageManagerServiceTests/appenumeration/Android.bp
index e44ce3c..31c49b3 100644
--- a/services/tests/PackageManagerServiceTests/appenumeration/Android.bp
+++ b/services/tests/PackageManagerServiceTests/appenumeration/Android.bp
@@ -34,5 +34,10 @@
],
platform_apis: true,
test_suites: ["device-tests"],
- data: [":AppEnumerationSyncProviderTestApp"],
+ data: [
+ ":AppEnumerationCrossUserPackageVisibilityTestApp",
+ ":AppEnumerationHasAppOpPermissionTestApp",
+ ":AppEnumerationSharedUserTestApp",
+ ":AppEnumerationSyncProviderTestApp",
+ ],
}