| //######################################################################## |
| // Build FrameworksNetTests package |
| //######################################################################## |
| java_defaults { |
| name: "FrameworksNetTests-jni-defaults", |
| jni_libs: [ |
| "ld-android", |
| "libbacktrace", |
| "libbase", |
| "libbinder", |
| "libbinderthreadstate", |
| "libbpf", |
| "libbpf_android", |
| "libc++", |
| "libcgrouprc", |
| "libcrypto", |
| "libcutils", |
| "libdl_android", |
| "libhidl-gen-utils", |
| "libhidlbase", |
| "libjsoncpp", |
| "liblog", |
| "liblzma", |
| "libnativehelper", |
| "libnetdbpf", |
| "libnetdutils", |
| "libnetworkstatsfactorytestjni", |
| "libpackagelistparser", |
| "libpcre2", |
| "libprocessgroup", |
| "libselinux", |
| "libtinyxml2", |
| "libui", |
| "libunwindstack", |
| "libutils", |
| "libutilscallstack", |
| "libvndksupport", |
| "libziparchive", |
| "libz", |
| "netd_aidl_interface-V2-cpp", |
| ], |
| } |
| |
| android_test { |
| name: "FrameworksNetTests", |
| defaults: ["FrameworksNetTests-jni-defaults"], |
| srcs: [ |
| ":tethering-tests-src", |
| "java/**/*.java", |
| "java/**/*.kt", |
| ], |
| platform_apis: true, |
| test_suites: ["device-tests"], |
| certificate: "platform", |
| static_libs: [ |
| "androidx.test.rules", |
| "FrameworksNetCommonTests", |
| "frameworks-base-testutils", |
| "frameworks-net-integration-testutils", |
| "framework-protos", |
| "mockito-target-minus-junit4", |
| "net-tests-utils", |
| "platform-test-annotations", |
| "services.core", |
| "services.net", |
| ], |
| libs: [ |
| "android.test.runner", |
| "android.test.base", |
| "android.test.mock", |
| ], |
| } |