Makoto Onuki | 2488dbeebf2 | 2023-11-10 11:27:31 -0800 | [diff] [blame^] | 1 | package { |
| 2 | // See: http://go/android-license-faq |
| 3 | // A large-scale-change added 'default_applicable_licenses' to import |
| 4 | // all of the 'license_kinds' from "frameworks_base_license" |
| 5 | // to get the below license kinds: |
| 6 | // SPDX-license-identifier-Apache-2.0 |
| 7 | default_applicable_licenses: ["frameworks_base_license"], |
| 8 | } |
| 9 | |
| 10 | // Ravenwood tests run on the hostside, so we need mockit of the host variant. |
| 11 | // But we need to use it in modules of the android variant, so we "wash" the variant with it. |
| 12 | java_host_for_device { |
| 13 | name: "mockito_ravenwood", |
| 14 | libs: [ |
| 15 | "mockito", |
| 16 | "objenesis", |
| 17 | ], |
| 18 | } |
| 19 | |
| 20 | android_ravenwood_test { |
| 21 | name: "RavenwoodMockitoTest", |
| 22 | |
| 23 | srcs: [ |
| 24 | "test/**/*.java", |
| 25 | ], |
| 26 | static_libs: [ |
| 27 | "junit", |
| 28 | "truth", |
| 29 | |
| 30 | "mockito_ravenwood", |
| 31 | ], |
| 32 | libs: [ |
| 33 | "android.test.mock", |
| 34 | "android.test.base", |
| 35 | "android.test.runner", |
| 36 | ], |
| 37 | auto_gen_config: true, |
| 38 | } |