xref: /aosp_15_r20/external/TestParameterInjector/Android.bp (revision 0a615120fe93b5def6ccfd1a41a03fb032dc2074)
1*0a615120SAndroid Build Coastguard Workerpackage {
2*0a615120SAndroid Build Coastguard Worker    default_applicable_licenses: ["Android-Apache-2.0"],
3*0a615120SAndroid Build Coastguard Worker}
4*0a615120SAndroid Build Coastguard Worker
5*0a615120SAndroid Build Coastguard Worker// To update:
6*0a615120SAndroid Build Coastguard Worker// - git fetch aosp
7*0a615120SAndroid Build Coastguard Worker// - git merge --no-ff --allow-unrelated-histories aosp/upstream-main
8*0a615120SAndroid Build Coastguard Worker// - Update the version and last_upgrade_date of the METADATA file
9*0a615120SAndroid Build Coastguard Worker// - git commit --amend
10*0a615120SAndroid Build Coastguard Worker
11*0a615120SAndroid Build Coastguard Workerjava_library {
12*0a615120SAndroid Build Coastguard Worker    name: "TestParameterInjector",
13*0a615120SAndroid Build Coastguard Worker    srcs: [
14*0a615120SAndroid Build Coastguard Worker        "junit4/src/main/java/**/*.java",
15*0a615120SAndroid Build Coastguard Worker    ],
16*0a615120SAndroid Build Coastguard Worker    static_libs: [
17*0a615120SAndroid Build Coastguard Worker        "guava",
18*0a615120SAndroid Build Coastguard Worker        "auto_value_annotations",
19*0a615120SAndroid Build Coastguard Worker        "error_prone_annotations",
20*0a615120SAndroid Build Coastguard Worker        "junit",
21*0a615120SAndroid Build Coastguard Worker        "libprotobuf-java-lite",
22*0a615120SAndroid Build Coastguard Worker        "snakeyaml",
23*0a615120SAndroid Build Coastguard Worker    ],
24*0a615120SAndroid Build Coastguard Worker    plugins: [
25*0a615120SAndroid Build Coastguard Worker        "auto_value_plugin",
26*0a615120SAndroid Build Coastguard Worker        "auto_annotation_plugin",
27*0a615120SAndroid Build Coastguard Worker    ],
28*0a615120SAndroid Build Coastguard Worker    host_supported: true,
29*0a615120SAndroid Build Coastguard Worker    visibility: [
30*0a615120SAndroid Build Coastguard Worker        "//cts/tests/app/WallpaperTest",
31*0a615120SAndroid Build Coastguard Worker        "//cts/tests/autofillservice",
32*0a615120SAndroid Build Coastguard Worker        "//cts/tests/tests/app",
33*0a615120SAndroid Build Coastguard Worker        "//cts/tests/tests/car",
34*0a615120SAndroid Build Coastguard Worker        "//cts/tests/tests/content",
35*0a615120SAndroid Build Coastguard Worker        "//external/robolectric:__subpackages__",
36*0a615120SAndroid Build Coastguard Worker        "//frameworks/base/core/tests/coretests",
37*0a615120SAndroid Build Coastguard Worker        "//frameworks/base/libs/WindowManager/Shell/tests/unittest",
38*0a615120SAndroid Build Coastguard Worker        "//frameworks/base/libs/WindowManager/Jetpack/tests/unittest",
39*0a615120SAndroid Build Coastguard Worker        "//frameworks/base/services/tests/displayservicetests",
40*0a615120SAndroid Build Coastguard Worker        "//frameworks/base/services/tests/powerservicetests",
41*0a615120SAndroid Build Coastguard Worker        "//frameworks/base/services/tests/uiservicestests",
42*0a615120SAndroid Build Coastguard Worker        "//frameworks/base/services/tests/vibrator",
43*0a615120SAndroid Build Coastguard Worker        "//frameworks/base/tests/UsbManagerTests",
44*0a615120SAndroid Build Coastguard Worker        "//packages/modules/Bluetooth/framework/tests/bumble",
45*0a615120SAndroid Build Coastguard Worker        "//packages/modules/HealthFitness/tests/unittests",
46*0a615120SAndroid Build Coastguard Worker        "//vendor:__subpackages__",
47*0a615120SAndroid Build Coastguard Worker    ],
48*0a615120SAndroid Build Coastguard Worker}
49*0a615120SAndroid Build Coastguard Worker
50*0a615120SAndroid Build Coastguard Workerjava_test_host {
51*0a615120SAndroid Build Coastguard Worker    name: "TestParameterInjectorTest",
52*0a615120SAndroid Build Coastguard Worker    srcs: ["junit4/src/test/java/**/*.java"],
53*0a615120SAndroid Build Coastguard Worker    static_libs: [
54*0a615120SAndroid Build Coastguard Worker        "TestParameterInjector",
55*0a615120SAndroid Build Coastguard Worker        "truth",
56*0a615120SAndroid Build Coastguard Worker    ],
57*0a615120SAndroid Build Coastguard Worker    javacflags: [
58*0a615120SAndroid Build Coastguard Worker        "-parameters",
59*0a615120SAndroid Build Coastguard Worker    ],
60*0a615120SAndroid Build Coastguard Worker    test_options: {
61*0a615120SAndroid Build Coastguard Worker        unit_test: true,
62*0a615120SAndroid Build Coastguard Worker    },
63*0a615120SAndroid Build Coastguard Worker}
64