xref: /aosp_15_r20/external/robolectric/shadows/httpclient/Android.bp (revision e6ba16074e6af37d123cb567d575f496bf0a58ee)
1//#############################################
2// Compile Robolectric shadows httpclient
3//#############################################
4
5package {
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 "external_robolectric_license"
9    // to get the below license kinds:
10    //   SPDX-license-identifier-Apache-2.0
11    default_applicable_licenses: ["external_robolectric_license"],
12}
13
14java_library_host {
15    name: "Robolectric_shadows_httpclient_upstream",
16    libs: [
17        "Robolectric_shadows_framework_upstream",
18        "Robolectric_annotations_upstream",
19        "Robolectric_shadowapi_upstream",
20        "Robolectric_utils_upstream",
21        "robolectric-httpclient-4.0.3",
22        "robolectric-httpcore-4.0.1",
23        "robolectric-javax.annotation-api-1.2",
24        "robolectric-host-android_all",
25        "robolectric-host-org_apache_http_legacy_upstream",
26    ],
27    plugins: ["Robolectric_processor_upstream"],
28    javacflags: ["-Aorg.robolectric.annotation.processing.shadowPackage=org.robolectric.shadows.httpclient"],
29    srcs: ["src/main/java/**/*.java"],
30
31    errorprone: {
32        javacflags: ["-Xep:EqualsNull:WARN"],
33    },
34}
35
36//#############################################
37// Compile Robolectric shadows httpclient tests
38//#############################################
39
40java_test_host {
41    name: "Robolectric_shadows_httpclient_tests_upstream",
42    srcs: ["src/test/java/**/*.java"],
43    java_resource_dirs: ["src/test/resources"],
44    static_libs: [
45        "Robolectric_shadows_httpclient_upstream",
46        "Robolectric_shadows_framework_upstream",
47        "Robolectric_annotations_upstream",
48        "Robolectric_robolectric_upstream",
49        "Robolectric_resources_upstream",
50        "Robolectric_shadowapi_upstream",
51        "Robolectric_sandbox_upstream",
52        "Robolectric_junit_upstream",
53        "Robolectric_utils_upstream",
54        "robolectric-maven-ant-tasks-2.1.3",
55        "bouncycastle-unbundled",
56        "hamcrest",
57        "robolectric-httpclient-4.0.3",
58        "asm-commons-9.6",
59        "robolectric-httpcore-4.0.1",
60        "guava",
61        "asm-tree-9.6",
62        "junit",
63        "truth",
64        "robolectric-ant-1.8.0",
65        "asm-9.6",
66        "jsr305",
67        "grpc-java-netty-shaded",
68        //"grpc-netty-shaded-1.16.1-jar",
69        "robolectric-host-android_all",
70        "robolectric-host-org_apache_http_legacy_upstream",
71        "robolectric-host-androidx-test-ext-junit_upstream",
72    ],
73    test_suites: ["general-tests"],
74    //tradefed doesn't run these tests.
75    test_options: {
76        unit_test: false,
77    },
78}
79