You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
45 lines
1.2 KiB
45 lines
1.2 KiB
package {
|
|
default_applicable_licenses: ["Android-Apache-2.0"],
|
|
}
|
|
|
|
android_library {
|
|
name: "NetdStaticLibTestsLib",
|
|
srcs: [
|
|
"src/**/*.java",
|
|
"src/**/*.kt",
|
|
],
|
|
min_sdk_version: "29",
|
|
static_libs: [
|
|
"androidx.test.rules",
|
|
"mockito-target-extended-minus-junit4",
|
|
"net-tests-utils-host-device-common",
|
|
"netd-client",
|
|
],
|
|
libs: [
|
|
"android.test.runner",
|
|
"android.test.base",
|
|
],
|
|
visibility: [
|
|
// Visible for Tethering and NetworkStack integration test and link NetdStaticLibTestsLib
|
|
// there, so that the tests under client-libs can also be run when running tethering and
|
|
// NetworkStack MTS.
|
|
"//packages/modules/Connectivity/tests:__subpackages__",
|
|
"//packages/modules/Connectivity/Tethering/tests:__subpackages__",
|
|
"//packages/modules/NetworkStack/tests/integration",
|
|
]
|
|
}
|
|
|
|
android_test {
|
|
name: "NetdStaticLibTests",
|
|
certificate: "platform",
|
|
static_libs: [
|
|
"NetdStaticLibTestsLib",
|
|
],
|
|
jni_libs: [
|
|
// For mockito extended
|
|
"libdexmakerjvmtiagent",
|
|
"libstaticjvmtiagent",
|
|
],
|
|
test_suites: ["device-tests"],
|
|
}
|