| package { | |
| // See: http://go/android-license-faq | |
| // A large-scale-change added 'default_applicable_licenses' to import | |
| // all of the 'license_kinds' from "frameworks_base_license" | |
| // to get the below license kinds: | |
| // SPDX-license-identifier-Apache-2.0 | |
| default_applicable_licenses: ["frameworks_base_license"], | |
| default_team: "trendy_team_framework_android_multiuser", | |
| } | |
| android_library { | |
| name: "MultiuserUnitTestsLib", | |
| platform_apis: true, | |
| srcs: [ | |
| "unit/src/**/*.java", | |
| "unit/src/**/*.kt", | |
| ], | |
| static_libs: [ | |
| "services.core", | |
| "truth", | |
| "guava-android-testlib", | |
| "androidx.test.runner", | |
| ], | |
| libs: [ | |
| ], | |
| } | |
| java_library { | |
| name: "MultiuserIntegrationTestsLib", | |
| platform_apis: true, | |
| srcs: ["integration/src/**/*.java"], | |
| static_libs: [ | |
| "androidx.test.rules", | |
| "androidx.test.runner", | |
| ], | |
| } | |
| android_test { | |
| name: "MultiuserTests", | |
| defaults: [ | |
| "modules-utils-testable-device-config-defaults", | |
| ], | |
| static_libs: [ | |
| "MultiuserUnitTestsLib", | |
| ], | |
| platform_apis: true, | |
| certificate: "platform", | |
| test_suites: ["device-tests"], | |
| test_options: { | |
| tradefed_options: [ | |
| { | |
| // Explicitly scans only tests defined on this project, so it exclude Guava testlib tests | |
| // (See b/419958066 for more info) | |
| name: "test-package", | |
| value: "com.android.server.pm", | |
| }, | |
| ], | |
| }, | |
| } | |
| // TODO(b/450379303): MultiuserIntegrationTests is temporary as tests are migrated | |
| // to this new directory so they don't run on pre-submit. Eventually it will be merged | |
| // with MultiuserTests, but that will require annotating the tests so that they're | |
| // only run on post-submit. | |
| android_test { | |
| name: "MultiuserIntegrationTests", | |
| static_libs: [ | |
| "MultiuserIntegrationTestsLib", | |
| ], | |
| platform_apis: true, | |
| certificate: "platform", | |
| test_suites: ["device-tests"], | |
| } |