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: [ |
Lucas Silva | 1e16b3c | 2022-08-29 15:45:28 -0400 | [diff] [blame] | 23 | "frameworks-base-testutils", |
Colin Cross | 35be424 | 2018-11-20 09:46:47 -0800 | [diff] [blame] | 24 | "services.accessibility", |
| 25 | "services.core", |
| 26 | "services.devicepolicy", |
| 27 | "services.net", |
| 28 | "services.usage", |
Manjeet Rulhania | 0bc6a60 | 2023-03-10 16:49:38 +0000 | [diff] [blame] | 29 | "service-permission.stubs.system_server", |
Colin Cross | 35be424 | 2018-11-20 09:46:47 -0800 | [diff] [blame] | 30 | "guava", |
Filip | f58f123 | 2022-06-12 17:38:55 +0000 | [diff] [blame] | 31 | "androidx.test.rules", |
| 32 | "hamcrest-library", |
Colin Cross | 35be424 | 2018-11-20 09:46:47 -0800 | [diff] [blame] | 33 | "mockito-target-inline-minus-junit4", |
Michael Mikhail | 55dce0d | 2023-07-26 16:44:09 +0000 | [diff] [blame] | 34 | "platform-compat-test-rules", |
Colin Cross | 35be424 | 2018-11-20 09:46:47 -0800 | [diff] [blame] | 35 | "platform-test-annotations", |
Chris Wren | bc487b5 | 2019-11-22 16:58:17 -0500 | [diff] [blame] | 36 | "platformprotosnano", |
Chris Wren | 1a934a3 | 2020-05-19 13:45:46 -0400 | [diff] [blame] | 37 | "statsdprotolite", |
Yuri Lin | 0a052cd | 2023-08-23 12:22:20 -0400 | [diff] [blame] | 38 | "StatsdTestUtils", |
Dan Sandler | 7647f1d | 2018-11-26 09:56:26 -0500 | [diff] [blame] | 39 | "hamcrest-library", |
Lucas Silva | 1e16b3c | 2022-08-29 15:45:28 -0400 | [diff] [blame] | 40 | "servicestests-utils", |
Colin Cross | 35be424 | 2018-11-20 09:46:47 -0800 | [diff] [blame] | 41 | "testables", |
Krzysztof Kosiński | 60b7087 | 2023-10-06 20:11:39 +0000 | [diff] [blame] | 42 | "truth", |
Matías Hernández | c1ab168 | 2023-12-07 14:56:51 +0100 | [diff] [blame] | 43 | "TestParameterInjector", |
Kurt Dresner | 3d21c80 | 2020-09-29 15:32:11 -0700 | [diff] [blame] | 44 | // TODO: remove once Android migrates to JUnit 4.12, |
| 45 | // which provides assertThrows |
| 46 | "testng", |
Valentin Iftime | b551eb6 | 2023-07-19 11:34:31 +0200 | [diff] [blame] | 47 | "flag-junit", |
| 48 | "notification_flags_lib", |
Matías Hernández | 2157886 | 2023-12-13 15:53:08 +0100 | [diff] [blame] | 49 | "platform-test-rules", |
Marcelo Arteiro | 3df9834 | 2023-11-27 14:45:37 +0000 | [diff] [blame] | 50 | "SettingsLib", |
Matías Hernández | f8c9927 | 2024-03-04 16:47:44 +0100 | [diff] [blame] | 51 | "libprotobuf-java-lite", |
| 52 | "platformprotoslite", |
Julia Reynolds | 7983f2b | 2024-04-02 15:58:15 -0400 | [diff] [blame] | 53 | "platform-parametric-runner-lib", |
Colin Cross | 35be424 | 2018-11-20 09:46:47 -0800 | [diff] [blame] | 54 | ], |
| 55 | |
| 56 | libs: [ |
Jihoon Kang | 1e37ed3 | 2024-08-30 00:29:12 +0000 | [diff] [blame] | 57 | "android.test.runner.stubs.system", |
| 58 | "android.test.base.stubs.system", |
| 59 | "android.test.mock.stubs.system", |
Colin Cross | 35be424 | 2018-11-20 09:46:47 -0800 | [diff] [blame] | 60 | ], |
| 61 | |
| 62 | dxflags: ["--multi-dex"], |
| 63 | |
| 64 | platform_apis: true, |
Filip | f58f123 | 2022-06-12 17:38:55 +0000 | [diff] [blame] | 65 | |
| 66 | test_suites: [ |
| 67 | "device-tests", |
| 68 | "automotive-tests", |
| 69 | ], |
Colin Cross | 35be424 | 2018-11-20 09:46:47 -0800 | [diff] [blame] | 70 | |
| 71 | certificate: "platform", |
| 72 | |
| 73 | compile_multilib: "both", |
| 74 | |
| 75 | // These are not normally accessible from apps so they must be explicitly included. |
| 76 | jni_libs: [ |
| 77 | "libdexmakerjvmtiagent", |
| 78 | "libmultiplejvmtiagentsinterferenceagent", |
Colin Cross | 35be424 | 2018-11-20 09:46:47 -0800 | [diff] [blame] | 79 | "libbase", |
| 80 | "libbinder", |
Colin Cross | 35be424 | 2018-11-20 09:46:47 -0800 | [diff] [blame] | 81 | "libc++", |
| 82 | "libcutils", |
| 83 | "liblog", |
| 84 | "liblzma", |
| 85 | "libnativehelper", |
Colin Cross | 35be424 | 2018-11-20 09:46:47 -0800 | [diff] [blame] | 86 | "libui", |
| 87 | "libunwindstack", |
| 88 | "libutils", |
Jeongik Cha | 969b921 | 2021-01-28 00:49:47 +0900 | [diff] [blame] | 89 | "netd_aidl_interface-V5-cpp", |
Colin Cross | 35be424 | 2018-11-20 09:46:47 -0800 | [diff] [blame] | 90 | ], |
Matías Hernández | c1ab168 | 2023-12-07 14:56:51 +0100 | [diff] [blame] | 91 | |
| 92 | // Required for TestParameterInjector |
| 93 | javacflags: ["-parameters"], |
Colin Cross | 35be424 | 2018-11-20 09:46:47 -0800 | [diff] [blame] | 94 | } |
Ronald Braunstein | 809a2eb | 2024-09-11 04:18:32 +0000 | [diff] [blame] | 95 | |
| 96 | test_module_config { |
| 97 | name: "FrameworksUiServicesTests_notification", |
| 98 | base: "FrameworksUiServicesTests", |
| 99 | test_suites: [ |
| 100 | "automotive-tests", |
| 101 | "device-tests", |
| 102 | ], |
| 103 | exclude_annotations: ["androidx.test.filters.LargeTest"], |
| 104 | } |