This is the most common test library for Connectivity tests. It is meant to be usable in framework tests, network stack tests, CTS, GTS. To achieve that, it can only depend on framework classes. Bug: none Test: NetworkMonitorTest Test: NsdManagerTest Test: ConnectivityServiceTest Test: OffloadControllerTest Test: NetworkStatsObserversTest Test: NetworkStatsServiceTest (all the touched classes) Change-Id: Ic47cbe7ba0e407145fa6bc49bb2adb3c5937dbc4
73 lines
1.8 KiB
Plaintext
73 lines
1.8 KiB
Plaintext
//########################################################################
|
|
// Build FrameworksNetTests package
|
|
//########################################################################
|
|
java_defaults {
|
|
name: "FrameworksNetTests-jni-defaults",
|
|
static_libs: [
|
|
"FrameworksNetCommonTests",
|
|
"frameworks-base-testutils",
|
|
"frameworks-net-testutils",
|
|
"framework-protos",
|
|
"androidx.test.rules",
|
|
"mockito-target-minus-junit4",
|
|
"net-tests-utils",
|
|
"platform-test-annotations",
|
|
"services.core",
|
|
"services.net",
|
|
],
|
|
libs: [
|
|
"android.test.runner",
|
|
"android.test.base",
|
|
"android.test.mock",
|
|
],
|
|
jni_libs: [
|
|
"ld-android",
|
|
"libartbase",
|
|
"libbacktrace",
|
|
"libbase",
|
|
"libbinder",
|
|
"libbinderthreadstate",
|
|
"libbpf",
|
|
"libbpf_android",
|
|
"libc++",
|
|
"libcgrouprc",
|
|
"libcrypto",
|
|
"libcutils",
|
|
"libdexfile",
|
|
"libdl_android",
|
|
"libhidl-gen-utils",
|
|
"libhidlbase",
|
|
"libhidltransport",
|
|
"libhwbinder",
|
|
"libjsoncpp",
|
|
"liblog",
|
|
"liblzma",
|
|
"libnativehelper",
|
|
"libnetdbpf",
|
|
"libnetdutils",
|
|
"libpackagelistparser",
|
|
"libpcre2",
|
|
"libprocessgroup",
|
|
"libselinux",
|
|
"libui",
|
|
"libutils",
|
|
"libvndksupport",
|
|
"libtinyxml2",
|
|
"libunwindstack",
|
|
"libutilscallstack",
|
|
"libziparchive",
|
|
"libz",
|
|
"netd_aidl_interface-V2-cpp",
|
|
"libnetworkstatsfactorytestjni",
|
|
],
|
|
}
|
|
|
|
android_test {
|
|
name: "FrameworksNetTests",
|
|
defaults: ["FrameworksNetTests-jni-defaults"],
|
|
srcs: ["java/**/*.java", "java/**/*.kt"],
|
|
platform_apis: true,
|
|
test_suites: ["device-tests"],
|
|
certificate: "platform",
|
|
}
|