1package {
2    default_team: "trendy_team_fwk_core_networking",
3    default_applicable_licenses: ["Android-Apache-2.0"],
4}
5
6android_library {
7    name: "NetdStaticLibTestsLib",
8    srcs: [
9        "src/**/*.java",
10        "src/**/*.kt",
11    ],
12    min_sdk_version: "30",
13    static_libs: [
14        "androidx.test.rules",
15        "mockito-target-extended-minus-junit4",
16        "net-tests-utils-host-device-common",
17        "netd-client",
18    ],
19    libs: [
20        "android.test.runner",
21        "android.test.base",
22    ],
23    visibility: [
24        // Visible for Tethering and NetworkStack integration test and link NetdStaticLibTestsLib
25        // there, so that the tests under client-libs can also be run when running tethering and
26        // NetworkStack MTS.
27        "//packages/modules/Connectivity/tests:__subpackages__",
28        "//packages/modules/Connectivity/Tethering/tests:__subpackages__",
29        "//packages/modules/NetworkStack/tests/integration",
30    ],
31}
32
33android_test {
34    name: "NetdStaticLibTests",
35    certificate: "platform",
36    static_libs: [
37        "NetdStaticLibTestsLib",
38    ],
39    jni_libs: [
40        // For mockito extended
41        "libdexmakerjvmtiagent",
42        "libstaticjvmtiagent",
43    ],
44    test_suites: ["device-tests"],
45}
46