1//######################################################################## 2// Build NetworkStaticLibTests package 3//######################################################################## 4 5package { 6 default_team: "trendy_team_fwk_core_networking", 7 default_applicable_licenses: ["Android-Apache-2.0"], 8} 9 10android_library { 11 name: "NetworkStaticLibTestsLib", 12 srcs: [ 13 "src/**/*.java", 14 "src/**/*.kt", 15 ], 16 min_sdk_version: "30", 17 defaults: ["framework-connectivity-test-defaults"], 18 static_libs: [ 19 "androidx.test.rules", 20 "mockito-target-extended-minus-junit4", 21 "netd-client", 22 "net-tests-utils", 23 "net-utils-framework-common", 24 "net-utils-device-common", 25 "net-utils-device-common-async", 26 "net-utils-device-common-bpf", 27 "net-utils-device-common-ip", 28 "net-utils-device-common-struct-base", 29 "net-utils-device-common-wear", 30 ], 31 libs: [ 32 "android.test.runner", 33 "android.test.base", 34 ], 35 visibility: [ 36 "//frameworks/base/packages/Tethering/tests/integration", 37 "//packages/modules/Connectivity/tests:__subpackages__", 38 "//packages/modules/Connectivity/Tethering/tests:__subpackages__", 39 "//packages/modules/NetworkStack/tests/integration", 40 ], 41 lint: { 42 test: true, 43 }, 44} 45 46android_test { 47 name: "NetworkStaticLibTests", 48 certificate: "platform", 49 static_libs: [ 50 "NetworkStaticLibTestsLib", 51 ], 52 jni_libs: [ 53 // For mockito extended 54 "libdexmakerjvmtiagent", 55 "libstaticjvmtiagent", 56 ], 57 jarjar_rules: "jarjar-rules.txt", 58 test_suites: ["device-tests"], 59} 60