Colin Cross | 35be424 | 2018-11-20 09:46:47 -0800 | [diff] [blame] | 1 | //######################################################################## |
| 2 | // Build FrameworksUiServicesTests package |
| 3 | //######################################################################## |
| 4 | |
Bob Badour | 8a6a2bc | 2021-02-12 17:07:05 -0800 | [diff] [blame] | 5 | package { |
| 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 | |
Colin Cross | 35be424 | 2018-11-20 09:46:47 -0800 | [diff] [blame] | 14 | android_test { |
| 15 | name: "FrameworksUiServicesTests", |
| 16 | |
| 17 | // Include test java files |
| 18 | srcs: [ |
| 19 | "src/**/*.java", |
| 20 | ], |
| 21 | |
| 22 | static_libs: [ |
| 23 | "services.accessibility", |
| 24 | "services.core", |
| 25 | "services.devicepolicy", |
| 26 | "services.net", |
| 27 | "services.usage", |
| 28 | "guava", |
Brett Chabot | 84151d9 | 2019-02-27 15:37:59 -0800 | [diff] [blame] | 29 | "androidx.test.rules", "hamcrest-library", |
Colin Cross | 35be424 | 2018-11-20 09:46:47 -0800 | [diff] [blame] | 30 | "mockito-target-inline-minus-junit4", |
| 31 | "platform-test-annotations", |
Chris Wren | bc487b5 | 2019-11-22 16:58:17 -0500 | [diff] [blame] | 32 | "platformprotosnano", |
Chris Wren | 1a934a3 | 2020-05-19 13:45:46 -0400 | [diff] [blame] | 33 | "statsdprotolite", |
Dan Sandler | 7647f1d | 2018-11-26 09:56:26 -0500 | [diff] [blame] | 34 | "hamcrest-library", |
Colin Cross | 35be424 | 2018-11-20 09:46:47 -0800 | [diff] [blame] | 35 | "testables", |
Tony Mak | 9a3c1f1 | 2019-03-04 16:04:42 +0000 | [diff] [blame] | 36 | "truth-prebuilt", |
Kurt Dresner | 3d21c80 | 2020-09-29 15:32:11 -0700 | [diff] [blame] | 37 | // TODO: remove once Android migrates to JUnit 4.12, |
| 38 | // which provides assertThrows |
| 39 | "testng", |
Colin Cross | 35be424 | 2018-11-20 09:46:47 -0800 | [diff] [blame] | 40 | ], |
| 41 | |
| 42 | libs: [ |
| 43 | "android.test.runner", |
| 44 | "android.test.base", |
Dmitri Plotnikov | 7a223fb | 2020-02-14 17:04:13 -0800 | [diff] [blame] | 45 | "android.test.mock", |
Colin Cross | 35be424 | 2018-11-20 09:46:47 -0800 | [diff] [blame] | 46 | ], |
| 47 | |
| 48 | dxflags: ["--multi-dex"], |
| 49 | |
| 50 | platform_apis: true, |
| 51 | test_suites: ["device-tests"], |
| 52 | |
| 53 | certificate: "platform", |
| 54 | |
| 55 | compile_multilib: "both", |
| 56 | |
| 57 | // These are not normally accessible from apps so they must be explicitly included. |
| 58 | jni_libs: [ |
| 59 | "libdexmakerjvmtiagent", |
| 60 | "libmultiplejvmtiagentsinterferenceagent", |
Colin Cross | 35be424 | 2018-11-20 09:46:47 -0800 | [diff] [blame] | 61 | "libbase", |
| 62 | "libbinder", |
Colin Cross | 35be424 | 2018-11-20 09:46:47 -0800 | [diff] [blame] | 63 | "libc++", |
| 64 | "libcutils", |
| 65 | "liblog", |
| 66 | "liblzma", |
| 67 | "libnativehelper", |
Colin Cross | 35be424 | 2018-11-20 09:46:47 -0800 | [diff] [blame] | 68 | "libui", |
| 69 | "libunwindstack", |
| 70 | "libutils", |
Jeongik Cha | 969b921 | 2021-01-28 00:49:47 +0900 | [diff] [blame] | 71 | "netd_aidl_interface-V5-cpp", |
Colin Cross | 35be424 | 2018-11-20 09:46:47 -0800 | [diff] [blame] | 72 | ], |
| 73 | } |