1//######################################################################## 2// Build FrameworksUiServicesTests package 3//######################################################################## 4 5package { 6 // See: http://go/android-license-faq 7 // A large-scale-change added 'default_applicable_licenses' to import 8 // all of the 'license_kinds' from "frameworks_base_license" 9 // to get the below license kinds: 10 // SPDX-license-identifier-Apache-2.0 11 default_applicable_licenses: ["frameworks_base_license"], 12} 13 14android_test { 15 name: "FrameworksUiServicesTests", 16 17 // Include test java files 18 srcs: [ 19 "src/**/*.java", 20 ], 21 22 static_libs: [ 23 "frameworks-base-testutils", 24 "services.accessibility", 25 "services.core", 26 "services.devicepolicy", 27 "services.net", 28 "services.usage", 29 "guava", 30 "androidx.test.rules", 31 "hamcrest-library", 32 "mockito-target-inline-minus-junit4", 33 "platform-test-annotations", 34 "platformprotosnano", 35 "statsdprotolite", 36 "hamcrest-library", 37 "servicestests-utils", 38 "testables", 39 "truth-prebuilt", 40 // TODO: remove once Android migrates to JUnit 4.12, 41 // which provides assertThrows 42 "testng", 43 ], 44 45 libs: [ 46 "android.test.runner", 47 "android.test.base", 48 "android.test.mock", 49 ], 50 51 dxflags: ["--multi-dex"], 52 53 platform_apis: true, 54 55 test_suites: [ 56 "device-tests", 57 "automotive-tests", 58 ], 59 60 certificate: "platform", 61 62 compile_multilib: "both", 63 64 // These are not normally accessible from apps so they must be explicitly included. 65 jni_libs: [ 66 "libdexmakerjvmtiagent", 67 "libmultiplejvmtiagentsinterferenceagent", 68 "libbase", 69 "libbinder", 70 "libc++", 71 "libcutils", 72 "liblog", 73 "liblzma", 74 "libnativehelper", 75 "libui", 76 "libunwindstack", 77 "libutils", 78 "netd_aidl_interface-V5-cpp", 79 ], 80} 81