Colin Cross | 6857f57 | 2020-01-13 10:06:27 -0800 | [diff] [blame] | 1 | // Copyright (C) 2016 The Android Open Source Project |
| 2 | // |
| 3 | // Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | // you may not use this file except in compliance with the License. |
| 5 | // You may obtain a copy of the License at |
| 6 | // |
| 7 | // http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | // |
| 9 | // Unless required by applicable law or agreed to in writing, software |
| 10 | // distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | // See the License for the specific language governing permissions and |
| 13 | // limitations under the License. |
| 14 | // |
| 15 | // |
| 16 | |
Bob Badour | 4da7d22 | 2021-02-22 16:14:07 -0800 | [diff] [blame] | 17 | package { |
| 18 | default_applicable_licenses: ["Android-Apache-2.0"], |
| 19 | } |
| 20 | |
Colin Cross | 6857f57 | 2020-01-13 10:06:27 -0800 | [diff] [blame] | 21 | android_test { |
| 22 | name: "CarServiceUnitTest", |
| 23 | |
| 24 | srcs: ["src/**/*.java"], |
| 25 | |
| 26 | aaptflags: [ |
| 27 | "--extra-packages com.android.car", |
| 28 | "--auto-add-overlay", |
| 29 | ], |
| 30 | |
| 31 | platform_apis: true, |
| 32 | |
| 33 | certificate: "platform", |
| 34 | |
| 35 | optimize: { |
| 36 | enabled: false, |
| 37 | }, |
| 38 | |
| 39 | instrumentation_for: "CarService", |
| 40 | |
| 41 | libs: [ |
| 42 | "android.car", |
| 43 | "android.car.userlib", |
| 44 | "android.car.watchdoglib", |
| 45 | "android.test.runner", |
| 46 | "android.test.base", |
| 47 | "android.test.mock", |
| 48 | ], |
| 49 | |
| 50 | static_libs: [ |
| 51 | "android.car.testapi", |
| 52 | "android.car.test.utils", |
| 53 | "androidx.test.core", |
| 54 | "androidx.test.ext.junit", |
| 55 | "androidx.test.rules", |
| 56 | "car-service-test-static-lib", |
| 57 | "com.android.car.internal.common", |
| 58 | "com.android.car.internal.system", |
Eric Jeong | 8f0d3c4 | 2021-03-16 20:12:24 -0700 | [diff] [blame] | 59 | "com.android.car.test.lib", |
Antonio Kantek | 3d6174b | 2021-03-24 20:08:27 -0700 | [diff] [blame] | 60 | "compatibility-device-util-axt", |
Colin Cross | 6857f57 | 2020-01-13 10:06:27 -0800 | [diff] [blame] | 61 | "frameworks-base-testutils", |
| 62 | "mockito-target-extended", |
| 63 | "testng", |
| 64 | "truth-prebuilt", |
| 65 | ], |
| 66 | |
| 67 | test_suites: ["general-tests"], |
| 68 | |
| 69 | // mockito-target-inline dependency |
| 70 | jni_libs: [ |
| 71 | "libdexmakerjvmtiagent", |
| 72 | "libstaticjvmtiagent", |
| 73 | ], |
Colin Cross | 6857f57 | 2020-01-13 10:06:27 -0800 | [diff] [blame] | 74 | } |