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